mwerks.h

来自「Freescale ColdFire MCF537x 家族的参考代码」· C头文件 代码 · 共 43 行

H
43
字号
/* * File:	mwerks.h * Purpose:	Define constants used by CodeWarrior toolchain * * Notes:	 * */#ifndef _MWERKS_H_#define _MWERKS_H_/********************************************************************//*  * The source uses __interrupt__ to identify a function as * an interrupt or exception handler.  Codewarrior uses  * __declspec(interrupt), so we are appeasing it like this. */#define __interrupt__	__declspec(interrupt)/*  * Force functions to return values in D0  */#pragma pointers_in_D0/*  * Provide a few assembly instructions for C level routines */#define halt()	asm( halt)#define nop()	asm( nop)#define stop_2700() asm( stop #0x2700)#define stop_2600() asm( stop #0x2600)#define stop_2500() asm( stop #0x2500)#define stop_2400() asm( stop #0x2400)#define stop_2300() asm( stop #0x2300)#define stop_2200() asm( stop #0x2200)#define stop_2100() asm( stop #0x2100)#define stop_2000() asm( stop #0x2000)/********************************************************************/#endif /* _MWERKS_H_ */

⌨️ 快捷键说明

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