M128/64 STK 1.0.1
 
Loading...
Searching...
No Matches
interrupt.h
1#ifndef M12864STK_INTERRUPT_H
2#define M12864STK_INTERRUPT_H
3
4#include <stdint.h>
5
6typedef void (*InterruptAction)();
7
8namespace interrupt0
9{
13 void initialize();
18 void onInterrupt(InterruptAction event);
19}
20
21namespace interrupt1
22{
26 void initialize();
31 void onInterrupt(InterruptAction event);
32}
33
34namespace interrupt2
35{
39 void initialize();
44 void onInterrupt(InterruptAction event);
45}
46
47namespace interrupt3
48{
52 void initialize();
57 void onInterrupt(InterruptAction event);
58}
59
60namespace interrupt4
61{
65 void initialize();
70 void onInterrupt(InterruptAction event);
71}
72
73namespace interrupt5
74{
78 void initialize();
83 void onInterrupt(InterruptAction event);
84}
85
86namespace interrupt6
87{
91 void initialize();
96 void onInterrupt(InterruptAction event);
97}
98
99namespace interrupt7
100{
104 void initialize();
109 void onInterrupt(InterruptAction event);
110}
111
112#endif