Atmel CAVR-4 Manual De Usuario
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.