本项止转自github官方arduino-esp32 传在这里仅为阅读源码方便
projectuser
2019-07-05 50148ccffe21ff54262064ec9f2245900eaf18aa
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_ */