Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Freedman_v2 Nucleo_i2c_OLED_BME280_copy
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/sleep.c
- Revision:
- 100:0412b5443284
- Parent:
- 84:f54042cbc282
- Child:
- 129:0182c99221bc
diff -r 6b967e9f1a5d -r 0412b5443284 targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/sleep.c
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/sleep.c Wed Feb 19 09:00:05 2014 +0000
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/sleep.c Wed Feb 19 17:15:16 2014 +0000
@@ -102,17 +102,11 @@
// MCU SLEEP mode
void sleep(void)
{
- // Disable us_ticker update interrupt
- TIM_ITConfig(TIM9, TIM_IT_Update, DISABLE);
-
// Enable PWR clock
RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE);
// Request to enter SLEEP mode with regulator ON
PWR_EnterSleepMode(PWR_Regulator_ON, PWR_SLEEPEntry_WFI);
-
- // Re-enable us_ticker update interrupt
- TIM_ITConfig(TIM9, TIM_IT_Update, ENABLE);
}
// MCU STOP mode (Regulator in LP mode, LSI, HSI and HSE OFF)
