We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 315ea56 commit 1dd63f4Copy full SHA for 1dd63f4
include/zephyr/dt-bindings/power/stm32_pwr.h
@@ -7,6 +7,8 @@
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_POWER_STM32_PWR_H_
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_POWER_STM32_PWR_H_
9
10
+#include <zephyr/dt-bindings/dt-util.h>
11
+
12
/**
13
* @brief STM32 power controller
14
* @{
@@ -17,10 +19,11 @@
17
19
18
20
*/
21
22
+/* Use this flag on series where wake-up event source is fixed/not configurable */
23
#define STM32_PWR_WKUP_PIN_NOT_MUXED STM32_PWR_WKUP_EVT_SRC_0
-#define STM32_PWR_WKUP_EVT_SRC_0 0
-#define STM32_PWR_WKUP_EVT_SRC_1 1
-#define STM32_PWR_WKUP_EVT_SRC_2 (1 << 2)
24
+#define STM32_PWR_WKUP_EVT_SRC_0 BIT(0)
25
+#define STM32_PWR_WKUP_EVT_SRC_1 BIT(1)
26
+#define STM32_PWR_WKUP_EVT_SRC_2 BIT(2)
27
28
/** @} */
29
0 commit comments