Rev 406 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 406 | Rev 413 | ||
---|---|---|---|
1 | #ifndef _MAIN_H |
1 | #ifndef _MAIN_H |
2 | #define _MAIN_H |
2 | #define _MAIN_H |
3 | 3 | ||
4 | #include <avr/io.h> |
4 | #include <avr/io.h> |
5 | #define SYSCLK F_CPU |
5 | #define SYSCLK F_CPU |
6 | 6 | ||
- | 7 | ||
- | 8 | typedef enum |
|
- | 9 | { |
|
- | 10 | STATE_UNDEFINED, |
|
- | 11 | STATE_IDLE, |
|
- | 12 | STATE_SEND_FOLLOWME |
|
- | 13 | } SysState_t; |
|
7 | 14 | ||
8 | #define ERROR_GPS_RX_TIMEOUT 0x0001 |
15 | #define ERROR_GPS_RX_TIMEOUT 0x0001 |
9 | #define ERROR_LOW_BAT 0x0002 |
16 | #define ERROR_LOW_BAT 0x0002 |
10 | 17 | ||
11 | extern uint16_t Error; |
18 | extern uint16_t Error; |
12 | extern int16_t FollowMe_active; |
- | |
13 | extern int16_t UBat; |
19 | extern int16_t UBat; |
- | 20 | extern SysState_t SysState; |
|
- | 21 | ||
14 | #endif //_MAIN_H |
22 | #endif //_MAIN_H |
15 | 23 | ||
16 | 24 | ||
17 | 25 | ||
18 | 26 | ||
19 | 27 | ||
20 | 28 | ||
21 | 29 | ||
22 | 30 |