Skip to content

Commit 094df96

Browse files
committed
[GO] Fix HAL definition
PWR_WAKEUP_PIN5 should be defined only if PWR_CR3_EWUP5 is defined Signed-off-by: Frederic Pillon <[email protected]>
1 parent 5456524 commit 094df96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: system/Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h

+2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ typedef struct
133133
#define PWR_WAKEUP_PIN1 PWR_CR3_EWUP1 /*!< Wakeup pin 1 (with high level detection) */
134134
#define PWR_WAKEUP_PIN2 PWR_CR3_EWUP2 /*!< Wakeup pin 2 (with high level detection) */
135135
#define PWR_WAKEUP_PIN4 PWR_CR3_EWUP4 /*!< Wakeup pin 4 (with high level detection) */
136+
#if defined(PWR_CR3_EWUP5)
136137
#define PWR_WAKEUP_PIN5 PWR_CR3_EWUP5 /*!< Wakeup pin 5 (with high level detection) */
138+
#endif
137139
#define PWR_WAKEUP_PIN6 PWR_CR3_EWUP6 /*!< Wakeup pin 6 (with high level detection) */
138140
#define PWR_WAKEUP_PIN1_HIGH PWR_CR3_EWUP1 /*!< Wakeup pin 1 (with high level detection) */
139141
#define PWR_WAKEUP_PIN2_HIGH PWR_CR3_EWUP2 /*!< Wakeup pin 2 (with high level detection) */

0 commit comments

Comments
 (0)