blob: 8207e5b8564f5cb8d39f8749f26cfc01d75d405c (
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, volatile uint8_t *updated);
uint8_t timer_value();
void timer_stop();
void timer_resume();
#endif /* _TIMER_H */
|