Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
ene-kb106x-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 ENE KB106x SoCs.

Note: Bits 15 down to 8 are reserved for SoC specific flags.

#define ENE_GPIO_VOLTAGE_DEFAULT   (0U << ENE_GPIO_VOLTAGE_POS)
 Set pin at the default voltage level (3.3V)
#define ENE_GPIO_VOLTAGE_1P8   (1U << ENE_GPIO_VOLTAGE_POS)
 Set pin voltage level at 1.8 V.
#define ENE_GPIO_DRIVING_DEFAULT   (0U << ENE_GPIO_DRIVING_POS)
 Set pin at the default driving current (4mA)
#define ENE_GPIO_DRIVING_16MA   (1U << ENE_GPIO_DRIVING_POS)
 Set pin driving current at 16mA.

Macro Definition Documentation

◆ ENE_GPIO_DRIVING_16MA

#define ENE_GPIO_DRIVING_16MA   (1U << ENE_GPIO_DRIVING_POS)

Set pin driving current at 16mA.

◆ ENE_GPIO_DRIVING_DEFAULT

#define ENE_GPIO_DRIVING_DEFAULT   (0U << ENE_GPIO_DRIVING_POS)

Set pin at the default driving current (4mA)

◆ ENE_GPIO_VOLTAGE_1P8

#define ENE_GPIO_VOLTAGE_1P8   (1U << ENE_GPIO_VOLTAGE_POS)

Set pin voltage level at 1.8 V.

◆ ENE_GPIO_VOLTAGE_DEFAULT

#define ENE_GPIO_VOLTAGE_DEFAULT   (0U << ENE_GPIO_VOLTAGE_POS)

Set pin at the default voltage level (3.3V)