mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3674 from ARMmbed/feature_hal_sleep
NRF51822: HAL: Restore WEAK declaration for hal_(deep)sleeppull/3602/merge
commit
2c54177115
targets/TARGET_NORDIC/TARGET_MCU_NRF51822
|
@ -18,7 +18,7 @@
|
||||||
#include "mbed_interface.h"
|
#include "mbed_interface.h"
|
||||||
#include "toolchain.h"
|
#include "toolchain.h"
|
||||||
|
|
||||||
void hal_sleep(void)
|
MBED_WEAK void hal_sleep(void)
|
||||||
{
|
{
|
||||||
// ensure debug is disconnected if semihost is enabled....
|
// ensure debug is disconnected if semihost is enabled....
|
||||||
NRF_POWER->TASKS_LOWPWR = 1;
|
NRF_POWER->TASKS_LOWPWR = 1;
|
||||||
|
@ -26,7 +26,7 @@ void hal_sleep(void)
|
||||||
__WFE();
|
__WFE();
|
||||||
}
|
}
|
||||||
|
|
||||||
void hal_deepsleep(void)
|
MBED_WEAK void hal_deepsleep(void)
|
||||||
{
|
{
|
||||||
hal_sleep();
|
hal_sleep();
|
||||||
// NRF_POWER->SYSTEMOFF=1;
|
// NRF_POWER->SYSTEMOFF=1;
|
||||||
|
|
Loading…
Reference in New Issue