diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md index 46aa54ef8d..a40e5b6b72 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md +++ b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md @@ -53,9 +53,9 @@ Hardware Drivers Config ---> | -- | PA3 | 否 | UART2-RX,被RT-Thread的UART设备框架uart2接管,不可当做普通IO | | -- | PB10 | 是 | UART3-TX,被RT-Thread的UART设备框架uart3接管,不可当做普通IO | | -- | PB11 | 是 | UART3-RX,被RT-Thread的UART设备框架uart3接管,不可当做普通IO | -| -- | PB15 | 是 | SPI-MOSI,SPI功能尚未完全实现 | -| -- | PB14 | 是 | SPI-MISO,SPI功能尚未完全实现 | -| -- | PB13 | 是 | SPI-SCK ,SPI功能尚未完全实现 | +| -- | PB15 | 是 | SPI-MOSI,被RT-Thread的SPI设备框架spi2接管,不可当做普通IO | +| -- | PB14 | 是 | SPI-MISO,被RT-Thread的SPI设备框架spi2接管,不可当做普通IO | +| -- | PB13 | 是 | SPI-SCK ,被RT-Thread的SPI设备框架spi2接管,不可当做普通IO | > 注意: > diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/pins_arduino.h b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/pins_arduino.h index fc728622f6..0b4f364633 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/pins_arduino.h +++ b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/pins_arduino.h @@ -49,4 +49,9 @@ #define RTDUINO_SERIAL2_DEVICE_NAME "uart2" #define RTDUINO_SERIAL3_DEVICE_NAME "uart3" +/* + * uart2 - PB13-SCK PB14-MISO PB15-MOSI + */ +#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi2" + #endif /* Pins_Arduino_h */ diff --git a/bsp/stm32/stm32f103-blue-pill/board/Kconfig b/bsp/stm32/stm32f103-blue-pill/board/Kconfig index bc8e9d8c84..4af906426d 100644 --- a/bsp/stm32/stm32f103-blue-pill/board/Kconfig +++ b/bsp/stm32/stm32f103-blue-pill/board/Kconfig @@ -35,8 +35,11 @@ menu "Onboard Peripheral Drivers" select BSP_USING_PWM3_CH4 select BSP_USING_I2C select BSP_USING_I2C1 + select BSP_USING_SPI + select BSP_USING_SPI2 imply RTDUINO_USING_SERVO imply RTDUINO_USING_WIRE + imply RTDUINO_USING_SPI default n endmenu