Skip to content

Commit 9271833

Browse files
committed
Changed static to weak
1 parent f0d9090 commit 9271833

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

targets/TARGET_STM/sleep.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extern void restore_timer_ctx(void);
4040
extern void SetSysClock(void);
4141

4242
/* Wait loop - assuming tick is 1 us */
43-
static void wait_loop(uint32_t timeout)
43+
__WEAK void wait_loop(uint32_t timeout)
4444
{
4545
uint32_t t1, t2, elapsed = 0;
4646
t1 = us_ticker_read();
@@ -52,7 +52,7 @@ static void wait_loop(uint32_t timeout)
5252
}
5353

5454

55-
static void ForcePeriphOutofDeepSleep(void)
55+
__WEAK void ForcePeriphOutofDeepSleep(void)
5656
{
5757
uint32_t pFLatency = 0;
5858
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
@@ -84,7 +84,7 @@ static void ForcePeriphOutofDeepSleep(void)
8484
}
8585

8686

87-
static void ForceOscOutofDeepSleep(void)
87+
__WEAK void ForceOscOutofDeepSleep(void)
8888
{
8989
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
9090

0 commit comments

Comments
 (0)