summaryrefslogtreecommitdiffstats
path: root/watch-library
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-02-11 12:16:03 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-02-11 12:18:16 -0500
commit87be905feee0b76270c8e596b9a4557aef9600a4 (patch)
treed393c5d491c1439ea7881ecc8b00abdbe727f20e /watch-library
parent27fa69ccac364401eeb59192c02aa6f7e93262c0 (diff)
downloadSensor-Watch-87be905feee0b76270c8e596b9a4557aef9600a4.tar.gz
Sensor-Watch-87be905feee0b76270c8e596b9a4557aef9600a4.tar.bz2
Sensor-Watch-87be905feee0b76270c8e596b9a4557aef9600a4.zip
rtc: disable debouncing on external wake inputs
Diffstat (limited to 'watch-library')
-rw-r--r--watch-library/hardware/watch/watch_deepsleep.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/watch-library/hardware/watch/watch_deepsleep.c b/watch-library/hardware/watch/watch_deepsleep.c
index 1813ff24..e3f654f2 100644
--- a/watch-library/hardware/watch/watch_deepsleep.c
+++ b/watch-library/hardware/watch/watch_deepsleep.c
@@ -42,7 +42,6 @@ void watch_register_extwake_callback(uint8_t pin, ext_irq_cb_t callback, bool le
config &= ~(3 << RTC_TAMPCTRL_IN0ACT_Pos);
config &= ~(1 << RTC_TAMPCTRL_TAMLVL0_Pos);
config |= 1 << RTC_TAMPCTRL_IN0ACT_Pos;
- config |= 1 << RTC_TAMPCTRL_DEBNC0_Pos;
if (level) config |= 1 << RTC_TAMPCTRL_TAMLVL0_Pos;
break;
case A2:
@@ -51,7 +50,6 @@ void watch_register_extwake_callback(uint8_t pin, ext_irq_cb_t callback, bool le
config &= ~(3 << RTC_TAMPCTRL_IN1ACT_Pos);
config &= ~(1 << RTC_TAMPCTRL_TAMLVL1_Pos);
config |= 1 << RTC_TAMPCTRL_IN1ACT_Pos;
- config |= 1 << RTC_TAMPCTRL_DEBNC1_Pos;
if (level) config |= 1 << RTC_TAMPCTRL_TAMLVL1_Pos;
break;
case BTN_ALARM:
@@ -61,7 +59,6 @@ void watch_register_extwake_callback(uint8_t pin, ext_irq_cb_t callback, bool le
config &= ~(3 << RTC_TAMPCTRL_IN2ACT_Pos);
config &= ~(1 << RTC_TAMPCTRL_TAMLVL2_Pos);
config |= 1 << RTC_TAMPCTRL_IN2ACT_Pos;
- config |= 1 << RTC_TAMPCTRL_DEBNC2_Pos;
if (level) config |= 1 << RTC_TAMPCTRL_TAMLVL2_Pos;
break;
default: