Zephyr API Documentation  3.4.0
A Scalable Open Source RTOS
3.4.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gpio.h File Reference

Go to the source code of this file.

Macros

#define GPIO_DT_FLAGS_MASK   0x3F
 
GPIO pin active level flags
#define GPIO_ACTIVE_LOW   (1 << 0)
 
#define GPIO_ACTIVE_HIGH   (0 << 0)
 
GPIO pin drive flags
#define GPIO_OPEN_DRAIN   (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_DRAIN)
 
#define GPIO_OPEN_SOURCE   (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_SOURCE)
 
GPIO pin bias flags
#define GPIO_PULL_UP   (1 << 4)
 
#define GPIO_PULL_DOWN   (1 << 5)