|
Zephyr Project API 4.3.99
A Scalable Open Source RTOS
|
Renesas RZ/T,N GPIO flags for Zephyr. More...
Go to the source code of this file.
Macros | |
Renesas RZ/T,N Region Select Options | |
Set the safety attribute for I/O ports (RSELP) | |
| #define | RZTN_GPIO_SAFETY 0U |
| Safety region. | |
| #define | RZTN_GPIO_NONSAFETY BIT(14) |
| Non safety region. | |
| #define | RZTN_GPIO_DRCTL_SET(drive_ability, schmitt_trig, slew_rate) |
| Encode settings for DRCTL register into one configuration value. | |
Renesas RZ/T,N GPIO flags for Zephyr.
The additional flags are encoded in the 8 upper bits of gpio_dt_flags_t as follows:
Example DT usage:
| #define RZTN_GPIO_DRCTL_SET | ( | drive_ability, | |
| schmitt_trig, | |||
| slew_rate ) |
Encode settings for DRCTL register into one configuration value.
Encodings:
| drive_ability | Driving ability control (0=Low, 1=Middle, 2=High, 3=Ultral High) |
| schmitt_trig | Schmitt trigger control (0=Disable, 1=Enable) |
| slew_rate | Slew rate control (0=Slow, 1=Fast) |
| #define RZTN_GPIO_NONSAFETY BIT(14) |
Non safety region.
| #define RZTN_GPIO_SAFETY 0U |
Safety region.