Commit Graph

318 Commits

Author SHA1 Message Date
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
MicroBahner 20fbc3613d donot disable Timer in pinMode 2017-05-14 21:21:03 +02: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
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
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
Roger Clark 71a198a1d0 Fix problems with tone functions 2016-12-12 17:57:50 +11: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
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
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
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