Forwarding IRQ handlers?

17 Dec 2011

Is it possible to call a previously set irq handler? If I typecast the uint32_t value returned by NVIC_GetVector to void(*)(void) and call it, mbed just hangs.

17 Dec 2011

The default handlers for most interrupts on the mbed are set to point to routines which do nothing but infinite loop so that might explain your hang. I think you would only want to do the cascade if you knew that you had previously set the IRQ handler for an interrupt to another valid routine and you knew that it was compatible with what your new interrupt handler was doing.

18 Dec 2011

Thank you! Yes that explains it. But why does it do an infinite loop? Couldn't it just do nothing? Anyway workaround implemented :)