diff options
author | Alexsander Akers <me@a2.io> | 2022-01-27 11:23:14 -0500 |
---|---|---|
committer | Alexsander Akers <me@a2.io> | 2022-01-27 12:06:06 -0500 |
commit | a559d089f1845fb23434739f66b7bb5288191139 (patch) | |
tree | 7c1f628826078f2c604c86d4917ab36153917be3 /watch-library/shared/watch | |
parent | d3e484dc989a6e3a040b5b1092340973d9b4e22f (diff) | |
download | Sensor-Watch-a559d089f1845fb23434739f66b7bb5288191139.tar.gz Sensor-Watch-a559d089f1845fb23434739f66b7bb5288191139.tar.bz2 Sensor-Watch-a559d089f1845fb23434739f66b7bb5288191139.zip |
Add new function to disable certain RTC periodic callbacks
Diffstat (limited to 'watch-library/shared/watch')
-rw-r--r-- | watch-library/shared/watch/watch_rtc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/watch-library/shared/watch/watch_rtc.h b/watch-library/shared/watch/watch_rtc.h index 6dac63f5..b51d6c48 100644 --- a/watch-library/shared/watch/watch_rtc.h +++ b/watch-library/shared/watch/watch_rtc.h @@ -137,6 +137,11 @@ void watch_rtc_register_periodic_callback(ext_irq_cb_t callback, uint8_t frequen */ void watch_rtc_disable_periodic_callback(uint8_t frequency); +/** @brief Disables tick callbacks for the given periods (as a bitmask). + * @param mask The frequencies of tick callbacks you wish to disable, in Hz. To disable the 2 and 4 Hz callbacks, pass 0b00000110; + */ +void watch_rtc_disable_matching_periodic_callbacks(uint8_t mask); + /** @brief Disables all periodic callbacks, including the once-per-second tick callback. */ void watch_rtc_disable_all_periodic_callbacks(void); |