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.
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c
- Revision:
- 402:09075a3b15e3
- Parent:
- 174:8bb9f3a33240
diff -r 6d559ae9fd59 -r 09075a3b15e3 targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c --- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c Fri Nov 14 08:45:06 2014 +0000 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c Fri Nov 14 09:00:07 2014 +0000 @@ -33,7 +33,8 @@ #include "cmsis.h" -void sleep(void) { +void sleep(void) +{ // Disable us_ticker update interrupt TIM_ITConfig(TIM1, TIM_IT_Update, DISABLE); @@ -44,7 +45,8 @@ TIM_ITConfig(TIM1, TIM_IT_Update, ENABLE); } -void deepsleep(void) { +void deepsleep(void) +{ // Disable us_ticker update interrupt TIM_ITConfig(TIM1, TIM_IT_Update, DISABLE);