/* ** ################################################################### ** ** Filename : Events.C ** ** Project : FreescaleCMT ** ** Processor : MC9S08RE16_44 ** ** Componenttype : Events ** ** Version : Driver 01.01 ** ** Compiler : Metrowerks HCS08 C Compiler ** ** Date/Time : 14.03.2003, 17:29 ** ** Abstract : ** ** This is user's event module. ** Put your event handler code here. ** ** Settings : ** ** ** Contents : ** ** CM1_OnEnd - void CM1_OnEnd(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 "CM1.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 OnEnd; /* ** =================================================================== ** Event : CM1_OnEnd (module Events) ** ** From Component : CM1 [FreescaleCMT] ** Description : ** The Event is called immediatelly after start of the ** signal generation (Enable method). After that the event ** is called at the end of each modulation cycle. If the ** time interval between disabling and reenabling of the ** Component is shorter than one modulation period, the event ** will be called only at the end of the modulation cycle. ** Enabling/Disabling of the event is driven by Interrupt ** service/event property. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void CM1_OnEnd(void) { OnEnd++; } /* ** =================================================================== ** Event : Cpu_OnSwINT (module Events) ** ** From Component : Cpu [MC9S08RE16_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 [MC9S08RE16_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.16 for ** the Freescale HCS08 series of microcontrollers. ** ** ################################################################### */