Where should be defined a device specific ISR when making a static library?

by Tekl7   Last Updated August 14, 2019 07:25 AM

Suppose I want to make a static library (.a file), which contains an ISR. That library should be used by many AVR MCUs, but each device has different ISR vector name, so it cannot be defined in .c file. Is it correct according to C conventions to define the ISR in the header file?

Related Questions

C standard libraries on bare metal

Updated October 08, 2018 21:25 PM