# Hardware supported

<figure><img src="/files/Q4vq3VGgR1rqeKHdmQpn" alt=""><figcaption></figcaption></figure>

```c
#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.

```c
// pin PF9 for STM32
#define LED_PIN GET_PIN(F, 9) 
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.tesa.or.th/tesa-developer/tesa-university-program/rt-thread-iot-os/university-program/rt-thread-architecture/hardware-supported.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
