From 92718337ed9c639a0c9da7f87132f2ec02fa0c10 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 22 Aug 2023 12:17:04 +0200 Subject: [PATCH] Changed static to weak --- targets/TARGET_STM/sleep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/targets/TARGET_STM/sleep.c b/targets/TARGET_STM/sleep.c index b266c74c70a..8d1184194bf 100644 --- a/targets/TARGET_STM/sleep.c +++ b/targets/TARGET_STM/sleep.c @@ -40,7 +40,7 @@ extern void restore_timer_ctx(void); extern void SetSysClock(void); /* Wait loop - assuming tick is 1 us */ -static void wait_loop(uint32_t timeout) +__WEAK void wait_loop(uint32_t timeout) { uint32_t t1, t2, elapsed = 0; t1 = us_ticker_read(); @@ -52,7 +52,7 @@ static void wait_loop(uint32_t timeout) } -static void ForcePeriphOutofDeepSleep(void) +__WEAK void ForcePeriphOutofDeepSleep(void) { uint32_t pFLatency = 0; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; @@ -84,7 +84,7 @@ static void ForcePeriphOutofDeepSleep(void) } -static void ForceOscOutofDeepSleep(void) +__WEAK void ForceOscOutofDeepSleep(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0};