IAR AVR帮助里有.
#define DDR_LEDR DDRB_Bit0
#define DDR_LEDG DDRB_Bit1
#define DDR_LED DDRD_Bit7
#define DDR_KEY DDRD_Bit2
#define DDR_WdtBack DDRD_Bit3
#define DDR_Wdt DDRB_Bit7
#define DDR_Power DDRD_Bit6
#define DDR_Beep DDRD_Bit4
#define LEDR PORTB_Bit0
#define LEDG PORTB_Bit1
#define LED PORTD_Bit7
#define WdtBack PORTD_Bit3#define Wdt PORTB_Bit7
#define Power PORTD_Bit6#define KeyOut PORTD_Bit2
#define Beep PORTD_Bit4
#define Key PIND_Bit2