aboutsummaryrefslogtreecommitdiff
path: root/src/timer.h
blob: 3f66be54124fc3e42abf9ebeb24b57181d120382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _TIMER_H
#define _TIMER_H

/* updates 18.2 times per second */
extern volatile uint32_t ticks;

void timer_init();
void timer_free();

/* countdown clock */
void timer_start(uint8_t secs, uint8_t *updated);
uint8_t timer_value();
void timer_stop();
void timer_resume();

#endif /* _TIMER_H */