Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM Sleep change dependency func from static to WEAK #15448

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading