1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| /*
| * FunctionalInterrupt.h
| *
| * Created on: 8 jul. 2018
| * Author: Herman
| */
|
| #ifndef CORE_CORE_FUNCTIONALINTERRUPT_H_
| #define CORE_CORE_FUNCTIONALINTERRUPT_H_
|
| #include <functional>
|
| struct InterruptArgStructure {
| std::function<void(void)> interruptFunction;
| };
|
| void attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode);
|
|
| #endif /* CORE_CORE_FUNCTIONALINTERRUPT_H_ */
|
|