Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap wiringPiISRStop() in driver API #968

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Conversation

2bndy5
Copy link
Member

@2bndy5 2bndy5 commented Mar 26, 2024

I think I found the equivalent to detachInterrupt() in wiringPi lib. Its not documented, but wiringPiISRStop() is used in wiringPi lib's examples/tests.

@2bndy5
Copy link
Member Author

2bndy5 commented Mar 26, 2024

I'm not very adamant about testing this.

  1. the IRQ_PIN value in examples_linux/interruptConfigure.cpp doesn't work with wiringPi:
    gpio: Unable to open GPIO direction interface for pin 24: No such file or directory
    wiringPiISR: unable to open /sys/class/gpio/gpio24/value: No such file or directory
    
  2. detachInterrupt() isn't used anywhere in the examples. Instead we rely on destructors for cleanup because most examples_linux/**.cpp are designed to be exited with Ctrl+C.

I think I found the equivalent to `detachInterrupt()` in wiringPi lib. Its not documented, but `wiringPiISRStop()` is used in wiringPi lib's examples.
@2bndy5 2bndy5 force-pushed the update-wiringPi-interrupt branch from c324f19 to c6d05b8 Compare March 31, 2024 23:28
@2bndy5 2bndy5 merged commit 5d645ae into master Apr 1, 2024
19 checks passed
@2bndy5 2bndy5 deleted the update-wiringPi-interrupt branch April 1, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant