summaryrefslogtreecommitdiffstats
path: root/watch-library/hardware
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-02-13 14:00:50 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-02-13 14:01:21 -0500
commit203850104d9ec2929cc7f0d4e280107986248006 (patch)
treee1e05ddb0a469ac32971efe17290bba9a1339708 /watch-library/hardware
parent7815b0f64e1bea374260307d61b1de7bcc5e6744 (diff)
downloadSensor-Watch-203850104d9ec2929cc7f0d4e280107986248006.tar.gz
Sensor-Watch-203850104d9ec2929cc7f0d4e280107986248006.tar.bz2
Sensor-Watch-203850104d9ec2929cc7f0d4e280107986248006.zip
remove obsolete low battery check
Diffstat (limited to 'watch-library/hardware')
-rw-r--r--watch-library/hardware/watch/watch.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/watch-library/hardware/watch/watch.c b/watch-library/hardware/watch/watch.c
index 791fd974..934d5623 100644
--- a/watch-library/hardware/watch/watch.c
+++ b/watch-library/hardware/watch/watch.c
@@ -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);
}