diff options
Diffstat (limited to 'chip/nrf51')
-rw-r--r-- | chip/nrf51/system.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chip/nrf51/system.c b/chip/nrf51/system.c index 6a3b0888c5..dc7bff2059 100644 --- a/chip/nrf51/system.c +++ b/chip/nrf51/system.c @@ -7,6 +7,7 @@ #include "common.h" #include "console.h" +#include "ec_commands.h" #include "registers.h" #include "system.h" #include "task.h" @@ -50,22 +51,22 @@ static void check_reset_cause(void) uint32_t raw_cause = NRF51_POWER_RESETREAS; if (raw_cause & NRF51_POWER_RESETREAS_RESETPIN) - flags |= RESET_FLAG_RESET_PIN; + flags |= EC_RESET_FLAG_RESET_PIN; if (raw_cause & NRF51_POWER_RESETREAS_DOG) - flags |= RESET_FLAG_WATCHDOG; + flags |= EC_RESET_FLAG_WATCHDOG; /* Note that the programmer uses a soft reset in debug mode. */ if (raw_cause & NRF51_POWER_RESETREAS_SREQ) - flags |= RESET_FLAG_SOFT; + flags |= EC_RESET_FLAG_SOFT; if (raw_cause & (NRF51_POWER_RESETREAS_OFF | NRF51_POWER_RESETREAS_LPCOMP)) - flags |= RESET_FLAG_WAKE_PIN; + flags |= EC_RESET_FLAG_WAKE_PIN; if (raw_cause & (NRF51_POWER_RESETREAS_LOCKUP | NRF51_POWER_RESETREAS_DIF)) - flags |= RESET_FLAG_OTHER; + flags |= EC_RESET_FLAG_OTHER; system_set_reset_flags(flags); |