Commit Graph

86 Commits

Author SHA1 Message Date
Alexandr Zarubkin 134dad770c Added preprocessor symbol USE_HSI_CLOCK which enables HSI clocking for generic variants. By default, HSE clocking scheme is used, as before this change.
Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
2018-05-21 17:02:24 +03:00
Roger Clark 4ec1b0f0cd Removed references to robotis bootloader, and also redundant usb reset code that used the wdt (possibly used by the robotis bootloader) 2018-05-10 20:25:02 +10:00
victorpv 6c33d73f63
Add SDIO pin definitions to the Maple RET6 variant
It was missing, but needed since that variant (RET6) includes the SDIO peripheral, so the files are included in the compilation.
2018-05-03 11:39:17 -05:00
Roger Clark 1f85ecb3b9 Added PLL Mulplier setting for 16MHz. Note this change does not add 16Mhz menu options to any boards, it simply supports them if they were added 2018-04-13 15:03:03 +10:00
Roger Clark df96076900 Added missing F103V linker file, included in https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/489 2018-04-13 14:10:49 +10:00
MackPi 075eae5885 Added Variant STM32F103VB
Added Board Varient STM32F103VB.
Replaced #ifdef STM32_HIGH_DENSITY
with #if STM32_NR_PORTS > 4
Where it makes sense for High Pin count medium density parts like the
STM32F103VB.
2018-03-03 17:40:14 -08:00
MackPi 33736462f6 Added Variant STM32F103VB
Added Board Varient STM32F103B.
Replaced #ifdef STM32_HIGH_DENSITY
with #if STM32_NR_PORTS > 4
Where it makes sense for High Pin count medium density parts like the
STM32F103VB.
2018-02-15 22:36:42 -08:00
Roger Clark 42a5e9f907
Update BOARD_NR_GPIO_PINS for STM32F103V
This fixes problem caused by 951d0acf17 (diff-3df511e94e3cba57d187bb1322b9f6c6)
2018-02-02 09:16:51 +11:00
Roger Clark 184802c3ad
Merge pull request #411 from victorpv/patch-2
Adding PB2 as in the Generic R and Z versions.
2018-01-21 14:44:40 +11:00
Roger Clark e01a70b040
Merge pull request #424 from BlackBrix-Editor/16MHz-crystal-option
Added support inside the Core, for boards which have a 16Mhz crystal using '#define XTAL16M'. Note, no variants or boards.txt changes have been added to use this feature,
2018-01-21 14:43:40 +11:00
BlackBrix-Editor d54de1cbb0
corrected RAM-length = 48kByte for STM32F103VC 2018-01-09 12:21:48 +01:00
BlackBrix-Editor 8540c6b08b
option XTAL16M for boards with 16MHz-crystal
tested on STM32F103VE only but surely can be used on other STM32F103xC, STM32F103xD, STM32F103xE with the same clock PLL structure
2018-01-09 11:23:16 +01:00
victorpv 09812b4863
Add comment to PB2 pin about boot1 function. 2017-12-17 15:20:07 -06:00
victorpv e64dbc2d47
Add PB2 to enums as in the R and Z Generic boards
Can be used for output
2017-12-16 17:28:00 -06:00
victorpv 951d0acf17
Adding PB2 as in the Generic R and Z versions. 2017-12-16 17:25:57 -06:00
Roger Clark da34bb5bb3 Merge branch 'Wunused-parameter' of https://github.com/lacklustrlabs/Arduino_STM32 into lacklustrlabs-Wunused-parameter 2017-12-03 10:54:51 +11:00
lacklustrlabs 95dde2ec10 Removed pinMode from PIN_MAP 2017-12-01 17:17:28 +01:00
lacklustrlabs aebb14f26c Rollback to master 2017-12-01 16:54:16 +01:00
lacklustrlabs 048f15a2db Fixed a comment 2017-11-17 11:16:48 +01:00
lacklustrlabs 29ff4e739d Fixed 'warning: missing initializer for member ... [-Wmissing-field-initializers]' 2017-11-16 19:20:25 +01:00
lacklustrlabs 8d9e2f24b6 Suppressing 'warning: unused parameter ... [-Wunused-parameter]' 2017-11-15 23:19:31 +01:00
lacklustrlabs 908a57a28e Suppressing 'warning: missing initializer for member ... [-Wmissing-field-initializers]' 2017-11-15 22:56:00 +01:00
LightningStalker fd00f02072 Update BlinkNcount.ino to use LED_BUILTIN 2017-11-10 04:10:31 -05:00
Michel Stempin 80ae49dd50 Added missing SDIO pins for F103V and F103Z 2017-10-18 22:04:54 +02:00
victorpv 1db95cf251 F1 SDIO 2017-09-11 21:40:25 -05:00
Roger Clark cb901b4e4f Added CPU Speed menu to all boards except Nucleo RB, with additional entry for 128Mhz Turbo - NO USB. Note only tested on the Blue Pill 2017-07-30 17:43:40 +10:00
Roger Clark f7a576f2e0 Fixed issue with PB10 being set to OUTPUT for use as a USB Disconnect control on boards which do not have the additional USB disconnect hardware e.g. the Blue Pill. Note. Some variants seem to have the disconnect control on another pin, so I did not change those in case they were actually used 2017-06-25 13:08:30 +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 ccddc1f354 Merge branch 'master' of https://github.com/rogerclarkmelbourne/Arduino_STM32 2017-05-25 20:07:48 +10: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
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 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 2e54594f46 Added #define LED_BUILTIN to Maple mini and generic_STM32F103C 2016-12-02 21:24:13 +11: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 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 e2c957489a Added support for Hy-Tiny STM32F103T 2016-10-30 21:38:30 +11:00
stevstrong 073aa23ed2 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-10-16 23:02:16 +02: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
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
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 c0719c3a1d Added experimental support for generic GD32F103C inside the STM32 tree 2016-05-05 17:36:16 +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
Jean-Claude Wippler b495a4e00f support Nucleo w/o and w/ crystal 2015-11-07 00:49:34 +01:00
Jean-Claude Wippler dbd81d42af add generic STM32F103T[8B] variants 2015-10-27 10:41:08 +01: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
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