[RTduino]Add SPI adaptation
This commit is contained in:
parent
f325032c5e
commit
c75f52ff3a
|
@ -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 |
|
||||
|
||||
> 注意:
|
||||
>
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue