#pragma once #include typedef enum { WAKE_MAIN_ALARM = 0, WAKE_AWARENESS_ALARM = 1, WAKE_RECOVERY_MAIN_ALARM = 2, WAKE_RECOVERY_AWARENESS_ALARM = 3 } WakeupReason; typedef struct TheTime { uint8_t HourWIP; uint8_t MinuteWIP; uint8_t HourSet; uint8_t MinuteSet; } __attribute__((__packed__)) TheTime; extern struct TheTime the_time; WakeupId wakeup_schedule_simple_robust(time_t wakeup_time, int8_t retry_diff, WakeupReason wakeup_reason);