mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-11 15:22:13 +03:00
Functional Interrupts initial
This commit is contained in:
committed by
Ivan Grokhotkov
parent
3f5d06bc12
commit
ba0e049b83
15
cores/esp8266/FunctionalInterrupt.h
Normal file
15
cores/esp8266/FunctionalInterrupt.h
Normal file
@ -0,0 +1,15 @@
|
||||
#ifndef FUNCTIONALINTERRUPT_H
|
||||
#define FUNCTIONALINTERRUPT_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <functional>
|
||||
|
||||
extern "C" {
|
||||
#include "c_types.h"
|
||||
#include "ets_sys.h"
|
||||
}
|
||||
|
||||
void attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode);
|
||||
|
||||
#endif //INTERRUPTS_H
|
Reference in New Issue
Block a user