24#ifndef _WATCH_DEEPSLEEP_H_INCLUDED
25#define _WATCH_DEEPSLEEP_H_INCLUDED
31extern ext_irq_cb_t btn_alarm_callback;
32extern ext_irq_cb_t a2_callback;
33extern ext_irq_cb_t a4_callback;
uint32_t watch_get_backup_data(uint8_t reg)
Gets 32 bits of data from the RTC's BACKUP register.
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.
void watch_enter_backup_mode(void)
Enters the SAM L22's lowest-power mode, BACKUP.
void watch_enter_sleep_mode(void)
enters Sleep Mode by disabling all pins and peripherals except the RTC and the LCD.
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 ...
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,...
void watch_enter_deep_sleep_mode(void)
enters Deep Sleep Mode by disabling all pins and peripherals except the RTC.