
CAVR-4
238
Descriptions of intrinsic functions
AVR® IAR C/C++ Compiler
Reference Guide
To use intrinsic functions in an application, include the header file intrinsics.h.
Note that the intrinsic function names start with double underscores, for example:
__segment_begin
Descriptions of intrinsic functions
The following section gives reference information about each intrinsic function.
__delay_cycles __delay_cycles(unsigned long int);
Makes the compiler generate code that takes the given amount of cycles to perform, that
is it inserts a time delay that lasts the specified number of cycles.
Note: The specified value must be a constant integer expression and not an expression
that is evaluated at runtime.
__disable_interrupt void __disable_interrupt(void);
Disables interrupts by inserting the CLI instruction.
__enable_interrupt void __enable_interrupt(void);
Enables interrupts by inserting the SEI instruction.
__extended_load_program_memory unsigned char __extended_load_program_memory(unsigned char
__farflash *);
Returns one byte from code memory.
Use this intrinsic function to access constant data in code memory.
__segment_end Returns the end address of a segment
__sleep Inserts a SLEEP instruction
__swap_nibbles Swaps bit 0-3 with bit 4-7
__watchdog_reset Inserts a watchdog reset instruction
Intrinsic function Description
Table 72: Intrinsic functions summary (Continued)