Add STM32F103 port

Add a fully functional STM32F1 port, currently mostly targeting STM32F103
microcontrollers. This requires an 8 MHz XTAL. The maximum possible step rate
is around 282K steps per second.

This uses stm32flash to burn the firmware. The bootloader needs to be started
by setting BOOT0 to 1 and resetting the MCU. There is no automatic bootloader,
unlike on Arduino.

Signed-off-by: Grigori Goronzy <greg@kinoho.net>
This commit is contained in:
Grigori Goronzy
2018-03-31 15:34:59 +02:00
committed by KevinOConnor
parent e097b08520
commit 75d5737211
173 changed files with 267435 additions and 0 deletions

28
src/stm32f1/Kconfig Normal file
View File

@@ -0,0 +1,28 @@
# Kconfig settings for STM32F1 processors
if MACH_STM32F1
config STM32F1_SELECT
bool
default y
select HAVE_GPIO
select HAVE_GPIO_ADC
config BOARD_DIRECTORY
string
default "stm32f1"
config CLOCK_FREQ
int
default 8000000 # 72000000 / 9
config SERIAL
bool
default y
config SERIAL_BAUD
depends on SERIAL
int "Baud rate for serial port"
default 250000
endif