/* ** ################################################################### ** ** Filename : Events.C ** ** Project : FreescaleAnalogComp ** ** Processor : MC9S08RC16_44 ** ** Componenttype : Events ** ** Version : Driver 01.00 ** ** Compiler : Metrowerks HCS08 C Compiler ** ** Date/Time : 30.4.2003, 19:04 ** ** Abstract : ** ** This is user's event module. ** Put your event handler code here. ** ** Settings : ** ** ** Contents : ** ** Cmp1_OnCompare - void Cmp1_OnCompare(void); ** Cpu_OnSwINT - void Cpu_OnSwINT(void); ** ** ** Copyright: 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved. ** ** ** ** http : www.freescale.com ** mail : support@freescale.com ** ** ################################################################### */ /* MODULE Events */ /*Including used modules for compilling procedure*/ #include "Cpu.h" #include "Events.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" extern volatile byte cnt; /* ** =================================================================== ** Event : Cmp1_OnCompare (module Events) ** ** From Component : Cmp1 [FreescaleAnalogComp] ** Description : ** This method is envoked when the edge specified by the ** "Analog comp. mode" property or by the ** "SetAnalogComparatorMode()" method occures on analog ** comparator output. Interrupt service and events must be ** enabled this event to be envoked. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void Cmp1_OnCompare(void) { cnt++; } /* ** =================================================================== ** Event : Cpu_OnSwINT (module Events) ** ** From Component : Cpu [MC9S08RC16_44] ** Description : ** This software event is called after software reset. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void Cpu_OnSwINT(void) { /* Write your code here ... */ } /* ** =================================================================== ** Event : Cpu_OnLvdINT (module Events) ** ** From Component : Cpu [MC9S08RC16_44] ** Description : ** This event is called when Low voltage interrupt occured. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void Cpu_OnLvdINT(void) { /* Write your code here ... */ } /* END Events */ /* ** ################################################################### ** ** This file was created by Processor Expert 03.23 for ** the Freescale HCS08 series of microcontrollers. ** ** ################################################################### */