common.h

来自「I wrote this code early this year using 」· C头文件 代码 · 共 60 行

H
60 行
字号
/*
 * 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)
 */
#define DEBUG_PRINT

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

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

/* 
 * Include the board specific header file 
 */
#if (defined(PALLADIUM))
#include "src/boards/palladium/palladium.h"
#elif (defined(M5329EVB))
#include "src/boards/m5329evb/m5329evb.h"
#elif (defined(KOMODO))
#include "src/boards/komodo/komodo.h"
#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 + -
显示快捷键?