📄 target.h
字号:
/***********************************************Copyright (c)*********************************************
** Guangzou ZLG-MCU Development Co.,LTD.
**
** http://www.zlgmcu.com
**
**--------------File Info---------------------------------------------------------------------------------
** File name: target.h
** Last modified Date: 2007-09-20
** Last Version: 1.0
** Descriptions: 目标板初始化头文件
**
**--------------------------------------------------------------------------------------------------------
** Created by: lixiaocheng
** Created date: 2007-09-20
** Version: 1.0
** Descriptions:
**
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified Date:
** Version:
** Descriptions:
**
*********************************************************************************************************/
#ifndef __TARGET_H
#define __TARGET_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*********************************************************************************************************
** Function name: TargetInit
** Descriptions: 目标板初始化程序
** Input parameters: NONE
** Output parameters: NONE
** Returned value: NONE
*********************************************************************************************************/
void TargetInit(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
/*********************************************************************************************************
定义一个软中断接口调用,方便系统调用
*********************************************************************************************************/
__swi(0x00) int32 SwiHandle1(int32 Handle, int32 arg1, int32 arg2, int32 arg3 );
/*********************************************************************************************************
** Function name: IRQDisable
** Descriptions: 禁止内核响应IRQ中断
** Input parameters: NONE
** Output parameters: NONE
** Returned value: NONE
*********************************************************************************************************/
#define IRQDisable() SwiHandle1(0,0,0,0)
/*********************************************************************************************************
** Function name: IRQEnable
** Descriptions: 使能内核响应IRQ中断
** Input parameters: NONE
** Output parameters: NONE
** Returned value: NONE
*********************************************************************************************************/
#define IRQEnable() SwiHandle1(1,0,0,0)
/*********************************************************************************************************
** Function name: FIQDisable
** Descriptions: 禁止内核响应FIQ中断
** Input parameters: NONE
** Output parameters: NONE
** Returned value: NONE
*********************************************************************************************************/
#define FIQDisable() SwiHandle1(2,0,0,0)
/*********************************************************************************************************
** Function name: FIQEnable
** Descriptions: 使能内核响应FIQ中断
** Input parameters: NONE
** Output parameters: NONE
** Returned value: NONE
*********************************************************************************************************/
#define FIQEnable() SwiHandle1(3,0,0,0)
#endif /* TARGET_H_ */
/*********************************************************************************************************
END FILE
*********************************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -