Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ite-it8xxx2-gpio.h File Reference

Go to the source code of this file.

Macros

GPIO pin voltage flags

The voltage flags are a Zephyr specific extension of the standard GPIO flags specified by the Linux GPIO binding for use with the ITE IT8xxx2 SoCs.

#define IT8XXX2_GPIO_VOLTAGE_DEFAULT   (0U << IT8XXX2_GPIO_VOLTAGE_POS)
 Set pin at the default voltage level.
 
#define IT8XXX2_GPIO_VOLTAGE_1P8   (1U << IT8XXX2_GPIO_VOLTAGE_POS)
 Set pin voltage level at 1.8 V.
 
#define IT8XXX2_GPIO_VOLTAGE_3P3   (2U << IT8XXX2_GPIO_VOLTAGE_POS)
 Set pin voltage level at 3.3 V.
 
#define IT8XXX2_GPIO_VOLTAGE_5P0   (3U << IT8XXX2_GPIO_VOLTAGE_POS)
 Set pin voltage level at 5.0 V.
 

Macro Definition Documentation

◆ IT8XXX2_GPIO_VOLTAGE_1P8

#define IT8XXX2_GPIO_VOLTAGE_1P8   (1U << IT8XXX2_GPIO_VOLTAGE_POS)

Set pin voltage level at 1.8 V.

◆ IT8XXX2_GPIO_VOLTAGE_3P3

#define IT8XXX2_GPIO_VOLTAGE_3P3   (2U << IT8XXX2_GPIO_VOLTAGE_POS)

Set pin voltage level at 3.3 V.

◆ IT8XXX2_GPIO_VOLTAGE_5P0

#define IT8XXX2_GPIO_VOLTAGE_5P0   (3U << IT8XXX2_GPIO_VOLTAGE_POS)

Set pin voltage level at 5.0 V.

◆ IT8XXX2_GPIO_VOLTAGE_DEFAULT

#define IT8XXX2_GPIO_VOLTAGE_DEFAULT   (0U << IT8XXX2_GPIO_VOLTAGE_POS)

Set pin at the default voltage level.