|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Macros for pin control configuration of Renesas RA SoCs. More...
Files | |
| file | pinctrl-ra.h |
| Devicetree pin control helpers for Renesas RA. | |
Macros | |
| #define | RA_PSEL(psel, port_num, pin_num) |
| Macro to encode a pin configuration for Renesas RA SoCs. | |
Macros for pin control configuration of Renesas RA SoCs.
Each pin configuration is built with the RA_PSEL() macro, which combines a peripheral-function selector, the port number, and the pin number within that port.
The selector follows the naming convention RA_PSEL_<FUNCTION>, where <FUNCTION> is one of:
ADC, DAC, ACMPHS, ACMPHS_VCOUT, CAC_ADC, CAC_DAC, CTSU AGT, GPT0, GPT1 SCI_0 ... SCI_9, SPI, I2C, I3C CANFD, QSPI, OSPI, SSIE, USBFS, USBHS, SDHI, ETH_MII, ETH_RMII, ETH_RGMII GLCDC, CEU HIZ_JTAG_SWD, CLKOUT_RTC, ETHPHYCLK, BUS | #define RA_PSEL | ( | psel, | |
| port_num, | |||
| pin_num ) |
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-ra.h>
Macro to encode a pin configuration for Renesas RA SoCs.
This macro encodes the mode, peripheral selection (PSEL), port number, and pin number into a single 32-bit value suitable for use in DeviceTree pinctrl configurations.
| psel | Peripheral selection value (use RA_PSEL_* macros). |
| port_num | Port number. |
| pin_num | Pin number within the port. |