Commit Graph

61 Commits

Author SHA1 Message Date
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
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
Colin 7d45f68fde Update PIN_MAP to allow PWM on PB9 2015-07-09 12:47:33 +12: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 a1fdae2817 Made changes for Nucleo F103RB and Generic STM32F103C . Note this commit only works with these 2 boards, on all others Serial will not compile 2015-05-28 17:38:59 +10:00
rogerclarkmelbourne 39b200982a Added generic STM32F103RC support and started work on generic STM32F103R 2015-05-28 15:31:06 +10:00
Roger Clark ffe2f6d043 Merge pull request #64 from victorpv/re-script
Fixed ram size in RC board with new bootloader
2015-05-28 09:35:48 +10:00
victorpv 15781c492b Ram size corrected.
It was wrongly set to 61KB.
It is actually 48KB for RC, and 64 for RD and RE, but I am using 64KB in
an RCT6 mcu without any issue.
2015-05-24 00:30:55 -05:00
rogerclarkmelbourne 7fe2e7806a Disabled generic bootloader USB reset 2015-05-24 09:15:43 +10:00
rogerclarkmelbourne bffbdce50f Temporary fix to Nucleo F103RB to get around missing pin definitions (which should not really be needed), this is temporary fix, I need to sort out the Serial USB code and make a separate define for maple hardware etc 2015-05-23 08:05:32 +10:00
rogerclarkmelbourne 6a2e51585d Added DFU upload options for all generic boards. Note, Its not possible to set the correct memort size in the linker file for DFU uploads, so its always set as having the max ram and rom for the series in question. So beware using this if you are maxing out the RAM or Flash (which seems highly unlikely!) 2015-05-22 21:07:57 +10:00
rogerclarkmelbourne cbc78edce3 Include VictorPV's usb reset code to all generic board when SERIAL_USB is enabled ( by the defined in boards.txt) 2015-05-16 21:54:10 +10:00
rogerclarkmelbourne e3d460d566 Added STM32F103V series boards from files supplied by VictorPV (after updating to latest changes to -DSERIAL_USB etc) , also added victors experimental USB reset code - which partially works ! 2015-05-13 20:33:30 +10:00
rogerclarkmelbourne 2ab2e5cac7 Changed definition for BOARD_HAVE_SERIALUSB so its always true (1) so that compiling in of SERIAL_USB is just controlled by the -DSERIAL_USB flag and not reliant on the DISC pin defintions. Also added experimental code into the ZET to reset USB on startup - this is not fully working, but doesnt seem to cause any ill effects 2015-05-13 19:31:23 +10:00
Roger Clark 1df09212c0 Updated Nucleo F103RB variant with files from Matthias 2015-05-07 12:55:58 +10:00
Roger Clark bb535029cb updated setup_nvic for maple mini, which seems to have been missed when I made the changed to do with removing VECT_TAB_FLASH 2015-05-06 03:09:15 +10:00
Roger Clark 13e27c1dc5 Renamed generic_stm32f103rxx and generic_stm32f103zxx to remove th e xx at the end to match changes to boards.txt 2015-05-06 03:02:10 +10:00
rogerclarkmelbourne 0631786008 Added Maple RET6 board provided by @skyng22003. Tested and compiles OK, but I'm unable to test as I don't have that hardware 2015-04-30 12:17:08 +10:00
rogerclarkmelbourne 0d87f72bd8 Updated Nucleo_f103rb variant files with new versions from @madias 2015-04-28 17:40:11 +10:00
rogerclarkmelbourne f92904f577 Added support for bootloader 2.0 to Maple mini, and added source and binary for maple_mini_boot20.bin to the repo 2015-04-25 19:15:48 +10:00
rogerclarkmelbourne fddefc13a9 Separated USB Serial functionality definitions from the BOOTLOADER_maple definition, so that generic boards can use USB serial without needing to have the bootloader and the disconnect hardware. NOTE. I have only tested the SERIAL_USB on the F103ZE board, it may not work on other generic boards 2015-04-25 15:28:45 +10:00
rogerclarkmelbourne badf7057f0 Removed BOARD_LED_PIN and button pin definitions as they are not core Arduino API definitions and they were causing confusion on users of generic stm32 boards which don't all have an LED and even if they have an LED, the pin it is on is not always on the same pin depending on the model of generic board 2015-04-25 10:41:27 +10:00
rogerclarkmelbourne 4d3c370314 added bootloader and non bootloder version of STM32F103RE to STM32F103R series boards 2015-04-20 12:26:16 +10:00
rogerclarkmelbourne 6408adc02f Added experimental Maple RET6 board for @skyng22003 2015-04-20 10:17:58 +10:00
rogerclarkmelbourne 5ae71423df Fixed typo / bug in USART5 2015-04-20 10:10:43 +10:00
rogerclarkmelbourne 7b980c433e Fix for missing UART 4 and 5 from STM32F104RE and STM32F103Z series boards. Note this code has not been fully tested 2015-04-20 09:50:33 +10:00