1# ra6m3-hmi-board Arduino Ecosystem Compatibility Guide 2 3**[English](README.md)** | **中文** 4 5## 1 RTduino - Arduino Ecosystem Compatibility Layer for RT-Thread 6 7The ra6m3-hmi-board development board has been fully adapted for the [RTduino software package](https://github.com/RTduino/RTduino), the Arduino Ecosystem compatibility layer for RT-Thread. Users can operate this BSP following Arduino programming conventions and leverage a vast array of libraries from the Arduino community, providing significant enhancement to the RT-Thread ecosystem. For more information, refer to the [RTduino Software Package Documentation](https://github.com/RTduino/RTduino). 8 9### 1.1 Activating Arduino Ecosystem Compatibility Layer for this BSP 10 11Enter the `menuconfig` command under the Env tool, or select RT-Thread Settings in the RT-Thread Studio IDE: 12 13```Kconfig 14Hardware Drivers Config ---> 15 Onboard Peripheral Drivers ---> 16 [*] Compatible with Arduino Ecosystem (RTduino) 17``` 18 19## 2 Arduino Pin Configuration 20 21For more information about pin layout, refer to [pins_arduino.c](pins_arduino.c) and [pins_arduino.h](pins_arduino.h). 22 23 24 25| Arduino Pin Number | STM32 Pin Number | 5V Tolerance | Remarks | 26| ------------------- | ----------------- | ------------ | ------------------------------------------- | 27| 0 (D0) | P206 | Yes | Serial4-RX, default handled by RT-Thread's UART device framework uart4 | 28| 1 (D1) | P205 | Yes | Serial4-TX, default handled by RT-Thread's UART device framework uart4 | 29| 2 (D2) | P008 | Yes | | 30| 3 (D3) | P506 | Yes | | 31| 4 (D4) | P603 | Yes | | 32| 5 (D5) | P604 | Yes | PWM8-CH0, default handled by RT-Thread's PWM device framework pwm8 channel 0 | 33| 6 (D6) | P605 | Yes | PWM8-CH0, default handled by RT-Thread's PWM device framework pwm8 channel 0 | 34| 7 (D7) | P208 | Yes | | 35| 8 (D8) | P207 | Yes | | 36| 9 (D9) | P009 | Yes | | 37| 10 (D10) | P712 | Yes | PWM2-CH0, default handled by RT-Thread's PWM device framework pwm2 channel 0 | 38| 11 (D11) | P512 | Yes | PWM0-CH0, default handled by RT-Thread's PWM device framework pwm0 channel 0 | 39| 12 (D12) | P511 | Yes | | 40| 13 (D13) | P204 | Yes | | 41| 14 (D14) | P203 | Yes | | 42| 15 (D15) | P202 | Yes | | 43| 16 (A0) | P000 | Yes | ADC1-CH0-EXTVOL (External Voltage), default handled by RT-Thread's ADC device framework adc0 channel 0 | 44| 17 (A1) | P001 | Yes | ADC1-CH1-EXTVOL (External Voltage), default handled by RT-Thread's ADC device framework adc0 channel 1 | 45| 18 (A2) | P002 | Yes | ADC1-CH2-EXTVOL (External Voltage), default handled by RT-Thread's ADC device framework adc0 channel 2 | 46| 19 (A3) | P003 | Yes | ADC1-CH7-EXTVOL (External Voltage), default handled by RT-Thread's ADC device framework adc0 channel 7 | 47| 20 (A4) | P508 | Yes | ADC1-CH19-EXTVOL (External Voltage), default handled by RT-Thread's ADC device framework adc0 channel 20 | 48| 21 (A5) | P014 | Yes | ADC1-CH5-EXTVOL (External Voltage), default handled by RT-Thread's ADC device framework adc0 channel 5 | 49 50> Note: 51> 1. RTduino currently does not support MDK; it is recommended to use the GNU GCC toolchain for compilation. 52> 2. The default PWM channel for Renesas is channel 0; for detailed driver information, refer to the `bsp\renesas\libraries\HAL_Drivers\drv_pwm.c` file.