| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef _N76_INTERRUPT_H_
- #define _N76_INTERRUPT_H_
- #include "Common.h"
- //#include "TypeDef.h"
- #define TIMER_SCAN 1 //1 ms
- 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;
- };
- //ʱ¼ä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
- extern uint32 sys_ms;
- extern struct bit_def Status0, Status1;
- extern void Timer0_init ( uint8 ms );
- #endif //_N76_INTERRUPT_
|