added stuff

This commit is contained in:
Dorian Zedler 2018-07-10 22:16:08 +02:00
parent ae95644b99
commit 38874c6151

12
main.c
View file

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