Line data Source code
1 0 : /* 2 : * Copyright (c) 2024 STMicroelectronics 3 : * 4 : * SPDX-License-Identifier: Apache-2.0 5 : */ 6 : 7 : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_STM32_GPIO_H_ 8 : #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_STM32_GPIO_H_ 9 : 10 : /** 11 : * @brief STM32 GPIO specific flags 12 : * 13 : * The driver flags are encoded in the 8 upper bits of @ref gpio_dt_flags_t as 14 : * follows: 15 : * 16 : * - Bit 8: Configure a GPIO pin to power on the system after Poweroff. 17 : * 18 : * @ingroup gpio_interface 19 : * @{ 20 : */ 21 : 22 : /** 23 : * Configures a GPIO pin to power on the system after Poweroff. 24 : * This flag is reserved to GPIO pins that are associated with wake-up pins 25 : * in STM32 PWR devicetree node, through the property "wkup-gpios". 26 : */ 27 1 : #define STM32_GPIO_WKUP (1 << 8) 28 : 29 : /** @} */ 30 : 31 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_STM32_GPIO_H_ */