Hardware supported

#define LED_PIN BSP_IO_PORT_01_PIN_02
rt_pin_write(LED_PIN, PIN_HIGH);
Board-support packages
Board Support Package (BSP) is the hardware related wrapper, for example, peripherals in board, the pinmux setting etc. Chip Support Package (CSP) is a software set that contains chip specific software. RT-Thread has now been ported for nearly 200 development boards, most BSPs support MDK, IAR development environment and GCC compiler.
ARM Cortex-M0/M0+/M3/M4/M23/M33/A8/A9, ARM7, ARM9, ARM11
RISC-V core
RT-Thread provides a set of I/O device framework located between the hardware and the application. The application obtains the correct device driver through the I/O device management interface, and then uses this device driver to perform data (or control) interaction with the bottom I/O hardware device.
For example, the application accesses the GPIO through the PIN device management interface. The pin numbers are defined by the PIN device driver and are related to the specific chip.
// pin PF9 for STM32
#define LED_PIN GET_PIN(F, 9)
Last updated