RTEMS CPU Kit with SuperCore  4.11.3
Macros
common.h File Reference

Common Symbols and Define Undefined Registers. More...

#include <avr/sfr_defs.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPL   _SFR_IO8(0x3D)
 
#define SP   _SFR_IO8(0x3D)
 
#define SREG   _SFR_IO8(0x3F)
 
#define SREG_C   (0)
 
#define SREG_Z   (1)
 
#define SREG_N   (2)
 
#define SREG_V   (3)
 
#define SREG_S   (4)
 
#define SREG_H   (5)
 
#define SREG_T   (6)
 
#define SREG_I   (7)
 
#define XL   r26
 
#define XH   r27
 
#define YL   r28
 
#define YH   r29
 
#define ZL   r30
 
#define ZH   r31
 
#define AVR_STATUS_REG   SREG
 
#define AVR_STATUS_ADDR   _SFR_IO_ADDR(SREG)
 
#define AVR_STACK_POINTER_REG   SP
 
#define AVR_STACK_POINTER_ADDR   _SFR_IO_ADDR(SP)
 
#define AVR_STACK_POINTER_LO_REG   SPL
 
#define AVR_STACK_POINTER_LO_ADDR   _SFR_IO_ADDR(SPL)
 

Detailed Description

Common Symbols and Define Undefined Registers.

This purpose of this header is to define registers that have not been previously defined in the individual device IO header files, and to define other symbols that are common across AVR device families.

This file is designed to be included in <avr/io.h> after the individual device IO header files, and after <avr/sfr_defs.h>