Synopsis

#pragma isrseg("name" | default)

Description

The isrseg pragma sets the name of the section that the compiler emits interrupt service routine code into. If the argument to the isrseg pragma is a string, a section of that name is created and the compiler emits code for all interrupt functions following the pragma into that section. If the argument to isrseg is the reserved word default, the compiler selects the default code section name.

The default ISR code section name, if no other directives have been given, is ISR. You can change the default interrupt code section name for the whole compilation unit by using the -Ri (Set default ISR section name) command-line option or by setting the ISR Section Name property of the file or project.