rt-thread/bsp/stm32/stm32f427-robomaster-a/applications/arduino_pinout/README.md

4.1 KiB
Raw Blame History

大疆STM32F427 Robomaster A型开发板的Arduino生态兼容说明

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

大疆STM32F427 Robomaster A型开发板已经完整适配了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) PF14 板载用户LED
1 (D1) PD9 Serial-RX默认被RT-Thread的UART设备框架uart3接管
2 (D2) PD8 Serial-TX默认被RT-Thread的UART设备框架uart3接管
3 (D3) PG9 Serial-RX默认被RT-Thread的UART设备框架uart6接管
4 (D4) PG14 Serial-TX默认被RT-Thread的UART设备框架uart6接管
5 (D5) PE0 Serial-RX默认被RT-Thread的UART设备框架uart8接管
6 (D6) PE1 Serial-TX默认被RT-Thread的UART设备框架uart8接管
7 (D7) PE7 Serial-RX默认被RT-Thread的UART设备框架uart7接管
8 (D8) PE8 Serial-TX默认被RT-Thread的UART设备框架uart7接管
9 (D9) PH6 板载蜂鸣器PWM12-CH1默认被RT-Thread的PWM设备框架pwm12接管
10 (D10) PD12 PWM4-CH1默认被RT-Thread的PWM设备框架pwm4接管
11 (D11) PD13 PWM4-CH2默认被RT-Thread的PWM设备框架pwm4接管
12 (D12) PD14 PWM4-CH3默认被RT-Thread的PWM设备框架pwm4接管
13 (D13) PD15 PWM4-CH4默认被RT-Thread的PWM设备框架pwm4接管
14 (D14) PH10 PWM5-CH1默认被RT-Thread的PWM设备框架pwm5接管
15 (D15) PH11 PWM5-CH2默认被RT-Thread的PWM设备框架pwm5接管
16 (D16) PH12 PWM5-CH3默认被RT-Thread的PWM设备框架pwm5接管
17 (D17) PI0 PWM5-CH4默认被RT-Thread的PWM设备框架pwm5接管
18 (D18) PA0 PWM2-CH1默认被RT-Thread的PWM设备框架pwm2接管
19 (D19) PA1 PWM2-CH2默认被RT-Thread的PWM设备框架pwm2接管
20 (D20) PA2 PWM2-CH3默认被RT-Thread的PWM设备框架pwm2接管
21 (D21) PA3 PWM2-CH4默认被RT-Thread的PWM设备框架pwm2接管
22 (D22) PI5 PWM8-CH1默认被RT-Thread的PWM设备框架pwm8接管
23 (D23) PI6 PWM8-CH2默认被RT-Thread的PWM设备框架pwm8接管
24 (D24) PI7 PWM8-CH3默认被RT-Thread的PWM设备框架pwm8接管
25 (D25) PI2 PWM8-CH4默认被RT-Thread的PWM设备框架pwm8接管
26 (D26) PF1
27 (D27) PF0
28 (D28) PE4 I2C1-SCL默认被RT-Thread的I2C设备框架i2c1接管
29 (D29) PE5 I2C1-SDA默认被RT-Thread的I2C设备框架i2c1接管
30 (D30) PE6
31 (D31) PE12
32 (D32) PC2
33 (D33) PB0
34 (D34) PC3
35 (D35) PB1
36 (D36) PC4
37 (D37) PC0
38 (D38) PC5
39 (D39) PC1
40 (D40) PA5
41 (D41) PA4
42 (D42) PF10
43 (D43) PI9
44 (A0) -- 芯片内部温度 ADC默认被RT-Thread的ADC设备框架adc1接管
45 (A1) -- 芯片内部参考电压 ADC默认被RT-Thread的ADC设备框架adc1接管