accelerometer: new hardware swaps interrupt wiring

This commit is contained in:
joeycastillo
2024-11-18 19:46:11 -05:00
parent b5fd0f7418
commit b00faa2b03
3 changed files with 20 additions and 29 deletions

View File

@@ -133,10 +133,6 @@ static void _watch_disable_all_pins_except_rtc(void) {
if (config & RTC_TAMPCTRL_IN0ACT_Msk) portb_pins_to_disable &= 0xFFFFFFFE;
// same with RTC/IN[1] and PB02
if (config & RTC_TAMPCTRL_IN1ACT_Msk) portb_pins_to_disable &= 0xFFFFFFFB;
#ifdef HAS_ACCELEROMETER
// if we're using the Motion board, keep A3 configured (it tracks the accelerometer sleep state)
portb_pins_to_disable &= 0xFFFFFFF7;
#endif
// port A: that last B is to always keep PA02 configured as-is; that's our ALARM button.
PORT->Group[0].DIRCLR.reg = 0xFFFFFFFB;