M128/64 STK 1.0.1
 
Loading...
Searching...
No Matches
timer.h
1#ifndef M12864STK_TIMER_H
2#define M12864STK_TIMER_H
3
4#include <stdint.h>
5
6typedef void (*TimerAction)();
7
8namespace timer0
9{
13 void start();
18 void start(uint8_t limit);
23 void onTick(TimerAction event);
27 void stop();
28}
29
30namespace timer1
31{
35 void start();
40 void start(uint16_t limit);
45 void onTick(TimerAction event);
49 void stop();
50}
51
52namespace timer2
53{
57 void start();
62 void start(uint8_t limit);
67 void onTick(TimerAction event);
71 void stop();
72}
73
74#endif