aboutsummaryrefslogtreecommitdiff
path: root/src/rtc.h
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-02-06 16:46:28 +0530
committerAkshay Nair <phenax5@gmail.com>2026-02-07 17:53:19 +0530
commiteef689b2e209dcf84c149ee4866c2a007676dc71 (patch)
treec814443ad4b19bebe8396d645520ce3db50bc04b /src/rtc.h
parentd544925cf75a05b681cadfc11b7d8a2d98de6679 (diff)
downloaddaft-watch-eef689b2e209dcf84c149ee4866c2a007676dc71.tar.gz
daft-watch-eef689b2e209dcf84c149ee4866c2a007676dc71.zip
Fix timer interrupt priority + refactor
Diffstat (limited to '')
-rw-r--r--src/rtc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rtc.h b/src/rtc.h
new file mode 100644
index 0000000..f3f8f9c
--- /dev/null
+++ b/src/rtc.h
@@ -0,0 +1,13 @@
+#ifndef _LOADED_RTC
+#define _LOADED_RTC
+#include <stdint.h>
+
+volatile extern uint8_t seconds;
+volatile extern uint8_t minutes;
+volatile extern uint8_t hours;
+
+void rtc_setup(void);
+
+void rtc_increment(void);
+
+#endif