2d6c3608f4da66b7c0db9e349dcb566523f382ea.svn-base 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /************************************************************************
  2. * ---- 居加居 ----
  3. * 文件名: Interrupt.h
  4. * 编写人员: Kinve JQ
  5. * 说明:
  6. * 版本: V0.1
  7. * 编写日期: 2018-09-30
  8. * 程序维护:
  9. * 维护记录:
  10. * 2018-09-30.Kinve:1.创建文件
  11. * 免责声明:
  12. * (c) Author Kinve JQ. All rights reserved.
  13. **************************************************************************/
  14. #ifndef _N76_INTERRUPT_H_
  15. #define _N76_INTERRUPT_H_
  16. /* 包含的头文件----------------------------------------------------------*/
  17. #include "Common.h"
  18. //#include "TypeDef.h"
  19. /* 宏定义 ---------------------------------------------------------------*/
  20. #define TIMER_SCAN 1 //1 ms
  21. //时间FLAG
  22. #define System_Flag_2Ms Status0.b0
  23. #define System_Flag_10Ms Status0.b1
  24. #define System_Flag_20Ms Status0.b2
  25. #define System_Flag_100Ms Status0.b3
  26. #define System_Flag_200Ms Status0.b4
  27. #define System_Flag_500Ms Status0.b5
  28. #define System_Flag_1s Status0.b6
  29. #define System_Flag_5s Status0.b7
  30. //按键FLAG
  31. #define Key_CS_Flag Status1.b0
  32. /* 类型定义 -------------------------------------------------------------*/
  33. struct bit_def
  34. {
  35. char b0: 1;
  36. char b1: 1;
  37. char b2: 1;
  38. char b3: 1;
  39. char b4: 1;
  40. char b5: 1;
  41. char b6: 1;
  42. char b7: 1;
  43. };
  44. /* 常量定义 -------------------------------------------------------------*/
  45. /* 数据定义 -------------------------------------------------------------*/
  46. extern uint32 sys_ms;
  47. extern struct bit_def Status0, Status1;
  48. /* 函数定义--------------------------------------------------------------*/
  49. extern void Timer0_init ( uint8 ms );
  50. #endif //_N76_INTERRUPT_
  51. /*************** (C) COPYRIGHT Kinve JQ *******END OF FILE **************/