common.h

来自「Ports_for_CF5213.zip 接口程序;接口程序;」· C头文件 代码 · 共 63 行

H
63
字号
/*
 * File:		common.h
 * Purpose:		File to be included by all project files
 *
 * Notes:
 */

#ifndef _COMMON_H_
#define _COMMON_H_

/********************************************************************/

/*
 * Debug prints ON (#define) or OFF (#undef)
 */
#undef DEBUG_PRINT
#undef DEBUG_PRINT_D0D1

/* 
 * Include the generic CPU header file 
 */
#include "mcf5xxx.h"

/* 
 * Include the specific CPU header file 
 */
#include "mcf5213.h"

/* 
 * Include the board specific header file 
 */
//#if (defined(M5213EVB))
#include "m5213evb/m5213evb.h"
//#elif (defined(M5211DEMO))
//#include "m5211demo/m5211demo.h"
//#elif (defined(M5213P))
//#include "m5213p/m5213p.h"
//#else
//#error "No valid platform defined"
//#endif

/* 
 * Include any toolchain specfic header files 
 */
#if (defined(__MWERKS__))
#include "build/mwerks/mwerks.h"
#elif (defined(__DCC__))
#include "build/wrs/diab.h"
#elif (defined(__ghs__))
#include "build/ghs/ghs.h"
#endif

/* 
 * Include common utilities
 */
#include "assert.h"
#include "io.h"
#include "stdlib.h"

/********************************************************************/

#endif /* _COMMON_H_ */

⌨️ 快捷键说明

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