/************************************************************************ * ---- 居加居 ---- * 文件名: Interrupt.h * 编写人员: Kinve JQ * 说明: * 版本: V0.1 * 编写日期: 2018-09-30 * 程序维护: * 维护记录: * 2018-09-30.Kinve:1.创建文件 * 免责声明: * (c) Author Kinve JQ. All rights reserved. **************************************************************************/ #ifndef _N76_INTERRUPT_H_ #define _N76_INTERRUPT_H_ /* 包含的头文件----------------------------------------------------------*/ #include "Common.h" //#include "TypeDef.h" /* 宏定义 ---------------------------------------------------------------*/ #define TIMER_SCAN 1 //1 ms //时间FLAG #define System_Flag_2Ms Status0.b0 #define System_Flag_10Ms Status0.b1 #define System_Flag_20Ms Status0.b2 #define System_Flag_100Ms Status0.b3 #define System_Flag_200Ms Status0.b4 #define System_Flag_500Ms Status0.b5 #define System_Flag_1s Status0.b6 #define System_Flag_5s Status0.b7 //按键FLAG #define Key_CS_Flag Status1.b0 /* 类型定义 -------------------------------------------------------------*/ struct bit_def { char b0: 1; char b1: 1; char b2: 1; char b3: 1; char b4: 1; char b5: 1; char b6: 1; char b7: 1; }; /* 常量定义 -------------------------------------------------------------*/ /* 数据定义 -------------------------------------------------------------*/ extern uint32 sys_ms; extern struct bit_def Status0, Status1; /* 函数定义--------------------------------------------------------------*/ extern void Timer0_init ( uint8 ms ); #endif //_N76_INTERRUPT_ /*************** (C) COPYRIGHT Kinve JQ *******END OF FILE **************/