luni
Well-known member
I'm attaching an interrupt handler with attachInterruptVector(...). Does anyone know how to re-attach the original default handler? There is a "unused_interrupt_vector" in startup.c but this seems to be static, at least the linker complains about an undefined reference...
Code:
extern void unused_interrupt_vector(void);
myClass::~myClass()
{
NVIC_DISABLE_IRQ(myIRQ);
attachInterruptVector(myIRQ, unused_interrupt_vector); //<================
// further cleanup...
}