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>
29 lines
412 B
Plaintext
29 lines
412 B
Plaintext
# 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
|