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

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

void timer_init();
void timer_free();

/* each t is 54.9254 ms */
void timer_wait(uint8_t t);

#endif /* _TIMER_H */