1 /* 2 * Copyright (c) 2022 Vestas Wind Systems A/S 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_ESPRESSIF_ESP32_GPIO_H_ 7 #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_ESPRESSIF_ESP32_GPIO_H_ 8 9 /** 10 * @name GPIO drive strength flags 11 * 12 * The drive strength flags are a Zephyr specific extension of the standard GPIO 13 * flags specified by the Linux GPIO binding. Only applicable for Espressif 14 * ESP32 SoCs. 15 * 16 * The interface supports two different drive strengths: 17 * `DFLT` - The lowest drive strength supported by the HW 18 * `ALT` - The highest drive strength supported by the HW 19 * 20 * @{ 21 */ 22 /** @cond INTERNAL_HIDDEN */ 23 #define ESP32_GPIO_DS_POS 9 24 #define ESP32_GPIO_DS_MASK (0x3U << ESP32_GPIO_DS_POS) 25 /** @endcond */ 26 27 /** Default drive strength. */ 28 #define ESP32_GPIO_DS_DFLT (0x0U << ESP32_GPIO_DS_POS) 29 30 /** Alternative drive strength. */ 31 #define ESP32_GPIO_DS_ALT (0x3U << ESP32_GPIO_DS_POS) 32 33 /** @} */ 34 35 #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_ESPRESSIF_ESP32_GPIO_H_ */ 36