Subversion Repositories NaviCtrl

Rev

Rev 119 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 killagreg 1
#ifndef _TIMER1_H
2
#define _TIMER1_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;
17
 
18
extern u32 CountMilliseconds;
19
 
20
void TIMER1_Init(void);
21
u32 SetDelay(u32 t);
22
u32 GetDelay(u32 t);
23
u8 CheckDelay(u32 t);
24
void Delay_ms(u32 w);
25
 
26
 
27
 
28
#endif // _TIMER1_H