From dace8653e6b4d1319691920f7d4999eef47f90fd Mon Sep 17 00:00:00 2001 From: bcostm Date: Mon, 6 Jan 2014 15:07:49 +0100 Subject: [PATCH] [NUCLEO_F103RB] Remove HSE re-configuration in sleep code. --- .../mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c index c105e94708..bea4eb96c0 100644 --- a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c +++ b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c @@ -30,6 +30,8 @@ #include "sleep_api.h" #include "cmsis.h" +// This function is only necessary if the HSE is used. +/* static void SYSCLKConfig_STOP(void) { ErrorStatus HSEStartUpStatus; @@ -45,6 +47,7 @@ static void SYSCLKConfig_STOP(void) while(RCC_GetSYSCLKSource() != 0x08) {} // Wait till PLL is used as system clock source } } +*/ void sleep(void) { @@ -63,5 +66,5 @@ void deepsleep(void) // At this stage the system has resumed from STOP mode. // Re-configure the system clock: enable HSE, PLL and select // PLL as system clock source (because HSE and PLL are disabled in STOP mode). - SYSCLKConfig_STOP(); + //SYSCLKConfig_STOP(); }