main.c File Reference

File containing the main functions. More...

#include <__cross_studio_io.h>
#include <msp430x16x.h>
#include "main.h"
#include "led.h"
#include "pad.h"
#include "gps.h"
#include "parser_nmea.h"
#include "oled.h"
Include dependency graph for main.c:

Functions

void main (void)
 
void toggleCommunication (unsigned int state)
 Toogle the communication (P4.2, CMD_SWITCH) More...
 
void configureClock (void)
 Configure the external clock.
 
void delay (float x)
 Wait for x sec. More...
 

Variables

unsigned int modeSelected
 

Detailed Description

File containing the main functions.

Author
Gaƫl Foppolo (gaelfoppolo)

Function Documentation

void delay ( float  x)

Wait for x sec.

Parameters
xThe time to wait (in sec ~)

Here is the caller graph for this function:

void main ( void  )

Menu entry point

Compass entry point

Navigation entry point

Record entry point

Shutdown entry point

Here is the call graph for this function:

void toggleCommunication ( unsigned int  state)

Toogle the communication (P4.2, CMD_SWITCH)

1 = USB, 0 = GPS

Parameters
stateThe new state

Here is the caller graph for this function:

Variable Documentation

unsigned int modeSelected

Mode selected by the user,

See also
M_MENU, etc.