On Sat, Aug 12, 2023 at 8:54 PM Mark Stevens wrote:
> 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
So is there a simple way of attaching and ISR to a GPIO from user code?
You need to think like you were using Linux: No interrupt handling in
user code! This needs to go into your board logic. Expecially if you
are customizing the board to some non-off-the-shelf configuration with
additi
So is there a simple way of attaching and ISR to a GPIO from user code?
I can see how to do it in rp2040_gpio.c in the board files but I’m hoping not
to have to change the board files.
Regards,
Mark
_
Blog: blog.thepcsite.co.uk
Twitter: @nevynuk
> On 12 Aug 2023,
I would not recommend doing that. You _could_ but it will break for non
flat builds and you are explicitly violating the the OS application
interface boundary. You may also break assumptions of the OS and make it
unstable by changing important registers in interrupt controller.
So nothing is stopp
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 ap