//==========================================================================================
// main.h  This is the main header file for the project and is included by all files.
//         It contains constants, global variables, compiler options, and typedefs.
//
// Copyright (C) 2008 Texas Instruments Incorporated
//==========================================================================================

#ifndef main_h					// Header file guard
#define main_h


// The EXTERN macro is used to force all global variables to get a single definition.
// If it is main.c, define the variable and if desired initialize it's value.
// If it is not main.c, then just declare it as extern.
#ifdef MAIN_C 					// If it is the main routine
	#define EXTERN	 			// 	it isn't extern, so define it as nothing
#else 							// If it isn't the main routine
	#define EXTERN extern 		// 	it is extern
#endif


#endif // End of header guard: #ifndef main_h


