24 #ifndef _WATCH_DEEPSLEEP_H_INCLUDED
25 #define _WATCH_DEEPSLEEP_H_INCLUDED
31 extern ext_irq_cb_t btn_alarm_callback;
32 extern ext_irq_cb_t a2_callback;
33 extern ext_irq_cb_t a4_callback;
153 __attribute__((deprecated(
"Use watch_enter_sleep_mode or watch_enter_deep_sleep_mode instead")))
154 void watch_enter_shallow_sleep(
bool display_on);
157 void watch_enter_deep_sleep(
void);
uint32_t watch_get_backup_data(uint8_t reg)
Gets 32 bits of data from the RTC's BACKUP register.
Definition: watch_deepsleep.c:121
void watch_store_backup_data(uint32_t data, uint8_t reg)
Stores data in one of the RTC's backup registers, which retain their data in BACKUP mode.
Definition: watch_deepsleep.c:115
void watch_enter_backup_mode(void)
Enters the SAM L22's lowest-power mode, BACKUP.
Definition: watch_deepsleep.c:188
void watch_enter_sleep_mode(void)
enters Sleep Mode by disabling all pins and peripherals except the RTC and the LCD.
Definition: watch_deepsleep.c:154
void watch_disable_extwake_interrupt(uint8_t pin)
Unregisters the RTC interrupt on one of the EXTWAKE pins. This will prevent a value change on one of ...
Definition: watch_deepsleep.c:87
void watch_register_extwake_callback(uint8_t pin, ext_irq_cb_t callback, bool level)
Registers a callback on one of the RTC's external wake pins, which can wake the device from Sleep,...
Definition: watch_deepsleep.c:34
void watch_enter_deep_sleep_mode(void)
enters Deep Sleep Mode by disabling all pins and peripherals except the RTC.
Definition: watch_deepsleep.c:180