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) {