diff --git a/chip/npcx/system.c b/chip/npcx/system.c index bda6fe6e3a..2e8493be98 100644 --- a/chip/npcx/system.c +++ b/chip/npcx/system.c @@ -417,7 +417,6 @@ static char system_to_hex(uint8_t x) * stores wakeup time in seconds. * Set seconds = 0 to disable the alarm */ -#define EC_RTC_ALARM_CLEAR 0 void system_set_rtc_alarm(uint32_t seconds, uint32_t microseconds) { uint32_t cur_secs, alarm_secs; diff --git a/include/ec_commands.h b/include/ec_commands.h index 18f5f839f7..c69440fb06 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2147,6 +2147,9 @@ struct ec_response_rtc { #define EC_CMD_RTC_SET_VALUE 0x46 #define EC_CMD_RTC_SET_ALARM 0x47 +/* Pass as time param to SET_ALARM to clear the current alarm */ +#define EC_RTC_ALARM_CLEAR 0 + /*****************************************************************************/ /* Port80 log access */