123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_GPIO_H_
- #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_GPIO_H_
- #define GPIO_ACTIVE_LOW (1 << 0)
- #define GPIO_ACTIVE_HIGH (0 << 0)
- #define GPIO_SINGLE_ENDED (1 << 1)
- #define GPIO_PUSH_PULL (0 << 1)
- #define GPIO_LINE_OPEN_DRAIN (1 << 2)
- #define GPIO_LINE_OPEN_SOURCE (0 << 2)
- #define GPIO_OPEN_DRAIN (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_DRAIN)
- #define GPIO_OPEN_SOURCE (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_SOURCE)
- #define GPIO_PULL_UP (1 << 4)
- #define GPIO_PULL_DOWN (1 << 5)
- #define GPIO_VOLTAGE_POS 6
- #define GPIO_VOLTAGE_MASK (3U << GPIO_VOLTAGE_POS)
- #define GPIO_VOLTAGE_DEFAULT (0U << GPIO_VOLTAGE_POS)
- #define GPIO_VOLTAGE_1P8 (1U << GPIO_VOLTAGE_POS)
- #define GPIO_VOLTAGE_3P3 (2U << GPIO_VOLTAGE_POS)
- #define GPIO_VOLTAGE_5P0 (3U << GPIO_VOLTAGE_POS)
- #endif
|