Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nuvoton-npcx-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 Nuvoton NPCX SoCs.

#define NPCX_GPIO_VOLTAGE_DEFAULT   (0U << NPCX_GPIO_VOLTAGE_POS)
 Set pin at the default voltage level (3.3V)
 
#define NPCX_GPIO_VOLTAGE_1P8   (1U << NPCX_GPIO_VOLTAGE_POS)
 Set pin voltage level at 1.8 V.
 

Macro Definition Documentation

◆ NPCX_GPIO_VOLTAGE_1P8

#define NPCX_GPIO_VOLTAGE_1P8   (1U << NPCX_GPIO_VOLTAGE_POS)

Set pin voltage level at 1.8 V.

◆ NPCX_GPIO_VOLTAGE_DEFAULT

#define NPCX_GPIO_VOLTAGE_DEFAULT   (0U << NPCX_GPIO_VOLTAGE_POS)

Set pin at the default voltage level (3.3V)