summaryrefslogtreecommitdiffstats
path: root/watch-library/watch/watch_deepsleep.c
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-09-28 15:13:09 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-09-28 15:13:09 -0400
commit9da9dfb7b2c7f43a9c45a46eca47b924396fd865 (patch)
treee8beea5f45a22ab333ad529abaa2580fe1b3f621 /watch-library/watch/watch_deepsleep.c
parent39a17c99b988086396388a942889c78b84ad6891 (diff)
downloadSensor-Watch-9da9dfb7b2c7f43a9c45a46eca47b924396fd865.tar.gz
Sensor-Watch-9da9dfb7b2c7f43a9c45a46eca47b924396fd865.tar.bz2
Sensor-Watch-9da9dfb7b2c7f43a9c45a46eca47b924396fd865.zip
rtc: support periodic ticks at intervals from 1 to 128 Hz
Diffstat (limited to 'watch-library/watch/watch_deepsleep.c')
-rw-r--r--watch-library/watch/watch_deepsleep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/watch-library/watch/watch_deepsleep.c b/watch-library/watch/watch_deepsleep.c
index c83254e4..1f3ae7fb 100644
--- a/watch-library/watch/watch_deepsleep.c
+++ b/watch-library/watch/watch_deepsleep.c
@@ -164,7 +164,7 @@ void watch_enter_shallow_sleep(char *message) {
_watch_disable_all_peripherals_except_slcd();
// disable tick interrupt
- watch_disable_tick_callback();
+ watch_rtc_disable_all_tick_callbacks();
// disable brownout detector interrupt, which could inadvertently wake us up.
SUPC->INTENCLR.bit.BOD33DET = 1;
@@ -190,7 +190,7 @@ void watch_enter_deep_sleep() {
// so let's do it!
watch_register_extwake_callback(BTN_ALARM, NULL, true);
- watch_disable_tick_callback();
+ watch_rtc_disable_all_tick_callbacks();
_watch_disable_all_peripherals_except_slcd();
slcd_sync_deinit(&SEGMENT_LCD_0);
hri_mclk_clear_APBCMASK_SLCD_bit(SLCD);