From c6d05b868828bf3f75871cbd4f2827bd82b2d128 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Tue, 26 Mar 2024 12:59:03 -0700 Subject: [PATCH] wrap wiringPiISRStop() in driver API I think I found the equivalent to `detachInterrupt()` in wiringPi lib. Its not documented, but `wiringPiISRStop()` is used in wiringPi lib's examples. --- utility/wiringPi/interrupt.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utility/wiringPi/interrupt.h b/utility/wiringPi/interrupt.h index 8001fe6c6..26886853a 100644 --- a/utility/wiringPi/interrupt.h +++ b/utility/wiringPi/interrupt.h @@ -7,8 +7,6 @@ #include #define attachInterrupt wiringPiISR - -// wiringPi has no detachInterrupt() implementation. Therefor, we will not define it here. -// Invoking detachInterrupt() with this wiringPi driver/wrapper should trigger compilation errors +#define detachInterrupt wiringPiISRStop #endif // RF24_UTILITY_WIRINGPI_INTERRUPT_H__