Power & Source of Big Ideas

NanoPi NEO: handling interrupts on GPIO pins in C program

Moderators: chensy, FATechsupport

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

is not implemented and fails with this error:

Code: Select all

wiringPiISR: Not implemented

How can I accomplish the task?

Thank you very much
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.
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");

Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 14 guests