Merge pull request #3674 from ARMmbed/feature_hal_sleep

NRF51822: HAL: Restore WEAK declaration for hal_(deep)sleep
pull/3602/merge
Sam Grove 2017-02-02 11:01:45 -06:00 committed by GitHub
commit 2c54177115
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
#include "mbed_interface.h"
#include "toolchain.h"
void hal_sleep(void)
MBED_WEAK void hal_sleep(void)
{
// ensure debug is disconnected if semihost is enabled....
NRF_POWER->TASKS_LOWPWR = 1;
@ -26,7 +26,7 @@ void hal_sleep(void)
__WFE();
}
void hal_deepsleep(void)
MBED_WEAK void hal_deepsleep(void)
{
hal_sleep();
// NRF_POWER->SYSTEMOFF=1;