6.31.5. AVR Function Attributes
6.31.5 AVR Function Attributes
These function attributes are supported by the AVR back end:
interrupt
- Use this attribute to indicate that the specified function is an interrupt handler. The compiler generates function entry and exit sequences suitable for use in an interrupt handler when this attribute is present.
On the AVR, the hardware globally disables interrupts when an interrupt is executed. The first instruction of an interrupt handler declared with this attribute is a
SEI
instruction to re-enable interrupts. See also thesignal
function attribute that does not insert aSEI
instruction. If bothsignal
andinterrupt
are specified for the same function,signal
is silently ignored. naked
- This attr