1
0
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:
hreintke
2016-12-08 16:53:59 +01:00
committed by Ivan Grokhotkov
parent 3f5d06bc12
commit ba0e049b83
3 changed files with 64 additions and 7 deletions

View 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