remove obsolete low battery check

This commit is contained in:
Joey Castillo
2022-02-13 14:00:50 -05:00
parent 7815b0f64e
commit 203850104d
2 changed files with 0 additions and 15 deletions

View File

@@ -24,21 +24,14 @@
#include "watch.h"
bool battery_is_low = false;
// receives interrupts from MCLK, OSC32KCTRL, OSCCTRL, PAC, PM, SUPC and TAL, whatever that is.
void SYSTEM_Handler(void) {
if (SUPC->INTFLAG.bit.BOD33DET) {
battery_is_low = true;
SUPC->INTENCLR.bit.BOD33DET = 1;
SUPC->INTFLAG.reg &= ~SUPC_INTFLAG_BOD33DET;
}
}
bool watch_is_battery_low(void) {
return battery_is_low;
}
bool watch_is_buzzer_or_led_enabled(void){
return hri_mclk_get_APBCMASK_TCC0_bit(MCLK);
}