I'm developing some software for a PCB using the LPC11C24 board as MCU, and I have a doubt regarding the interrupt logic.
As far as I know, I can define a WAKEUP_IRQHandler and a PIOINT0_IRQHandler, the former responsible of waking up the MCU when in (Deep) Sleep mode, the latter just defines a routine whenever any GPIO pin in Port 0 gets triggered accordingly.
I'm currently using pin 0_11 in both WAKEUP logic and to switch between states when the MCU is awake, but I'm unsure of what to expect.
Is it possible to dynamically change the interrupt trigger (from FALLING to RISING edge) and therefore use the same pin for two different interrupt handlers, based on its current interrupt logic?
If so, is there some example I can refer to? Or just have a chat with someone who managed to get this working.
Thank you in advance, any help is appreciated.