added stuff
This commit is contained in:
parent
ae95644b99
commit
38874c6151
1 changed files with 11 additions and 1 deletions
12
main.c
12
main.c
|
@ -9,12 +9,22 @@
|
||||||
#define button2 5678
|
#define button2 5678
|
||||||
#define button3 whatever
|
#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_state = CLOCK_INIT;
|
||||||
clock_state_e clock_new_state = CLOCK_INIT;
|
clock_state_e clock_new_state = CLOCK_INIT;
|
||||||
|
|
||||||
int counter = 0; //the counter variable that is being set by the interrupt
|
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)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue