Skip to content

Commit

Permalink
Merge pull request ARMmbed#15448 from hallard/STM32_weak_deepsleep
Browse files Browse the repository at this point in the history
STM Sleep change dependency func from static to WEAK
  • Loading branch information
0xc0170 authored Aug 28, 2023
2 parents f0d9090 + 9271833 commit 67c25e8
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 67c25e8

Please sign in to comment.