Subversion Repositories Projects

Rev

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

Rev 274 Rev 333
1
#ifndef _TIMER0_H
1
#ifndef _TIMER0_H
2
#define _TIMER0_H
2
#define _TIMER0_H
3
 
3
 
4
#include <inttypes.h>
4
#include <inttypes.h>
5
 
5
 
6
typedef struct{
6
typedef struct{
7
        uint16_t        Year;
7
        uint16_t        Year;
8
        uint8_t         Month;
8
        uint8_t         Month;
9
        uint8_t         Day;
9
        uint8_t         Day;
10
        uint8_t         Hour;
10
        uint8_t         Hour;
11
        uint8_t         Min;
11
        uint8_t         Min;
12
        uint8_t         Sec;
12
        uint8_t         Sec;
13
        uint16_t        mSec;
13
        uint16_t        mSec;
14
        uint8_t         Valid;
14
        uint8_t         Valid;
15
}  DateTime_t;
15
}  DateTime_t;
16
 
16
 
17
extern DateTime_t SystemTime;
17
extern DateTime_t SystemTime;
18
 
18
 
19
extern volatile uint16_t CountMilliseconds;
19
extern volatile uint16_t CountMilliseconds;
20
 
-
 
21
#ifdef USE_FOLLOWME
20
 
22
extern volatile uint16_t BeepTime;
21
extern volatile uint16_t BeepTime;
23
extern volatile uint16_t BeepModulation;
-
 
24
#endif
22
extern volatile uint16_t BeepModulation;
25
 
23
 
26
extern void TIMER0_Init(void);
24
extern void TIMER0_Init(void);
27
extern void Delay_ms(uint16_t w);
25
extern void Delay_ms(uint16_t w);
28
extern void Delay_ms_Mess(uint16_t w);
26
extern void Delay_ms_Mess(uint16_t w);
29
extern uint16_t SetDelay (uint16_t t);
27
extern uint16_t SetDelay (uint16_t t);
30
extern int8_t CheckDelay (uint16_t t);
28
extern int8_t CheckDelay (uint16_t t);
31
 
29
 
32
#endif //_TIMER0_H
30
#endif //_TIMER0_H
33
 
31