Rev 271 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 271 | Rev 274 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _TIMER0_H |
1 | #ifndef _TIMER0_H |
2 | #define _TIMER0_H |
2 | #define _TIMER0_H |
Line 3... | Line 3... | ||
3 | 3 | ||
Line -... | Line 4... | ||
- | 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 | ||
4 | #include <inttypes.h> |
17 | extern DateTime_t SystemTime; |
- | 18 | ||
5 | 19 | extern volatile uint16_t CountMilliseconds; |
|
6 | extern volatile uint16_t CountMilliseconds; |
20 | |
7 | #ifdef USE_FOLLOWME |
21 | #ifdef USE_FOLLOWME |
8 | extern volatile uint16_t BeepTime; |
22 | extern volatile uint16_t BeepTime; |
- | 23 | extern volatile uint16_t BeepModulation; |
|
9 | extern volatile uint16_t BeepModulation; |
24 | #endif |
10 | #endif |
25 | |
11 | extern void TIMER0_Init(void); |
26 | extern void TIMER0_Init(void); |
12 | extern void Delay_ms(uint16_t w); |
27 | extern void Delay_ms(uint16_t w); |
13 | extern void Delay_ms_Mess(uint16_t w); |
28 | extern void Delay_ms_Mess(uint16_t w); |