stm32f1: add SPI support

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>
This commit is contained in:
Grigori Goronzy
2018-07-02 23:17:28 +02:00
committed by KevinOConnor
parent b0ee323e2e
commit 5c7c8c984b
5 changed files with 122 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ config STM32F1_SELECT
default y
select HAVE_GPIO
select HAVE_GPIO_ADC
select HAVE_GPIO_SPI
select HAVE_USER_INTERFACE
config BOARD_DIRECTORY