Skip to content

Commit 3720f4d

Browse files
committed
Remove special support for FunctionalInterrupt from core interrupt handling:
- VIP treatment in general attach/detach/handling looks untidy: extern symbols without matching header include but copy&paste special under-the-hood c++ delete support, where everyone else has to do their own resource tracking as usual. - FunctionalInterrupt is not used by anything inside core ESP8266 Arduino for 2 years now, it can be a library, which reduces precious core size for everyone else. Expose attachInterruptArg via Arduino.h.
1 parent 1750022 commit 3720f4d

File tree

6 files changed

+24
-330
lines changed

6 files changed

+24
-330
lines changed

cores/esp8266/Arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
217217
uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder);
218218

219219
void attachInterrupt(uint8_t pin, void (*)(void), int mode);
220+
void attachInterruptArg(uint8_t pin, void (*)(void*), void * arg, int mode);
220221
void detachInterrupt(uint8_t pin);
221222

222223
void preinit(void);

cores/esp8266/FunctionalInterrupt.cpp

Lines changed: 0 additions & 71 deletions
This file was deleted.

cores/esp8266/FunctionalInterrupt.h

Lines changed: 0 additions & 37 deletions
This file was deleted.

cores/esp8266/ScheduledFunctions.cpp

Lines changed: 0 additions & 117 deletions
This file was deleted.

cores/esp8266/ScheduledFunctions.h

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)