Subversion Repositories Projects

Rev

Rev 271 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
231 killagreg 1
#ifndef _TIMER0_H
2
#define _TIMER0_H
3
 
4
#include <inttypes.h>
5
 
274 killagreg 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
 
231 killagreg 19
extern volatile uint16_t CountMilliseconds;
274 killagreg 20
 
271 killagreg 21
#ifdef USE_FOLLOWME
22
extern volatile uint16_t BeepTime;
23
extern volatile uint16_t BeepModulation;
24
#endif
274 killagreg 25
 
231 killagreg 26
extern void TIMER0_Init(void);
27
extern void Delay_ms(uint16_t w);
28
extern void Delay_ms_Mess(uint16_t w);
29
extern uint16_t SetDelay (uint16_t t);
30
extern int8_t CheckDelay (uint16_t t);
31
 
32
#endif //_TIMER0_H