Page 1 of 1

NanoPi NEO: handling interrupts on GPIO pins in C program

Posted: Mon Sep 04, 2017 2:41 pm
by genez
Hello,
I am prototyping an application written in C, using the WiringNP library

I would like to handle an interrupt coming from an external ADC connected to a GPIO pin on my NanoPI Neo.

I see that the function

Code: Select all

wiringPiISR()
is not implemented and fails with this error:

Code: Select all

wiringPiISR: Not implemented


How can I accomplish the task?

Thank you very much

Re: NanoPi NEO: handling interrupts on GPIO pins in C program

Posted: Tue Sep 05, 2017 6:33 am
by auto3000
For info, please check this post viewtopic.php?f=47&t=872

It looks WiringpiNP is been updated last 29 august for nanopi on https://github.com/friendlyarm/WiringNP, you could try to rebuild it for your platform.

Re: NanoPi NEO: handling interrupts on GPIO pins in C program

Posted: Tue Sep 05, 2017 10:10 am
by genez
Still no love for this issue.

The majority of interrupt handling code has been commented out and the function has a nice return that prevents execution:

https://github.com/wertyzp/WiringNP/blo ... Pi.c#L1706

Code: Select all

    return wiringPiFailure(WPI_FATAL, "wiringPiISR: Not implemented");