mirror of
git://soft.sys114.com/klipper
synced 2026-02-09 20:24:23 +09:00
Add basic SPI support and associated documentation. v2: remove baud rate check, fix baud rate calculations v3: finish transaction with BSY check, disable SPI when not in use Signed-off-by: Grigori Goronzy <greg@chown.ath.cx>
31 lines
468 B
Plaintext
31 lines
468 B
Plaintext
# Kconfig settings for STM32F1 processors
|
|
|
|
if MACH_STM32F1
|
|
|
|
config STM32F1_SELECT
|
|
bool
|
|
default y
|
|
select HAVE_GPIO
|
|
select HAVE_GPIO_ADC
|
|
select HAVE_GPIO_SPI
|
|
select HAVE_USER_INTERFACE
|
|
|
|
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
|