|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Macros for pin control configuration of the Renesas RZ/A2M SoC. More...
Files | |
| file | pinctrl-rza2m.h |
| Devicetree pin control helpers for Renesas RZ/A2M. | |
Macros | |
| #define | RZA2M_PIN_NUM_IN_PORT 8 |
| Number of pins per port. | |
| #define | RZA2M_PINMUX(b, p, f) |
| Create an encoded pinmux value from a port, pin and function. | |
Macros for pin control configuration of the Renesas RZ/A2M SoC.
Each pin configuration is built with the RZA2M_PINMUX() macro, which takes a port, the pin number within that port, and the alternate-function number. Ports are named as in the hardware manual: PORT_00 ... PORT_09, PORT_A ... PORT_M, plus PORT_CKIO and PORT_PPOC.
RZ/A2M uses an older pinmux scheme than the other RZ/A SoCs: the alternate-function index is encoded in the upper bits and taken from the SoC's pin-function table (there is no symbolic macro for it).
| #define RZA2M_PIN_NUM_IN_PORT 8 |
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rza2m.h>
Number of pins per port.
| #define RZA2M_PINMUX | ( | b, | |
| p, | |||
| f ) |
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rza2m.h>
Create an encoded pinmux value from a port, pin and function.
The pin index is built from the port and pin position numbers; the alternate function identifier is stored in the upper 16 bits.
| b | Port identifier (PORT_00..PORT_M, plus PORT_CKIO / PORT_PPOC). |
| p | Pin number within the port. |
| f | Alternate function identifier. |