📄 ma_tgt.h
字号:
/*
*****************************************************************************
**
** Project : My project
**
** Component : atm (ATmega128)
**
** Modulename : System
**
** Filename : ma_tgt.h
**
** Abstract : This file includes IAR MakeApp target definitions
**
** Date : 2005-10-27 18:13:34
**
** License no. : N/A Vali
**
** Warning : This file has been automatically generated.
** Do not edit this file if you intend to regenerate it.
**
** This header file was created by IAR MakeApp version
** 4.01A (Atmel megaAVR: 4.00A) for the Atmel megaAVR series of
** microcontrollers.
**
** (c)Copyright 2002 IAR Systems AB.
** Your rights to this file are explained in the IAR MakeApp
** License Agreement. All other rights reserved.
**
*****************************************************************************
*/
/*
**===========================================================================
** 1 GENERAL
** 1.1 Revisions
**
** Please read the IAR MakeApp for Atmel megaAVR readme file
**
**
**===========================================================================
*/
/*
**===========================================================================
** 1.2 References
**
** No Identification Name or Description
** == =================== ================================
** 1 2467G-AVR-09/02 ATmega128 Hardware Manual
**
**===========================================================================
*/
/*
**===========================================================================
** 1.3 Re-definition guard
**===========================================================================
*/
/*--- Avoid including this file more than once ---*/
#ifndef _IS_INCLUDED_MA_TGT_H
#define _IS_INCLUDED_MA_TGT_H
/*
**===========================================================================
** 2. INCLUDE FILES
** 2.1 Standard include files
**===========================================================================
*/
/*
**===========================================================================
** 2.2 Application include files
**===========================================================================
*/
/*
**===========================================================================
** 3. DECLARATIONS
** 3.1 Global constants
**===========================================================================
*/
/*--- TRUE / FALSE / NULL ---*/
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef NULL
#define NULL 0
#endif
/*--- Return codes ---*/
#define MA_OK 1
#define MA_DATA 2
#define MA_RTR 3
#define MA_ERROR -1
#define MA_FULL -2
#define MA_EMPTY -3
#define MA_BUSY -4
#define ENABLE_BIT_DEFINITIONS
/*--- Interrupt vector table ---*/
#define MA_RESET_vect (0x00)
#define MA_INT0_vect (0x04)
#define MA_INT1_vect (0x08)
#define MA_INT2_vect (0x0C)
#define MA_INT3_vect (0x10)
#define MA_INT4_vect (0x14)
#define MA_INT5_vect (0x18)
#define MA_INT6_vect (0x1C)
#define MA_INT7_vect (0x20)
#define MA_TIMER2_COMP_vect (0x24)
#define MA_TIMER2_OVF_vect (0x28)
#define MA_TIMER1_CAPT_vect (0x2C)
#define MA_TIMER1_COMPA_vect (0x30)
#define MA_TIMER1_COMPB_vect (0x34)
#define MA_TIMER1_OVF_vect (0x38)
#define MA_TIMER0_COMP_vect (0x3C)
#define MA_TIMER0_OVF_vect (0x40)
#define MA_SPI_STC_vect (0x44)
#define MA_USART0_RXC_vect (0x48)
#define MA_USART0_UDRE_vect (0x4C)
#define MA_USART0_TXC_vect (0x50)
#define MA_ADC_vect (0x54)
#define MA_EE_RDY_vect (0x58)
#define MA_ANA_COMP_vect (0x5C)
#define MA_TIMER1_COMPC_vect (0x60)
#define MA_TIMER3_CAPT_vect (0x64)
#define MA_TIMER3_COMPA_vect (0x68)
#define MA_TIMER3_COMPB_vect (0x6C)
#define MA_TIMER3_COMPC_vect (0x70)
#define MA_TIMER3_OVF_vect (0x74)
#define MA_USART1_RXC_vect (0x78)
#define MA_USART1_UDRE_vect (0x7C)
#define MA_USART1_TXC_vect (0x80)
#define MA_TWI_vect (0x84)
#define MA_SPM_RDY_vect (0x88)
/*
**===========================================================================
** 3.2 Global macros
**===========================================================================
*/
/*--- Bit manipulation macros ---*/
#define __BIT_MASK(A) (1<<(A))
#define SetBit( SFR, MASK ) (SFR) |= (MASK)
#define ClrBit( SFR, MASK ) (SFR) &= ~(MASK)
/*
**===========================================================================
** 3.3 Global type definitions
**===========================================================================
*/
#define C8 char
#define U8 unsigned char
#define U16 unsigned short
#define U32 unsigned long
#define S8 signed char
#define S16 signed short
#define S32 signed long
/*
**===========================================================================
** 3.4 Global variables (defined in some implementation file)
**===========================================================================
*/
/*
**===========================================================================
** 4. GLOBAL FUNCTIONS (defined in some implementation file)
**===========================================================================
*/
#endif /* Match the re-definition guard */
/*
**===========================================================================
** END OF FILE
**===========================================================================
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -