Skip to content

Commit dace865

Browse files
committed
[NUCLEO_F103RB] Remove HSE re-configuration in sleep code.
1 parent 989c661 commit dace865

File tree

1 file changed

+4
-1
lines changed
  • libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB

1 file changed

+4
-1
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include "sleep_api.h"
3131
#include "cmsis.h"
3232

33+
// This function is only necessary if the HSE is used.
34+
/*
3335
static void SYSCLKConfig_STOP(void)
3436
{
3537
ErrorStatus HSEStartUpStatus;
@@ -45,6 +47,7 @@ static void SYSCLKConfig_STOP(void)
4547
while(RCC_GetSYSCLKSource() != 0x08) {} // Wait till PLL is used as system clock source
4648
}
4749
}
50+
*/
4851

4952
void sleep(void)
5053
{
@@ -63,5 +66,5 @@ void deepsleep(void)
6366
// At this stage the system has resumed from STOP mode.
6467
// Re-configure the system clock: enable HSE, PLL and select
6568
// PLL as system clock source (because HSE and PLL are disabled in STOP mode).
66-
SYSCLKConfig_STOP();
69+
//SYSCLKConfig_STOP();
6770
}

0 commit comments

Comments
 (0)