Skip to content

Commit 762e15e

Browse files
committed
NRF51822: HAL: Restore WEAK declaration for hal_(deep)sleep
Otherwise we have a conflict between NRF51822 and DELTA_DFCM_NNN40.
1 parent 450701f commit 762e15e

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)