We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1758a18 commit 7218bccCopy full SHA for 7218bcc
cores/esp8266/core_esp8266_wiring_digital.cpp
@@ -187,13 +187,17 @@ extern void __detachInterrupt(uint8_t pin) {
187
interrupt_reg &= ~(1 << pin);
188
interrupt_handler_t* handler = &interrupt_handlers[pin];
189
handler->mode = 0;
190
- handler->fn = 0;
191
- handler->arg = 0;
+ handler->fn = nullptr;
+ handler->arg = nullptr;
192
if (interrupt_reg)
193
ETS_GPIO_INTR_ENABLE();
194
}
195
196
197
+extern interrupt_handler_t* __getInterruptHandler(uint8_t pin) {
198
+ return (pin < 16) ? &interrupt_handlers[pin] : nullptr;
199
+}
200
+
201
extern void __resetPins() {
202
for (int i = 0; i <= 16; ++i) {
203
if (!isFlashInterfacePin(i))
0 commit comments