Subversion Repositories NaviCtrl

Rev

Rev 41 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 92
1
#ifndef _TIMER_H
1
#ifndef _TIMER_H
2
#define _TIMER_H
2
#define _TIMER_H
3
 
3
 
4
 
4
 
5
typedef struct{
5
typedef struct{
6
        u16     Year;
6
        u16     Year;
7
        u8      Month;
7
        u8      Month;
8
        u8      Day;
8
        u8      Day;
9
        u8      Hour;
9
        u8      Hour;
10
        u8      Min;
10
        u8      Min;
11
        u8      Sec;
11
        u8      Sec;
12
        u16 mSec;
12
        u16 mSec;
13
        u8  Valid;
13
        u8  Valid;
14
}  DateTime_t;
14
}  DateTime_t;
15
 
15
 
16
extern DateTime_t SystemTime;
16
extern DateTime_t SystemTime;
17
 
17
 
18
extern u32 CountMilliseconds;
18
extern u32 CountMilliseconds;
19
 
19
 
20
void TIMER1_Init(void);
20
void TIMER1_Init(void);
21
u32 SetDelay (u32 t);
21
u32 SetDelay(u32 t);
-
 
22
u32 GetDelay(u32 t);
22
u8 CheckDelay(u32 t);
23
u8 CheckDelay(u32 t);
23
void Delay_ms(u32 w);
24
void Delay_ms(u32 w);
24
 
25
 
25
 
26
 
26
 
27
 
27
#endif
28
#endif
28
 
29