/** ###################################################################
**     Filename  : PE_LL64_Quick_Start.C
**     Project   : PE_LL64_Quick_Start
**     Processor : MC9S08LL64C_LQFP80
**     Version   : Driver 01.11
**     Compiler  : CodeWarrior HCS08 C Compiler
**     Date/Time : 5/26/2009, 3:40 PM
**     Abstract  :
**         Main module.
**         This module contains user's application code.
**     Settings  :
**     Contents  :
**         No public methods
**
** ###################################################################*/
/* MODULE PE_LL64_Quick_Start */


/* Including needed modules to compile this module/procedure */
#include "Cpu.h"
#include "Events.h"
#include "LCD1.h"
#include "ADC1.h"
#include "LED1.h"
#include "LED2.h"
#include "LED3.h"
#include "LED4.h"
#include "TOD1.h"
#include "IRQ1.h"
#include "AS1.h"
#include "ACCEL_SLEEP_B.h"
#include "KBI1.h"
#include "BUZZER.h"
/* Include shared modules, which are used for whole project */
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"

/* User includes (#include below this line is not maintained by Processor Expert) */
#include "LL64_Demo.h" /* LL64 demo functions */
#include "LCD_drive.h" /* LCD driver function */
#include "LL64_ADC.h"  /* LL64 ADC defines */     
#include "sci_drv.h"   /* LL64 SCI defines */
void main(void)
{
  /* Write your local variable definition here */
volatile unsigned char channel = 0;
volatile unsigned char channel_adc = 0;
unsigned short ADC_Conversion(unsigned char);
volatile unsigned char state = 0;
volatile unsigned char Result = 0;
volatile unsigned int C_x = 0;
volatile unsigned int C_y = 0;
volatile unsigned int C_z = 0;

 
  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
  PE_low_level_init();
  /*** End of Processor Expert internal initialization.                    ***/

  /* Write your code here */
  
  LL64_demo();
  

  /*** Don't write any code pass this line, or it will be deleted during code generation. ***/
  /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
  for(;;){}
  /*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/

/* END PE_LL64_Quick_Start */
/*
** ###################################################################
**
**     This file was created by Processor Expert 3.06 [04.26]
**     for the Freescale HCS08 series of microcontrollers.
**
** ###################################################################
*/
