From 38874c61510afbc0c7e1be3d829ffae8f6c7a740 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Tue, 10 Jul 2018 22:16:08 +0200 Subject: [PATCH] added stuff --- main.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 2732a2d..dd00129 100644 --- a/main.c +++ b/main.c @@ -9,12 +9,22 @@ #define button2 5678 #define button3 whatever -typedef enum {CLOCK_INIT = 0, CLOCK_IDLE} clock_state_e; +typedef enum {CLOCK_INIT = 0, CLOCK_IDLE, CLOCK_ALARM} clock_state_e; clock_state_e clock_state = CLOCK_INIT; clock_state_e clock_new_state = CLOCK_INIT; int counter = 0; //the counter variable that is being set by the interrupt +//variables for the alarm +bool alarm_active = false; +bool alarm_triggered = false; +int alarm_time = 0; + +//variables for the stopwatch +bool stopwatch_running = false; +bool stopwatch_set = false +int stopwatch_started = 0; +int stopwatch_stopped = 0; int main(void) {