rt-thread-official/bsp/Infineon/psoc6-evaluationkit-062S2/applications/arduino_pinout
LZerro e5382cb733 [bsp][Infineon][psoc6-evk-062s2]Adapt to RTduino 2024-08-22 22:58:49 -04:00
..
README.md [bsp][Infineon][psoc6-evk-062s2]Adapt to RTduino 2024-08-22 22:58:49 -04:00
SConscript [bsp][Infineon][psoc6-evk-062s2]Adapt to RTduino 2024-08-22 22:58:49 -04:00
pins_arduino.c [bsp][Infineon][psoc6-evk-062s2]Adapt to RTduino 2024-08-22 22:58:49 -04:00
pins_arduino.h [bsp][Infineon][psoc6-evk-062s2]Adapt to RTduino 2024-08-22 22:58:49 -04:00

README.md

board_default 开发板的Arduino生态兼容说明

1 RTduino - RT-Thread的Arduino生态兼容层

board_default 开发板已经完整适配了RTduino软件包即RT-Thread的Arduino生态兼容层。用户可以按照Arduino的编程习惯来操作该BSP并且可以使用大量Arduino社区丰富的库是对RT-Thread生态的极大增强。更多信息请参见RTduino软件包说明文档

1.1 如何开启针对本BSP的Arduino生态兼容层

Env 工具下敲入 menuconfig 命令,或者 RT-Thread Studio IDE 下选择 RT-Thread Settings

Hardware Drivers Config --->
    Onboard Peripheral Drivers --->
        [*] Compatible with Arduino Ecosystem (RTduino)

2 Arduino引脚排布

更多引脚布局相关信息参见 pins_arduino.cpins_arduino.h

Arduino引脚编号 STM32引脚编号 5V容忍 备注
0 (D0) BSP_IO_PORT_06_PIN_04 Serial-RX,默认被RT-Thread的UART设备框架uart6接管
1 (D1) BSP_IO_PORT_06_PIN_05 Serial-TX,默认被RT-Thread的UART设备框架uart6接管
2 (D2) BSP_IO_PORT_05_PIN_00
3 (D3) BSP_IO_PORT_05_PIN_01 PWM0-CH0,默认被RT-Thread的PWM设备框架pwm0接管
4 (D4) BSP_IO_PORT_11_PIN_02
5 (D5) BSP_IO_PORT_11_PIN_03 PWM0-CH0,默认被RT-Thread的PWM设备框架pwm0接管
6 (D6) BSP_IO_PORT_11_PIN_04 PWM0-CH0,默认被RT-Thread的PWM设备框架pwm0接管
7 (D7) BSP_IO_PORT_11_PIN_05
8 (D8) BSP_IO_PORT_11_PIN_06
9 (D9) BSP_IO_PORT_05_PIN_07 PWM0-CH0,默认被RT-Thread的PWM设备框架pwm0接管
10 (D10) BSP_IO_PORT_00_PIN_05
11 (D11) BSP_IO_PORT_00_PIN_02 SPI0-MOSI,默认被RT-Thread的SPI设备框架spi0接管
12 (D12) BSP_IO_PORT_00_PIN_03 SPI0-MISO,默认被RT-Thread的SPI设备框架spi0接管
13 (D13) BSP_IO_PORT_00_PIN_04 SPI0-SCK,默认被RT-Thread的SPI设备框架spi0接管
14 (D14) BSP_IO_PORT_08_PIN_01 I2C0-SDA,默认被RT-Thread的I2C设备框架i2c0接管
15 (D15) BSP_IO_PORT_08_PIN_00 I2C0-SCL,默认被RT-Thread的I2C设备框架i2c0接管

注意:

  1. xxxxxxxxx
  2. xxxxxxxxx