/******************************************************************************
COPYRIGHT 2003 STMicroelectronics
Source File Name : main.h            
Group            : IPSW,CMG-IPDF
Author           : MCD Application Team
Date First Issued: 08/03/2002
********************************Documentation**********************************
General Purpose - This file contains prototypes of functions written in main.c

********************************Revision History*******************************
_______________________________________________________________________________
Date :08/03/2002                 Release:1.0         	  	    		        		      
Date :22/09/2003                 Release:2.0
_______________________________________________________________________________

******************************************************************************/
#ifndef MAIN
#define MAIN                                                                   

/*-----------------------------------------------------------------------------
                 Selection of Peripherals Applications
-----------------------------------------------------------------------------*/
#define SPI_TIMER_APPLICATION                /* SPI-95040 EEPROM Application */
//#define TIMERS_ADC_APPLICATION                   /* ADC Timers application */

/*-----------------------------------------------------------------------------
   Declaration of global variables and global message buffers used in main.c
-----------------------------------------------------------------------------*/                                  

#pragma DATA_SEG SHORT DEFAULT_RAM
#ifdef TIMERS_ADC_APPLICATION
char Temp_Count ;
static volatile unsigned int counter ;    
                                 /* Counter for measuring the execution time */ 
static unsigned char Buff1 [15] = {"LT,ART STARTED"}; 
unsigned char Buff2 [32] = {"ADC STARTED, DATA is           "};               
#endif                       

#ifdef SPI_TIMER_APPLICATION                                                     
unsigned char Buff3 [11] = {"SPITesting"};
unsigned char Buff4 [10]= {"         "};     
#endif  
/*-----------------------------------------------------------------------------
                 Prototype of USER FUNCTION used in main.c
-----------------------------------------------------------------------------*/
#ifdef TIMERS_ADC_APPLICATION
void LED_FLASH (void) ;
void PWM_Pulse_Change (void);
void MSG_Display (void) ;
void IO_Config (void ) ;
#endif

/*---------------------------------------------------------------------------*/                                                                    

#endif  
/*** (c) 2003   STMicroelectronics *************************** END OF FILE ***/