Skip to content

Commit

Permalink
Changed static to weak
Browse files Browse the repository at this point in the history
  • Loading branch information
hallard committed Aug 22, 2023
1 parent f0d9090 commit 9271833
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions targets/TARGET_STM/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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};
Expand Down Expand Up @@ -84,7 +84,7 @@ static void ForcePeriphOutofDeepSleep(void)
}


static void ForceOscOutofDeepSleep(void)
__WEAK void ForceOscOutofDeepSleep(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {0};

Expand Down

0 comments on commit 9271833

Please sign in to comment.