Specifications
CAVR-4
242
Descriptions of intrinsic functions
AVR® IAR C/C++ Compiler
Reference Guide
Note: You must have enabled language extensions to use this intrinsic function.
__segment_end void * __segment_end(segment);
Returns the address of the first byte after the named segment. The named segment
must be a string literal that has been declared earlier with the #pragma segment
directive. See #pragma segment, page 224.
If the segment was declared with a memory attribute
memattr, the type of the
__segment_end function is pointer to memattr void. Otherwise, the type is a default
pointer to void.
Example
#pragma segment="MYSEG" __huge
...
segment_end_address = __segment_end("MYSEG");
Here, the type of the __segment_end intrinsic function is void __huge *.
Note: You must have enabled language extensions to use this intrinsic function.
__sleep void __sleep(void);
Inserts a sleep instruction, SLEEP. To use this intrinsic function, make sure that the
instruction has been enabled in the MCUCR register.
__swap_nibbles unsigned char __swap_nibbles(unsigned char);
Swaps bit 0-3 with bit 4-7 of the parameter and returns the swapped value.
__watchdog_reset void __watchdog_reset(void);
Inserts a watchdog reset instruction.