header.h

来自「TQ公司的STK16x开发系统的源码」· C头文件 代码 · 共 102 行

H
102
字号
/*File: HEADER.H */

/****************************************************************************
*
* STK16xU.HEADER
* ==============
*
* Common Headerfile, can be includet in other Headerdfiles
* includs importend definitions
*
* TQ-Systems GmbH
* ---------------
* Customer: TQ-Components
* Project : TQMX16xU
* Tools   : uVision 2.37
*
* Rev: Date:    Name:            Modification:
* ----+---------+----------------+------------------------------------------
* 100  16.01.01  A. Lichte        Release for STK16XSW
* 200  12.02.03  Volker Jung      changes for XC16x Controller
* 251  29.07.03  Volker Jung	  Anpassung an TQ_Select  	
*****************************************************************************/


/*==========================================================================*
* extern available definitions (#DEFINE):
*===========================================================================*/



/*--------------------------------------------------------------------------*
* Systemconstants
*---------------------------------------------------------------------------*/
// The predefinition from the Memoryarea is done in the Startup-File
// This is only a Information from the several Moduls

#ifndef IOCTRL_BASEADDR
#define XREG_BASEADDR    0x800400
#define IOCTRL_BASEADDR  0x800800
#define SIO_A_BASEADDR   0x802000
#define SIO_B_BASEADDR   0x802800
#define SIO_C_BASEADDR   0x803000
#define SIO_D_BASEADDR   0x803800
#define ETH_BASEADDR     0x900000
#endif



/*=========================================================================*/
/* extern available type definitions (TYPEDEF):                      */
/*=========================================================================*/



/*--------------------------------------------------------------------------*
* common definitions:
*---------------------------------------------------------------------------*/
#ifndef FALSE
#define FALSE 0
#endif

#ifndef TRUE
#define TRUE  (!FALSE)
#endif

#ifndef BOOL
#define BOOL  bit
#endif

#ifndef BYTE
#define BYTE  unsigned char
#endif

#ifndef UINT
#define UINT  unsigned int
#endif

#ifndef USHORT
#define USHORT unsigned short int
#endif

#ifndef SHORT
#define SHORT short int
#endif

#ifndef ULONG
#define ULONG unsigned long
#endif



/*==========================================================================*
* extern available type definitions (TYPEDEF):
*===========================================================================*/


/*==========================================================================*
* extern available  constants: (CONST)
*===========================================================================*/


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?