summaryrefslogtreecommitdiff
path: root/chip/stm32/clock-stm32f.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/clock-stm32f.c')
-rw-r--r--chip/stm32/clock-stm32f.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/stm32/clock-stm32f.c b/chip/stm32/clock-stm32f.c
index 301b4c09ef..76278c9c01 100644
--- a/chip/stm32/clock-stm32f.c
+++ b/chip/stm32/clock-stm32f.c
@@ -161,6 +161,7 @@ static void config_hispeed_clock(void)
;
}
+#ifdef CONFIG_HIBERNATE
void __enter_hibernate(uint32_t seconds, uint32_t microseconds)
{
if (seconds || microseconds)
@@ -180,6 +181,7 @@ void __enter_hibernate(uint32_t seconds, uint32_t microseconds)
while (1)
;
}
+#endif
#ifdef CONFIG_LOW_POWER_IDLE