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

********************************Revision History*******************************
_______________________________________________________________________________
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 */

/*-----------------------------------------------------------------------------
                 Prototype of USER FUNCTION used in main.c
-----------------------------------------------------------------------------*/
#ifdef TIMERS_ADC_APPLICATION
void LED_FLASH (void) ;		/* User defined function for flashing the LEDs */
void PWM_Pulse_Change (void); 
						/* User defined function for changing pulse in PWM*/
void MSG_Display (void) ;  
					/* User defined function for writing messages in EEPROM */
void IO_Config (void ) ; /* User defined function for configuring IO */
#endif			/* TIMERS_ADC_APPLICATION */

/*-----------------------------------------------------------------------------
   Declaration of global variables and global message buffers used in main.c
-----------------------------------------------------------------------------*/                                  
#ifdef TIMERS_ADC_APPLICATION
/* declaration of the variables */
unsigned char Temp_Count ;
unsigned char CNTR_Value = 0xFE;
static volatile unsigned int counter = 0x0000;    
                                 /* Counter for measuring the execution time */ 
/* Messages to be written in the EEPROM */
static unsigned char Buff1 [15] = {"LT,ART STARTED"}; 
unsigned char Buff2 [32] = {"ADC STARTED, DATA is           "};
unsigned int Buff3 [32];               
#endif     /* TIMERS_ADC_APPLICATION */

#ifdef SPI_TIMER_APPLICATION                                                     
/* Messages to be written in EEPROM */
unsigned char Buff4 [11] = {"SPITesting"};
unsigned char Buff5[10]= "         ";     
#endif     /* SPI_TIMER_APPLICATION */ 

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

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