Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

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