-
-
Notifications
You must be signed in to change notification settings - Fork 730
Closed
Description
Is it possible to add a weak function to SERCOM0_Handler and SERCOM5_Handler defined in variants.cpp?
https://github.com/arduino/ArduinoCore-samd/blob/master/variants/arduino_zero/variant.cpp#L212
something like this:
extern void SerialEvents() __attribute__((weak));
void SERCOM5_Handler()
{
Serial.IrqHandler();
if(SerialEvents) SerialEvents();
}
i will call user defined function on serial interrupt (like SerialEvents on AVR), and i can't use another SERCOM (HW-restrictions). So i have to use SERCOM5_HANDLER that is allready defined :/
My own variants.cpp means to musch effort.