Rev 1 | Rev 92 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 41 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _TIMER_H |
1 | #ifndef _TIMER_H |
2 | #define _TIMER_H |
2 | #define _TIMER_H |
- | 3 | ||
- | 4 | ||
- | 5 | typedef struct{ |
|
- | 6 | u16 Year; |
|
- | 7 | u8 Month; |
|
- | 8 | u8 Day; |
|
- | 9 | u8 Hour; |
|
- | 10 | u8 Min; |
|
- | 11 | u8 Sec; |
|
- | 12 | u16 mSec; |
|
- | 13 | u8 Valid; |
|
- | 14 | } DateTime_t; |
|
- | 15 | ||
- | 16 | extern DateTime_t SystemTime; |
|
Line 3... | Line 17... | ||
3 | 17 | ||
Line 4... | Line 18... | ||
4 | extern u32 CountMilliseconds; |
18 | extern u32 CountMilliseconds; |
5 | 19 | ||
6 | void TIMER1_Init(void); |
20 | void TIMER1_Init(void); |
7 | u32 SetDelay (u32 t); |
21 | u32 SetDelay (u32 t); |
- | 22 | u8 CheckDelay(u32 t); |
|
- | 23 | void Delay_ms(u32 w); |
|
- | 24 | ||
8 | u8 CheckDelay(u32 t); |
25 |