main.h
Go to the documentation of this file.
1 
9 #ifndef MAIN_H
10 #define MAIN_H
11 
13 #define M_MENU 0
14 
15 #define M_COMPASS 1
16 
17 #define M_NAVIG 2
18 
19 #define M_RECORD 3
20 
21 #define M_SHUTDOWN 4
22 
24 #define COMM_GPS 0
25 
26 #define COMM_USB 1
27 
29 #define YES 1
30 
31 #define NO 0
32 
36 extern unsigned int modeSelected;
37 
41 void configureClock(void);
42 
49 void toggleCommunication(unsigned int state);
50 
56 void delay(float x);
57 
58 #endif
void toggleCommunication(unsigned int state)
Toogle the communication (P4.2, CMD_SWITCH)
Definition: main.c:160
unsigned int modeSelected
Definition: main.c:19
void configureClock(void)
Configure the external clock.
Definition: main.c:166
void delay(float x)
Wait for x sec.
Definition: main.c:183