aaf486da7a913c5ebf989765ae58d1f9dc71af87.svn-base 829 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _N76_INTERRUPT_H_
  2. #define _N76_INTERRUPT_H_
  3. #include "Common.h"
  4. //#include "TypeDef.h"
  5. #define TIMER_SCAN 1 //1 ms
  6. struct bit_def
  7. {
  8. char b0: 1;
  9. char b1: 1;
  10. char b2: 1;
  11. char b3: 1;
  12. char b4: 1;
  13. char b5: 1;
  14. char b6: 1;
  15. char b7: 1;
  16. };
  17. //ʱ¼äFLAG
  18. #define System_Flag_2Ms Status0.b0
  19. #define System_Flag_10Ms Status0.b1
  20. #define System_Flag_20Ms Status0.b2
  21. #define System_Flag_100Ms Status0.b3
  22. #define System_Flag_200Ms Status0.b4
  23. #define System_Flag_500Ms Status0.b5
  24. #define System_Flag_1s Status0.b6
  25. #define System_Flag_5s Status0.b7
  26. //°´¼üFLAG
  27. #define Key_CS_Flag Status1.b0
  28. extern uint32 sys_ms;
  29. extern struct bit_def Status0, Status1;
  30. extern void Timer0_init ( uint8 ms );
  31. #endif //_N76_INTERRUPT_