[RTduino]Add SPI adaptation

This commit is contained in:
liyangyang 2022-09-07 19:50:57 +08:00 committed by Man, Jianting (Meco)
parent f325032c5e
commit c75f52ff3a
3 changed files with 11 additions and 3 deletions

View File

@ -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-MOSISPI功能尚未完全实现 |
| -- | PB14 | 是 | SPI-MISOSPI功能尚未完全实现 |
| -- | 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 |
> 注意:
>

View File

@ -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 */

View File

@ -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