elsabz Posted May 28, 2023 Posted May 28, 2023 (edited) Hello Armbian forum, I need to have a GPIO interrupt on Orange PI5. I have successfully installed WiringOP and I am using it with C code. The problem is that the interrupt is not working, and I am receiving the following error. How can I proceed? Does anyone know how to enable the WiringOP interrupt on the GPIO PIN? Code C : #define AUX 13 wiringPiISR(AUX, INT_EDGE_FALLING, &MyFunction); Error: wiringPiISR: unable to open /sys/class/gpio/gpio92/value: No such file or directory PS. I have just successfully installed this version: Armbian 23.02 Jammy Gnome Edited May 28, 2023 by elsabz 0 Quote
royk Posted May 31, 2023 Posted May 31, 2023 I don't have experiences with wiringpi in c code, but did you look at the examples and do you use the "next" branch for the library? https://github.com/orangepi-xunlong/wiringOP/tree/next/examples 0 Quote
elsabz Posted May 31, 2023 Author Posted May 31, 2023 Hi @royk thanks for the answer, I had already looked in the library but I can't find anything different from the code I use, if you look at the isr.c example the call is the same as the one I use, except for the number of PINs that goes from 0 to 7, I tried to put PIN 0 but nothing changes, always the same error. 0 Quote
elsabz Posted May 31, 2023 Author Posted May 31, 2023 Hi @royk i check with the next branch is the same problem... 0 Quote
royk Posted June 2, 2023 Posted June 2, 2023 @elsabz You could try to run first: "gpio export 92 out" 0 Quote
elsabz Posted June 2, 2023 Author Posted June 2, 2023 @royk With the command you suggested, when I run the code it no longer gives an error, but sadly the interrupt doesn't work! Is it possible that the orange PI 5 interrupt is not implemented at the hardware level? 0 Quote
royk Posted June 2, 2023 Posted June 2, 2023 @elsabz After setting "gpio export 46 in" and "gpio export 54 in" I can see it counts interrupts when I connect it to ground. test.c 0 Quote
elsabz Posted June 8, 2023 Author Posted June 8, 2023 @royk Unfortunately it doesn't work for me, but I have to do a test by grounding the input, I'm doing it this weekend, thanks 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.