6.31.19. MSP430 Function Attributes
6.31.19 MSP430 Function Attributes
These function attributes are supported by the MSP430 back end:
critical
- Critical functions disable interrupts upon entry and restore the previous interrupt state upon exit. Critical functions cannot also have the
naked
orreentrant
attributes. They can have theinterrupt
attribute. 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.
You can provide an argument to the interrupt attribute which specifies a name or number. If the argument is a number it indicat