|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Macros for pin control configuration of Renesas RA0 SoCs. More...
Files | |
| file | pinctrl-ra0.h |
| Devicetree pin control helpers for Renesas RA0. | |
Macros | |
| #define | RA_PSEL(psel, port_num, pin_num) |
| Utility macro to build Renesas RA0 psels property entry. | |
Macros for pin control configuration of Renesas RA0 SoCs.
Each pin configuration is built with the RA_PSEL() macro, which combines a per-port peripheral-function selector, the port number, and the pin number within that port.
The selector follows the naming convention RA_PSEL_P<PORT>nPFS_<SIGNAL>, where <PORT> is the port number and <SIGNAL> is the peripheral signal routed to the pin (for example RA_PSEL_P1nPFS_TXDA0C selects the TXDA0C signal on port 1). Signals are grouped by peripheral:
TI and outputs TO SCK, SI, SO, SSI; in UART mode: TXD, RXD; in simple-I2C mode: SCL, SDA SCLA0, SDAA0, SCLA1, SDAA1 TXDA0, RXDA0, TXDA1, RXDA1 RTCOUT, RTCOUNTC PCLBUZ0, PCLBUZ1 TS0 ... TS12, TSCAP SWDIO, SWCLK | #define RA_PSEL | ( | psel, | |
| port_num, | |||
| pin_num ) |
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-ra0.h>
Utility macro to build Renesas RA0 psels property entry.
| psel | Pin function configuration (see RA_PSEL_{name} macros). |
| port_num | Port (0 or 15). |
| pin_num | Pin (0..31). |