Is there anyway of using the Pico SDK from within NuttX?

What I am trying to do is attach a generic ISR to some GPIO pins.  I’m not a 
great fan of having to modify the OS source in order to set up simple things 
like ISRs to handle button presses.  I’d like to be able to do this from the 
user application rather than the board files which from what I have read seems 
to be the way to do it.

My requirement is:

Configure a GPIO to be input, interrupt driven and pull ups enabled
Attach and interrupt to the GPIO (this could be one of all input GPIOs if I get 
a parameter telling me which button or one per GPIO)
Driven from the user application

From what I have read in the source (and I may be wrong) I seem to have to 
modify the board files and use a signal handler for the interrupts.

I’d rather not modify the board files.

Now I know you can achieve what I want in a few calls to the Pico SDK and I was 
wondering if calling the SDK is possible.

Has anyone doe this?

Alternatively, has anyone configured NuttX to do this from user space?

Regards,
Mark
_____________________________
Blog: blog.thepcsite.co.uk
Twitter: @nevynuk





Reply via email to