|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Macros for pin control configuration of Renesas RZ/T Series. More...
Files | |
| file | pinctrl-rzt-common.h |
| Devicetree pin control helpers for Renesas RZ/T. | |
Macros | |
| #define | RZT_PINMUX(port, pin, func) |
| Create an encoded value containing port/pin/function information. | |
Macros for pin control configuration of Renesas RZ/T Series.
Each pin configuration is built with the RZT_PINMUX() macro, which takes three fields:
port — the port identifier, one of the PORT_* values.pin — the pin number within that port.func — the alternate-function number that selects which peripheral signal is routed to the pin. There is no symbolic macro for it: func is the function index for the pin taken from the SoC's Pin Function Controller table (the multiplexing table in the hardware manual / pin-assignment spreadsheet), passed as a plain integer.For example, RZT_PINMUX(PORT_16, 5, 1) routes function 1 of port 16 pin 5 (UART0 TXD on the supported SoCs).
| #define RZT_PINMUX | ( | port, | |
| pin, | |||
| func ) |
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rzt-common.h>
Create an encoded value containing port/pin/function information.
| port | Port identifier (PORT_00..PORT_35). |
| pin | Pin number within the port. |
| func | Pin function selector (encoded in bits [21:16]) |