/* ** ################################################################### ** ** Filename : Events.C ** ** Project : TimerInt ** ** Processor : 68HC908AZ60 ** ** Componenttype : Events ** ** Version : Driver 01.00 ** ** Compiler : Metrowerks HC08 C Compiler V-5.0.13 ** ** Date/Time : 15.01.2002, 19:03 ** ** Abstract : ** ** This is user's event module. ** Put your event handler code here. ** ** Settings : ** ** ** Contents : ** ** timer1_OnInterrupt - void timer1_OnInterrupt(void); ** ** ** Copyright: 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved. ** ** ** ** http : www.freescale.com ** mail : support@freescale.com ** ** ################################################################### */ /* MODULE Events */ #pragma MESSAGE DISABLE C1420 /* WARNING C1420: Result of function-call is ignored */ /*Including used modules for compilling procedure*/ #include "Cpu.h" #include "Events.h" #include "timer1.h" #include "shareTmr.h" #include "timer2.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" word Counter1=0, Counter2 = 0; /* ** =================================================================== ** Event : timer1_OnInterrupt (module Events) ** ** From Component : timer1 [TimerInt] ** Description : ** When a timer interrupt occurs this event is called (only ** when the Component is enabled - "Enable" and the events are ** enabled - "EnableEvent"). ** Parameters : None ** Returns : Nothing ** =================================================================== */ void timer1_OnInterrupt(void) { Counter1++; } /* ** =================================================================== ** Event : timer2_OnInterrupt (module Events) ** ** From Component : timer2 [TimerInt] ** Description : ** When a timer interrupt occurs this event is called (only ** when the Component is enabled - "Enable" and the events are ** enabled - "EnableEvent"). ** Parameters : None ** Returns : Nothing ** =================================================================== */ void timer2_OnInterrupt(void) { Counter2++; } /* ** =================================================================== ** Event : Cpu_OnSwINT (module Events) ** ** From Component : Cpu [MC9S08GB60] ** Description : ** This software event is called after software reset. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void Cpu_OnSwINT(void) { /* Write your code here ... */ } /* END Events */ /* ** ################################################################### ** ** This file was created by Processor Expert 02.86 for ** the Freescale HC08 series of microcontrollers. ** ** ################################################################### */