Skip to content

Commit 2c54177

Browse files
authored
Merge pull request #3674 from ARMmbed/feature_hal_sleep
NRF51822: HAL: Restore WEAK declaration for hal_(deep)sleep
2 parents b681b49 + 762e15e commit 2c54177

File tree

1 file changed

+2
-2
lines changed
  • targets/TARGET_NORDIC/TARGET_MCU_NRF51822

1 file changed

+2
-2
lines changed

targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
#include "mbed_interface.h"
1919
#include "toolchain.h"
2020

21-
void hal_sleep(void)
21+
MBED_WEAK void hal_sleep(void)
2222
{
2323
// ensure debug is disconnected if semihost is enabled....
2424
NRF_POWER->TASKS_LOWPWR = 1;
2525
// wait for interrupt
2626
__WFE();
2727
}
2828

29-
void hal_deepsleep(void)
29+
MBED_WEAK void hal_deepsleep(void)
3030
{
3131
hal_sleep();
3232
// NRF_POWER->SYSTEMOFF=1;

0 commit comments

Comments
 (0)