Commit Graph

572 Commits

Author SHA1 Message Date
Roger Clark 0444a36527 Added an additional SPI API function dmaSendAsync which will start the a DMA send of a buffer and return immediately. The next time dmaSendAsync is called it waits if the previous transfer is not complete. Note the buffer is not copied, so ddouble buffering is needed to use this function 2017-06-11 15:35:14 +10:00
SukkoPera ef60992e20 Merge remote-tracking branch 'upstream/master' into Fix-ifSerial 2017-06-09 22:11:52 +02:00
SukkoPera c4643b265e Remove isConnected() usage and binary zeros from StringEx_Parsinge xample 2017-06-09 22:07:33 +02:00
SukkoPera bf138eb389 Remove isConnected() usage from examples 2017-06-09 22:07:05 +02:00
Roger Clark 3c4307ebac Fix issue where USB Serial begin(xx) begin(xx,yy) did nothing, when they should ahave called begin() 2017-06-07 14:00:24 +10:00
Roger Clark 1e88fcfc61 Merge branch 'Avoid_USB_init_twice' of https://github.com/hanyazou/Arduino_STM32 into hanyazou-Avoid_USB_init_twice 2017-06-07 08:19:07 +10:00
Roger Clark ed8c7a186f Merge branch 'F1_SPI_development' of https://github.com/stevstrong/Arduino_STM32 into stevstrong-F1_SPI_development 2017-06-06 20:54:53 +10:00
Roger Clark 8477fba5d5 Merge branch 'master' into stevstrong-F1_SPI_development 2017-06-06 20:54:17 +10:00
Roger Clark df78777e98 Add yield() call in delay() to support the Arduino Scheduler library. Ref issue #299 2017-06-06 20:45:50 +10:00
Zou Hanya 9ae2f6fa78 Avoid initializing USB serial twice 2017-06-03 08:27:33 +09:00
Roger Clark 920b57a4a9 Merge pull request #272 from grafalex82/patch_2
Compiler warning fixed in gpio_get_mode
2017-05-29 10:43:42 +10:00
Roger Clark b19fc38e5e Applied change to fix issue in itoa.c and itoa.h with newer versions of GCC (using the changes from STM's fix, in Arduino_Core_STM32) 2017-05-26 17:00:47 +10:00
Roger Clark f2c2323afd Changed board variants to use calculate value from F_CPU for CYCLES_PER_MICROSECOND 2017-05-26 16:22:16 +10:00
Roger Clark 66579ef8ef Added -std=gnu++11 and -std=gnu11 compile flags to F1 and F4 platform.txt compile recipes 2017-05-26 16:03:49 +10:00
Tom Vijlbrief 84dd916230 Fix documentation for usart_putc() 2017-05-25 20:53:24 +02:00
Roger Clark 7de415531e Merge pull request #249 from noisymime/master
Add EEPROM.update() function
2017-05-25 20:32:24 +10:00
Roger Clark ccddc1f354 Merge branch 'master' of https://github.com/rogerclarkmelbourne/Arduino_STM32 2017-05-25 20:07:48 +10:00
stevstrong 782b53119d used GFX library changed back to GFX_AS 2017-05-25 10:18:27 +02:00
Roger Clark c3d9d1bc1e Added define for LED_BUILTIN to Maple mini and generic STM32F103C (on PC13 to suit the BluePill) 2017-05-25 18:16:47 +10:00
Roger Clark c6fe342d0f Add prototype for systick_attach_callback (thanks to @ag123) 2017-05-25 17:59:48 +10:00
stevstrong aa79ea1d6e Adafruit_ILI9341_STM - reworked for 16 bit SPI register accesses 2017-05-24 18:40:41 +02:00
stevstrong f1608abe0b SPI update
- cleaned up commented out lines
- run-time optimized write and transfer functions
- run-time optimized non-DMA block read routine
- function call order within DMA routines tied to F4 structure - in line
with AN4031, chapter 4.3
- reworked send functions (currently not used, deprecated, but still)
2017-05-22 21:09:12 +02:00
MicroBahner ba4f3808c2 channel output disabled in non pwm-mode
pwmMode disables the channel output in non pwm modes.
Attached ISRs are left unchanged
2017-05-20 16:11:00 +02:00
edogaldo 3d5c54e344 Make HardwareSerial.flush() compatible with Arduino 1.0 api 2017-05-16 00:00:59 +02:00
MicroBahner 20fbc3613d donot disable Timer in pinMode 2017-05-14 21:21:03 +02:00
SukkoPera ad51f6f8f8 Avoid usage of deprecated function 2017-05-09 23:16:47 +02:00
SukkoPera 54cd854161 Tag isConnected() with __attribute__(deprecated) 2017-05-09 23:16:10 +02:00
syfre c8df44228c Add, SMT32ADC example, Single channel at fixed sample rate (timer) using circular buffer (DMA) 2017-05-07 11:41:58 +02:00
syfre d240a7efa7 Fix, compile error in enable_internal_reading() 2017-05-06 23:04:11 +02:00
syfre 50e4d84db4 Add, setMasterModeTrGo to configure the TrGo mode
Use to trigger the ADC on TIMx_TRGO
2017-05-06 23:03:47 +02:00
syfre 30d1bf4900 Fix, add ADC_CR2_EXTTRIG to adc_set_extsel() to enable the external trigger mode 2017-05-06 23:02:54 +02:00
lacklustrlabs 1d29d13967 The ssd1306_128x64_i2c_STM32 example would not build because of a missing swap() macro. 2017-04-27 18:22:18 +02:00
Oleksandr Masliuchenko 0590f27afa Compiler warning fixed 2017-04-22 16:27:30 +03:00
SukkoPera 81b1b08b95 Fix return type 2017-04-18 23:25:36 +02:00
Giorgioggì 38525521fd Update usb_serial.cpp 2017-04-18 12:44:10 +02:00
Giorgioggì 0be991b434 Update usb_serial.h 2017-04-18 12:43:01 +02:00
Giorgioggì cbfb87222f Fix indentation 2017-04-18 12:24:06 +02:00
stevstrong ff53626018 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2017-04-13 22:54:12 +02:00
stevstrong 83e5f48322 remove "deprecated" flag from dma_setup_transfer
remove deprecated flag
2017-04-13 22:34:37 +02:00
victorpv e7abad654e Timer DMA functions.
Adding 2 functions to enable and disable Timer peripheral DMA requests
on update event.
2017-03-26 14:33:48 -05:00
victorpv ea81f36fa5 FreeRTOS900 2017-03-25 08:31:44 -05:00
Floris Lambrechts 9b759c87f8 Fix F103T compilation error: remove const
Method adc_default_config still had the adc_dev* 'const' for F103T, but this doesn't compile.

For other boards, the 'const' was removed already.  See for example commits 0b34af3b6a and
2cdbbc8339.

Tested on Arduino IDE 1.6.13.

Compilation error message was along these lines:
STM32F1\variants\generic_stm32f103t\wirish\boards.cpp:183:34: error: invalid conversion from 'const adc_dev*' to 'adc_dev*' [-fpermissive]
STM32F1\system/libmaple/include/libmaple/adc.h:306:13: error:   initializing argument 1 of 'void adc_enable_single_swstart(adc_dev*)' [-fpermissive]
STM32F1\variants\generic_stm32f103t\wirish\boards.cpp:184:53: error: invalid conversion from 'const adc_dev*' to 'adc_dev*' [-fpermissive]
STM32F1\system/libmaple/include/libmaple/adc.h:268:6: error:   initializing argument 1 of 'void adc_set_sample_rate(adc_dev*, adc_smp_rate)' [-fpermissive]
STM32F1\variants\generic_stm32f103t\wirish\boards.cpp: In function 'void setup_adcs()':
STM32F1\variants\generic_stm32f103t\wirish\boards.cpp:189:35: error: invalid conversion from 'void (*)(const adc_dev*)' to 'void (*)(adc_dev*)' [-fpermissive]
STM32F1\system/libmaple/include/libmaple/adc.h:282:13: error:   initializing argument 1 of 'void adc_foreach(void (*)(adc_dev*))' [-fpermissive]
2017-03-22 13:55:27 +01:00
Roger Clark a8d1c1d1b6 Disabled SWD pins for all boards when using DFU (bootloader) upload method 2017-02-26 13:26:24 +11:00
Josh Stewart 7c320774b1 Add EEPROM.update() function 2017-02-08 15:17:58 +11:00
Roger Clark c2f4aa8566 Fixed tone() so it works is F_CPU is not 72Mhz 2017-01-09 21:17:28 +11:00
Roger Clark 7dcbbc85b0 Fix bug USB divider for 48Mhz operation. Also added support for 48Mhz to Maple mini and Generic F103C (Note. There is a bug in tone() at 48Mhz) 2017-01-09 20:27:07 +11:00
stevstrong 38ea7287ca Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-12-27 11:42:34 +01:00
stevstrong fb823b6929 remove unused code & bugfixes
- setDataSize shall first disable the SPI before writing new value
- dmaTransfer adapted for TFT library usage
2016-12-26 15:26:51 +01:00
stevstrong 22fad7582d Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-12-26 15:13:43 +01:00
Roger Clark 7c9b1cc11a Enable SWD pins for all upload types, on all F103 boards except Maple mini and Maple 2016-12-26 20:34:11 +11:00
Roger Clark 76dcee39a9 Removed old - mainly non functional Due related display examples 2016-12-23 09:48:43 +11:00
Testato 6030e13258 Update boards.txt
PR for issue https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/200
2016-12-17 12:29:42 +01:00
Roger Clark 71a198a1d0 Fix problems with tone functions 2016-12-12 17:57:50 +11:00
stevstrong e7456e1916 further optimizations
- extend read function to 16bit
- add repeated write the same byte/word a specified number of time
- revert increment option to dmaSend
2016-12-10 22:36:21 +01:00
Roger Clark dd453357b3 Added shiftIn to F1 and F4 2016-12-08 20:00:20 +11:00
Roger Clark e71d176618 Fixed issue with tone for high density devices 2016-12-02 21:33:01 +11:00
Roger Clark 2e54594f46 Added #define LED_BUILTIN to Maple mini and generic_STM32F103C 2016-12-02 21:24:13 +11:00
Roger Clark 378cd2a6af Fixed #231 2016-11-30 17:27:21 +11:00
Roger Clark 9237d3afc8 Add new.cpp from Arduino SAMD to resolve issue with new operator pulling in loads of library functions and taking loads of flash 2016-11-30 10:14:27 +11:00
Roger Clark 20fa7b4f30 Fixed issue with tone not compiling 2016-11-29 15:52:16 +11:00
Roger Clark 71a1121c9f Fixed issue with tone files not actually being added to the repo in a previous commit 2016-11-29 15:18:16 +11:00
Roger Clark 69413ee56e Update InternalTempSensor.ino
Fixed issue caused by https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/132/files
2016-11-27 10:10:42 +11:00
Phisatho 6266342b1d Update boards.txt 2016-11-18 02:33:59 +04:00
Phisatho f43d07efb3 Add files via upload 2016-11-18 02:30:20 +04:00
Phisatho dcfe2ae817 Create pins_arduino.h 2016-11-18 02:29:12 +04:00
Roger Clark 1892447080 Fix issue 196, for Servo library 2016-11-12 18:34:58 +11:00
stevstrong b2e349ca36 Revert "Revert "improve SPI low level functions""
This reverts commit 3469ef291b.
2016-11-11 22:12:13 +01:00
stevstrong 3469ef291b Revert "improve SPI low level functions"
This reverts commit 5db2523284.
2016-11-11 22:04:16 +01:00
stevstrong 5521a35567 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-11-11 22:03:23 +01:00
Roger Clark 8345e6f075 Copied individual files from @stevestong master 2016-11-10 20:06:23 +11:00
Roger Clark 2cdbbc8339 Fix issue caused by ADC PR changes that, prevented the GD32F103 variant from building 2016-11-10 11:33:37 +11:00
stevstrong eec2e64ad0 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-10-31 23:23:09 +01:00
stevstrong 5db2523284 improve SPI low level functions
- optimize code and run-time
2016-10-31 22:29:40 +01:00
stevstrong 4bc4b1d6bd remove unused functions + adapt passed parameter
- remove unused functions form usb_reg_map
- change passed buffer type to uint8 *
2016-10-31 22:12:04 +01:00
stevstrong 529f844ff9 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-10-31 22:06:09 +01:00
Roger Clark 16ab26608f Fix minor issues with Hy-Tiny STM32F103T 2016-10-30 21:55:26 +11:00
Roger Clark c50ae34a82 Merge branch 'master' of https://github.com/rogerclarkmelbourne/arduino_stm32 2016-10-30 21:38:46 +11:00
Roger Clark e2c957489a Added support for Hy-Tiny STM32F103T 2016-10-30 21:38:30 +11:00
Roger Clark 34b6bd927d Fixed issue with ILI9341_due library (and Touch libary), incorrectly including pins_arduino.h 2016-10-29 22:09:44 +11:00
stevstrong 42cb8b5bc8 small change
- revert local variable to uint8 in Serial.read
2016-10-21 23:01:45 +02:00
stevstrong 0ec7e72b01 improved USB serial Rx and implemented buffered Tx 2016-10-21 22:31:27 +02:00
xymopen 1d321b6b70 merge minor API changes of IPAddress, Print, Stream and WString from official Arduion core source. LookaheadMode is still under evaluation. 2016-10-22 03:57:13 +08:00
Roger Clark ffea9588ea Merge branch 'master' of https://github.com/stevstrong/Arduino_STM32 into stevstrong-master 2016-10-17 09:35:56 +11:00
stevstrong 073aa23ed2 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-10-16 23:02:16 +02:00
stevstrong d0c5a952b0 Revert "solve sync problems"
This reverts commit fca26524a9.
2016-10-16 22:57:44 +02:00
stevstrong fca26524a9 solve sync problems 2016-10-16 22:55:40 +02:00
stevstrong a40898dbfe try to sync 2016-10-16 22:42:37 +02:00
stevstrong 19e89fd269 revert to Jaret's version 2016-10-16 20:14:11 +02:00
Roger Clark 6bbb5dc506 Added JLink upload to Windows and fixed intermitten JLink upload issues 2016-10-16 16:46:40 +11:00
Roger Clark 293b693996 Added JLink upload method for F103C8 to Linux (untested) 2016-10-16 14:47:53 +11:00
Roger Clark e1e2cac780 renamed 16 bit version of transfer() to transfer16() as per the Arduino API 2016-10-16 13:34:09 +11:00
Roger Clark 0e6b2000c8 Merge branch 'bubulindo-master' 2016-10-16 13:19:37 +11:00
jaretburkett f9301a6acf USB core and CDC fixes 2016-10-13 07:06:29 -05:00
stevstrong 8f847cc786 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-10-12 19:19:03 +02:00
stevstrong 6d4965b5c8 improve USB serial Rx speed + make USB serial Tx blocking to avoid overflow 2016-10-12 19:18:38 +02:00
Roger Clark 8c850fede0 Merge pull request #205 from ozayturay/master
Update for recipe.ar.pattern and library 'Category not valid' IDE warnings
2016-09-27 15:26:09 +10:00
Roger Clark e165d27711 Merge branch 'master' into bubulindo-master 2016-09-27 15:00:21 +10:00
Mike Causer 29f52516c2 In TFT_Show_Font_ILI9341 example change init to begin 2016-09-27 11:29:23 +10:00
Roger Clark 9147a461e7 Merge branch 'master' of https://github.com/bubulindo/Arduino_STM32 into bubulindo-master 2016-09-26 10:42:42 +10:00
victzh 3efde692e7 Fix return value for Print::write(const void *buffer, uint32 size)
Print::write(const void *buffer, uint32 size) always returns 0, which is against specification. This patch fixes it.
2016-09-25 18:31:59 -04:00
Bubulindo 0b34af3b6a Minor bug fixes now that I have a ZET6
While using a different board, I realized that I did not configure the
ADC on all variants and there is a minor bug on the irq_num for
advanced 103 devices.
2016-09-25 13:14:12 +01:00
Bubulindo 5c13d8b0d4 Addition of a better way to deal with the Onboard ADC.
This modification adds support for a STM32ADC library. There are a
couple of examples on how to use it. The library allows usage of the
ADC with DMA in circular mode or scan mode, it allows the ADC to be
used in scan mode. And also to use the EOC interrupt.
More functionality needs to be added and will be in time.

Eventually the util files will be moved into the adc files in the core.
2016-09-23 16:35:18 +01:00
stevstrong 43b3376881 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-09-23 17:07:49 +02:00
Özay Turay 9096356e55 Update STM32F*/platform.txt to get rid of recipe.ar.pattern IDE warnings 2016-09-07 16:20:35 +03:00
Roger Clark 4021c32fdb Merge branch 'master' of https://github.com/SamuelBrucksch/Arduino_STM32 2016-08-14 12:01:07 +10:00
Samuel Brucksch 29ef21629c Update Wire.h
changed SDA/SCL pins to the ones that were default in construcor of Wire.cpp
2016-08-07 13:22:53 +02:00
Samuel Brucksch 8119f88b8d Update Wire.cpp
default constructor now uses SCL and SDA defintinion from wire.h
2016-08-07 13:22:05 +02:00
stevstrong a079114bdc added transaction in slave mode, and 16 bit data transfer 2016-07-26 20:36:39 +02:00
stevstrong 5cf0ba699c corrected ADC_CR2_TSVREFE definition 2016-07-25 23:53:09 +02:00
stevstrong a98a47d379 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-07-25 23:30:10 +02:00
stevstrong efbbe6a4be Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-07-25 23:22:02 +02:00
edogaldo 34597fad4a Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' into F1-USART---buffered-interrupt-based-TX-(static-TX-buffer) 2016-07-20 10:56:18 +02:00
Roger Clark 18f2233357 Fixed issue with wrong ram sizes in boards.txt 2016-07-20 08:01:58 +10:00
edogaldo 14b9f338f4 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' into F1-USART---buffered-interrupt-based-TX-(static-TX-buffer) 2016-07-19 13:13:20 +02:00
edogaldo d353dd3022 Slight changes 2016-07-19 12:56:11 +02:00
edogaldo 7ba9065895 Fix HardwareSerial::flush() 2016-07-18 11:49:46 +02:00
Roger Clark 388e8efeb6 Fixed issue in F1 and F3 with HardwareSerial read(), which should return -1 if no data in the input buffer, (be non-blocking) 2016-07-18 16:20:24 +10:00
edogaldo 3a5f8cfc1b Wait for TX completed in usart_disable() 2016-07-14 19:14:56 +02:00
edogaldo 51d2d9e0d9 F1 USART - buffered interrupt-based TX (static TX buffer)
usart.h: statically define TX buffer like RX buffer. TX buffer size
defined in USART_TX_BUF_SIZE
usart.h: add function usart_reset_tx() to reset TX buffer (same as for
RX bufferI)
usart.c: usart_init() changed to init TX buffer
usart.c: usart_disable() changed to reset TX buffer
usart.c: usart_tx() changed to use TX buffer and manage interrupt TXEIE
usart_f1.c: changed to instantiate TX buffers
usart_private.h: changed interrupt handler to manage TXEIE
2016-07-11 12:52:24 +02:00
Roger Clark 0cebedb59e Added Etheret_STM by Vassilis (at his request, as copy of https://github.com/Serasidis/Ethernet_STM) 2016-06-06 10:20:55 +10:00
Roger Clark 896cb2d3c7 Increase generic boards USB reset delay to fix issue with newer PC's 2016-05-15 15:16:27 +10:00
Roger Clark e4324fafc9 Fixed issue with GD32 USB reset time being too short, and not enumerating on some PCs 2016-05-13 19:15:12 +10:00
Roger Clark 71e8282fc1 Renamed MrBrunetteExamples to General examples, and remoted boards.txt 2016-05-13 14:40:06 +10:00
Roger Clark cc639cd9cb Moved examples to new dummy library item 2016-05-13 14:39:10 +10:00
Roger Clark 4ce00387d8 Add dummy / shell library to allow IDE access to the examples 2016-05-13 14:38:34 +10:00
roger@rogerclark.net b5a5e67ad0 Added missing API functions microsecondsToClockCycles etc 2016-05-13 06:17:59 +10:00
roger@rogerclark.net 7e06070ade Started to add linux 64 bit support, by copying the linux folder to linux64 and changeing platform.txt. Also copied scr folder into each platform's folder to allow the src to be distributed even if the tools are split up when using the Board Manager 2016-05-07 08:02:54 +10:00
roger@rogerclark.net 1b4ee05e80 Tidied up platform.txt 2016-05-07 07:44:14 +10:00
roger@rogerclark.net 95f11697b2 Add recipe for 'Export Binary' feature 2016-05-07 07:04:00 +10:00
Roger Clark e69f84a88a Attempt to remove TFT_ILI9163C submodule 2016-05-05 21:26:44 +10:00
Roger Clark c4d665155a Attempt to remove Ether_STM submodule 2016-05-05 21:25:29 +10:00
Roger Clark cc10dca088 Added missing cpu speed menu for GD32 2016-05-05 17:46:37 +10:00
Roger Clark c0719c3a1d Added experimental support for generic GD32F103C inside the STM32 tree 2016-05-05 17:36:16 +10:00
Roger Clark ec0ec18c9d Changed stm32f1 boards.txt to include vid and pid value for maple serial, so that the 'Get Board Info' feature shows all stm32duino bootloader boards as Maple mini. (note this is not ideal, but as we don't allocate different ID's to each board variant, we will have to live with this feature in the IDE reporting all boards as Maple mini,- at least for the time being) 2016-05-05 12:11:40 +10:00
Roger Clark f1a394e4bc Merge branch '54-always_inline' of https://github.com/RickKimball/Arduino_STM32 into development 2016-05-05 11:28:59 +10:00
Rick Kimball f9aa37ed01 fix compiler warnings related to __always_inline 2016-05-03 13:04:54 -04:00
Roger Clark e9e9048a31 Added new file WCharacter.h, and updated String files to add missing Arduino API functionality 2016-05-03 21:01:09 +10:00
Roger Clark 76157ad751 Updated 'category' in library.properties files, to shop the IDE complaining that this key is missing 2016-05-03 20:44:18 +10:00
Roger Clark 0909f4c20d Changed defines for MOSI, MISO etc into const static vars, to address compatibility issues 2016-05-03 20:23:51 +10:00
WereCatf a1498ee778 Update Adafruit_ILI9341_STM.cpp 2016-04-23 06:05:38 +03:00
WereCatf 29a5400188 Bugfix Adafruit_ILI9341_STM
readcommand8() toggles _sclk, but when using hwSPI it's set to 0, ie. it's toggling GPIO0, which it obviously shouldn't be doing. Also, when SPI-transactions had been enabled the SPI-bus speed was set to only 8MHz -- now we set it to 36MHz on STM32F1.
2016-04-22 20:36:38 +03:00
Roger Clark 8c1e061efc Apply fix, provided by @Slammer, for issue with USB Serial on GCC 4.9 2016-04-19 19:42:07 +10:00
Roger Clark f7c80bd73b Merge pull request #166 from martinayotte/master
Add toString() helper to IPAddress class (as already implemented on the F4)
2016-03-01 16:27:01 +11:00
Roger Clark 246a172250 Merge branch 'master' of https://github.com/geekylou/Arduino_STM32 into geekylou-master 2016-03-01 16:21:28 +11:00
Martin Ayotte 3d15c75a27 add toString() helper to IPAddress class 2016-02-29 12:12:57 -05:00
Roger Clark ba5d4058f1 Merge branch 'development' 2016-02-28 14:52:14 +11:00
Louise Newberry 1f13f47552 The previous fix should probably be in is connected rather than the write function so moving it there. 2016-02-22 22:18:55 +00:00
Louise Newberry 618ffd069d Check USB DTR is active before sending data down the USB port (this should only be active when the port is connected to a terminal). 2016-02-22 22:02:45 +00:00
Louise Newberry 20331cea64 Make sure both USB_ISTR_SUSP & USB_ISTR_WKUP are both cleared when USB susppends or resumes. This is required as when we see a suspend event it looks like we immediately afterwords trigger a resume from the bit being set previously. 2016-02-13 11:35:44 +00:00
Dan Drown 4790010b78 Remove libraries/LiquidCrystal_I2C/
closes rogerclarkmelbourne/Arduino_STM32#158
2016-02-03 20:29:49 -06:00
stevstrong 9fe188a901 added SPI data size management to allow true 16 bit transfer 2015-12-26 18:39:28 +01:00
stevstrong 9679eaa5d3 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2015-12-07 18:14:05 +01:00
stevstrong 4932a309f2 reworked update SPI settings
remove entirely the disturbing glitches on SCK line
2015-12-06 16:15:00 +01:00
Vassilis Serasidis 114861b36c Touch screen library for STM32F1, based on XPT2046 touch controller.
The XPT2046 touch controller can be found on the new 2.4" ILI9341 SPI
LCDs.
2015-12-03 20:38:20 +02:00
Roger Clark 9cfb240ec1 Merge branch 'stevstrong-master' into development 2015-11-20 20:23:57 +11:00
Roger Clark fe950a35db Merge branch 'master' of https://github.com/stevstrong/Arduino_STM32 into stevstrong-master 2015-11-20 20:23:34 +11:00
stevstrong b920cdc6a2 serial config when parity is enabled
When parity enabled the word length must be increased (CR1 bit 12 set).
Word length of 9 bit with parity is not supported.
2015-11-19 21:11:45 +01:00
stevstrong 7d2b43018f bugfix - serial config parameter cannot be set
function usart_init must be called before usart_config_gpios_async
2015-11-19 14:01:23 +01:00
stevstrong 17cbf256d1 corrected defines needed when parity is used
When the parity control is enabled, the computed parity is inserted at the MSB position (9th bit if M=1; 8th bit if M=0) and parity is checked on the received data. This excludes 9 bit long words + parity bit.
2015-11-19 11:50:13 +01:00
Roger Clark a7e909a6de Merge branch 'master' into development 2015-11-15 13:00:39 +11:00
Roger Clark e2bff0cd49 Merge branch 'spi-fix' of https://github.com/jcw/Arduino_STM32 into jcw-spi-fix 2015-11-15 10:28:36 +11:00
Roger Clark 0469149581 Merge pull request #119 from jaretburkett/master
Added Touchscreen Library
2015-11-15 10:27:08 +11:00
Jean-Claude Wippler 081b6d52f8 fix typo 2015-11-11 14:07:49 +01:00
Roger Clark 66456b5572 Changed platform.txt back to using 1.6.5 compatible archive path, as the change I made to support 1.6.6 does not work with 1.6.5 as it appears this var is not backward compatible 2015-11-09 06:54:49 +11:00
Roger Clark abd500e3ef Changed platform.txt to fix issue with changes in IDE 1.6.6 to build archive path 2015-11-07 23:23:27 +11:00
Jean-Claude Wippler b495a4e00f support Nucleo w/o and w/ crystal 2015-11-07 00:49:34 +01:00
Jean-Claude Wippler 91014b40a8 fixes #125 2015-11-05 16:27:24 +01:00
Roger Clark 842d8ee580 Manually updated fix by @jcw for serial usb slow down 2015-11-05 20:28:09 +11:00
stevstrong b81d7b7334 removed unwanted dashes which caused compiling error 2015-11-04 08:08:21 +01:00
Roger Clark d94452f1d5 Merge branch 'jcw-delay-losing-time' into development 2015-11-04 09:40:50 +11:00
Roger Clark cc85e58a37 Merge branch 'delay-losing-time' of https://github.com/jcw/Arduino_STM32 into jcw-delay-losing-time 2015-11-04 09:40:21 +11:00
Roger Clark e48ff38e52 Merge branch 'master' of https://github.com/stevstrong/Arduino_STM32 into stevstrong-master 2015-11-04 09:02:56 +11:00
stevstrong 796dc93ab9 re-added previously deleted EXTSEL defines 2015-11-03 13:43:59 +01:00
Roger Clark 1fc436e596 STM32F1. Removed support / worksround for IDE versions before 1.6.3, with removal of platform.rewrite.keys.txt and update of compiler path in platforms.txt 2015-11-03 05:28:50 +11:00
Jean-Claude Wippler 85eb51aacb wait for time to elapse instead of a cycle-counting loop 2015-10-31 16:25:42 +01:00
Roger Clark 37dc796076 Merge pull request #129 from jcw/variant-reorder
Reorder STM32F103T variants in boards.txt so smallest memory size is first
2015-10-31 20:34:07 +11:00
Roger Clark 07cf09a358 Merge pull request #128 from Serasidis/master
Added missing Ethernet library files to STM32F1 (note the same needs to be done to GD32F1 eventually)
2015-10-31 16:36:34 +11:00
stevstrong 42659ebbb0 added defines of external event selections for regular and injected groups 2015-10-30 14:12:38 +01:00
Jean-Claude Wippler 83edd50057 fixed, only C8/CB and T8/TB affected 2015-10-30 11:42:38 +01:00
Jean-Claude Wippler a5ff471320 oops, messed up, revert, white space cleanup first 2015-10-30 11:40:52 +01:00
Jean-Claude Wippler 94a319e26e reorder variants so smallest mem size is first 2015-10-30 11:29:25 +01:00
Vassilis Serasidis a56c92e0f4 Added missing Ethernet library files 2015-10-29 21:19:47 +02:00
Roger Clark eab149a904 Fixed reference to incorrect linker file in boards.txt for F103T8 2015-10-29 19:54:12 +11:00
Roger Clark ba2c2cd89a Merge pull request #123 from jcw/master
Add generic STM32F103T[8B] variants, created by @jcw
2015-10-28 20:55:52 +11:00
rogerclarkmelbourne 784c7beac5 Added _BV macro fro AVR compatibility 2015-10-27 21:06:00 +11:00
Jean-Claude Wippler dbd81d42af add generic STM32F103T[8B] variants 2015-10-27 10:41:08 +01:00
stevstrong 3ef9112870 additional function updateSettings() to replace the call to begin().
removes unwanted glitches before getting SCK active caused by setting parameters after begin().
2015-10-26 12:58:22 +01:00
stevstrong f87b4adda8 additional function updateSettings() to replace the call to begin().
removes unwanted glitches before getting SCK active caused by setting parameters after begin().
2015-10-26 12:52:45 +01:00
stevstrong 37fbb642ea added part from SD fat lib which enables SPI 2 device write access
taken from SdSpiSTM32F1.cpp - Victor's lib, and adapted to support device selection.
To be checked with other libs which are using the SPI lib.
2015-10-26 11:36:24 +01:00
rogerclarkmelbourne 536cec8f5d Various changes to boards.txt and some libraries, so that things will compile under IDE 1.6.6 Note. There are still loads of warnings when you compile - which look like they may be caused by the IDE using a new version of GCC, but at least it now compiles 2015-10-09 17:18:38 +11:00
Jaret Burkett 7f23ee129c Fixed Touchscreen Lib
Changed example to use the Touchscreen Library that has STM32 support.
2015-09-26 09:21:41 -05:00
Jaret Burkett 664c8c5981 Added Adafruit Touchscreen Library
Added support for STM32 to the Adafruit Resistive Touchscreen library.
2015-09-26 09:13:32 -05:00
Bubulindo 73f2301cad Timer as Encoder
Added support to use HardwareTimer as an encoder input
2015-09-11 15:24:37 +01:00
Roger Clark 2e9b4f3955 Merge pull request #110 from Serasidis/patch-2
Serasidis_VS1003B_STM - Updated the example for using it with the new one SPI library.
2015-09-09 21:13:52 +10:00
Vassilis Serasidis 89a5a661f3 Updated the example for using it with the new one SPI library. 2015-09-09 12:33:42 +03:00
Vassilis Serasidis 0b9e84d8fa Updated the example for using it with the new one SPI library. 2015-09-09 12:32:00 +03:00
Roger Clark 88d2457f30 STM32F1 core: Implemented changes already made to the GD32F1 core to use F_CPU instead of hard coded values for 72000000 and (F_CPU -1) instead of 71999999 and to replace other hard coded values related to the clock freqency. Also updated the code so that the USB clock was disabled in setup_clock_prescalers to allow it to be changed in that function during initialisation, in case altermative prescaler values for USB are required, e.g. for operation at 48Mhz 2015-09-06 07:51:40 +10:00
Roger Clark 6b6ab7dab5 Implemented PIN MAP in flash for all other variants 2015-09-01 19:58:39 +10:00
Vassilis Serasidis fea15b00d6 VS1053B MIDI example is added 2015-08-29 23:08:22 +03:00
victorpv 7564830669 Edits to move pinmap to flash
Initial comit, not tested, but copied from previous working folder.
2015-08-25 00:02:57 -05:00
Roger Clark d8996970ed Update timer.h
Changed TIMER_SMCR_TS and TIMER_SMCR_SMS as recommended by @Victor_PV
2015-08-23 14:50:33 +10:00
Roger Clark f1086b6b20 Fixed issue with gerneric F103RB and F103R8 caused by typos in boards.txt 2015-08-13 20:02:03 +10:00
Roger Clark c05570dbcc Merge branch 'master' of https://github.com/rogerclarkmelbourne/Arduino_STM32 2015-08-11 22:14:30 +10:00
Roger Clark 207986431d Added STM32F103R8 / RB variant folder supplied by @ahull. Also made minor change to the stm32f103r folder bootloader link file name, so that the same file name could be used in the existing stm32f103r folder and the new folder (but they have different contents) 2015-08-10 20:27:09 +10:00
rogerclarkmelbourne 461b86207e Added Serial.begin(115200) to both examples so that they work on non-bootloader boards 2015-08-06 17:42:04 +10:00
rogerclarkmelbourne fa94d9f143 Merge branch 'master' of https://github.com/fergul/Arduino_STM32 into fergul-master 2015-08-06 17:32:13 +10:00
Roger Clark ab37760af7 Oops. Failed to save the revised definition for SOFT_STANARD Wire speed which should have been part of the previous commit 2015-08-03 09:48:50 +10:00
Roger Clark 885d3f2c5c Merge branch 'master' of https://github.com/rogerclarkmelbourne/Arduino_STM32 2015-08-03 09:46:33 +10:00
Roger Clark d3bd109013 Changed default speed on Wire library to 100kpbs (same as AVR Arduinos), thanks to @fredbox on the forum for the delay values to achieve 100kbps 2015-08-03 09:45:57 +10:00
Fergus 572b311c3a Fixed formatting to match existing style + Hardwire comments 2015-08-01 19:09:43 +01:00
Fergus 61b212d42b Added i2c_scanner examples to Wire library for testing HWire and Wire 2015-08-01 19:04:18 +01:00
Fergus 3b8b7a79f4 Bugfix for HardWire/I2C + configured/compiled dfu-util to work on Linux again
- Fixed 0 byte payload bug, stopping HardWire from sending only addresses to scan for devices
 - Fixed I2C bug accessing wrong status register for error flags
 - Improved Hardwire endTransmission() return flags to correspond with the actual I2C failure status
 - Removed dos endings from dfu-util autogen script breaking compilation
2015-08-01 18:58:14 +01:00
Roger Clark 0ec837f08c Fix for uninitialised vars in dmaTransfer and dmaSend (as detailed by victor_pv) 2015-07-28 12:00:16 +10:00
Roger Clark 07ba8f279a Updaded SPI with update from VictorPV 2015-07-26 04:58:12 +10:00
Roger Clark 9c951d40d6 Merge branch 'SPI_setModule' 2015-07-17 09:52:04 +10:00
Colin 7d45f68fde Update PIN_MAP to allow PWM on PB9 2015-07-09 12:47:33 +12:00
Roger Clark fc50831843 Continued with SPI setModule - still doesnt work when I tried setModule(2); 2015-07-08 11:14:57 +10:00
Roger Clark 20a9214291 Some fixes. Works for SD example SPI 1, not tested with anything else. setModule not tested 2015-07-07 20:59:33 +10:00
Roger Clark 2e13a1d57e Initial attempt at SPI setModule - but it doesn't seem to work for SPI2 etc, even when not using setModule to select the SPI channel, when I tested with a VS1053 board attached to SPI2 and SD on SPI1 2015-07-07 07:27:09 +10:00
Roger Clark 6d18be66ad Move Timer ISR handlers from timer_f1.c to timer.c to resolve linker issue in which some ISR's were not being linked even though they were being used 2015-07-05 22:38:47 +10:00
Roger Clark 3d51e8c530 Tidied up names of Maple boards in boards.txt menu names 2015-07-05 11:06:32 +10:00
Roger Clark 1d7a0bc21b Fix issue with default SPI pin definitions in wirish.h being incorrect (as they were the pin definitions for AVR boards). wirish.h now uses the pin definitions defined in board.h for whatever variant is selected 2015-07-05 03:08:34 +10:00
Teguh Sobirin 1e4fdf743a FLAC decoder patch
By uncommenting "#define USEFLAC" in VS1003_STM.h the FLAC patch will be
loaded at begin time.
2015-07-01 20:16:27 +07:00
Roger Clark 501da92986 Added a line in SPI.cpp to default the bitOrder to MSBFIRST 2015-06-25 09:36:23 +10:00
Roger Clark c0fd4e3038 Added Ethernet_STM library provided by Vasillis Serasidis (@Serasidis) 2015-06-18 02:29:32 +10:00
Roger Clark 7823a48ea2 Added TFT_ILI9163C library from @Victor_pv 2015-06-18 02:26:02 +10:00
rogerclarkmelbourne 7d7f113f63 improved vasillis's SPI 2 demo 2015-06-12 09:49:00 +10:00
Vassilis Serasidis 1a676200f7 Example of using the SPI_1 and SPI_2 ports on STM32F103. 2015-06-11 15:01:45 +03:00
Roger Clark 657d6dae02 Alternative / better fix provided by @pico based on work by @victor_pv. Commented out AF REMAP of NSS in spi_f1.c 2015-06-10 10:33:13 +10:00
rogerclarkmelbourne ece9c3681d Added code to 'get' the gpio mode of a pin, and have used it in SPIClass::begin() to store and reinstate the pin mode of the SPI NSS pin. This is a work around for 'features' in the STM32 silicon, which seem to change the GPIO mode of the SPI NSS (hardware - 'Software Select' pin) 2015-06-10 10:25:22 +10:00
Roger Clark 263d3af266 Added files missing from the last commit 2015-06-06 08:16:20 +10:00
Roger Clark 1af98fed89 Converted VS1003 lib to new lib style including keywords 2015-06-06 08:15:47 +10:00
Roger Clark 2797907221 Added support for SPI 2 to VS1003 library, and made a change to SPI to support other libs being able to select which SPI they want to use (issue with const in transfer() 2015-06-06 07:46:42 +10:00
rogerclarkmelbourne 7643bac725 Merge branch 'master' of https://github.com/rogerclarkmelbourne/Arduino_STM32 2015-06-05 17:02:19 +10:00
rogerclarkmelbourne a3a3c9d90b Changed boards.txt so that Maple DFU upload is now called STM32duino bootloader 2015-06-05 16:42:25 +10:00
Roger Clark 146dad4512 Upadted VS1003_STM lib with latest files from Vasillis Serasidis 2015-06-03 10:44:10 +10:00
rogerclarkmelbourne f337329c89 Undid changes to isrs.s from last merge (its not practical to undo the remove, its easier just to replace the file in question with the older / working version 2015-06-02 08:05:32 +10:00
rogerclarkmelbourne 97604fe455 Replaced isrs.s with new version from victor_pv with improved system for weak refs to isr handlers 2015-06-01 19:19:37 +10:00
victorpv 164c8065c8 Weakrefs used instead of weaks in isrs.S 2015-05-31 09:10:31 -05:00
rogerclarkmelbourne 912098d5b8 Updated with commits that had been applied to Leaflabs:libmaple since the original copy of the repo was taken (by BobC) in Nov 2014 2015-05-31 18:06:19 +10:00
rogerclarkmelbourne 58df3f36b4 Changed all remaining boards to have HW serial definitions in board.cpp so that every board can configure which Arduino Serial instance maps to which hardware serial device 2015-05-31 16:09:26 +10:00
rogerclarkmelbourne 29f7cc74b4 Merge branch 'master' into move_serial_config_to_variants 2015-05-31 15:28:16 +10:00
rogerclarkmelbourne 9411f03988 Merge branch 'fix_weak_ref_timers' 2015-05-31 15:27:06 +10:00
Roger Clark 0a77202ed4 Merge pull request #69 from Serasidis/master
AddedENC28J60 Ethernet library for STM32, from Vasillis Serasidis
2015-05-29 09:26:22 +10:00
rogerclarkmelbourne daef5a1781 Fixed issue in boards.txt where board indentifier for Maple mini included a underscore - which seems to cause problems in some version of the IDE (namely 1.6.0) 2015-05-29 09:06:23 +10:00
Vassilis Serasidis ed14ded3cc ENC28J60 Ethernet library for STM32.
Example sketches that use the EtherCard library.
2015-05-28 16:48:02 +03:00
Vassilis Serasidis eee152ceca ENC28J60 Ethernet library for STM32.
12
2015-05-28 16:47:02 +03:00
Vassilis Serasidis 9011387505 ENC28J60 Ethernet library for STM32. 2015-05-28 16:41:18 +03:00
Vassilis Serasidis a61bd57817 ENC28J60 Ethernet library for STM32.
The ReadMe file
2015-05-28 16:34:55 +03:00
Vassilis Serasidis ce860eab9e ENC28J60 Ethernet library for STM32. 2015-05-28 16:33:15 +03:00