Skip to content

Commit

Permalink
wrap wiringPiISRStop() in driver API
Browse files Browse the repository at this point in the history
I think I found the equivalent to `detachInterrupt()` in wiringPi lib. Its not documented, but `wiringPiISRStop()` is used in wiringPi lib's examples.
  • Loading branch information
2bndy5 committed Mar 31, 2024
1 parent c0cff53 commit c6d05b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utility/wiringPi/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include <wiringPi.h>

#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__

0 comments on commit c6d05b8

Please sign in to comment.