mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
rtc: disable debouncing on external wake inputs
This commit is contained in:
parent
27fa69ccac
commit
87be905fee
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue