/* ** ################################################################### ** ** Filename : Events.C ** ** Project : TEst ** ** Processor : MC68HC908AS60ACFU ** ** Componenttype : Events ** ** Version : Driver 01.00 ** ** Compiler : Metrowerks HC08 C Compiler V-5.0.13 ** ** Date/Time : 10.5.2002, 12:13 ** ** Abstract : ** ** This is user's event module. ** Put your event handler code here. ** ** Settings : ** ** ** Contents : ** ** BDLC1_OnTransmitData - void BDLC1_OnTransmitData(void); ** BDLC1_OnReceiveData - void BDLC1_OnReceiveData(void); ** BDLC1_OnCRCError - void BDLC1_OnCRCError(void); ** BDLC1_OnArbitrLost - void BDLC1_OnArbitrLost(void); ** BDLC1_OnError - void BDLC1_OnError(void); ** BDLC1_OnOverrun - void BDLC1_OnOverrun(void); ** BDLC1_OnRxChar - void BDLC1_OnRxChar(void); ** BDLC1_OnFullRxBuf - void BDLC1_OnFullRxBuf(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 */ #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 "BDLC1.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 byte OnTx; extern byte OnRx; /* ** =================================================================== ** Event : BDLC1_OnTransmitData (module Events) ** ** From Component : BDLC1 [BDLC] ** Description : ** This event is invoked when BDLC finishes a correct ** transmission (after EOF). ** Parameters : None ** Returns : Nothing ** =================================================================== */ void BDLC1_OnTransmitData(void) { OnTx++; } /* ** =================================================================== ** Event : BDLC1_OnReceiveData (module Events) ** ** From Component : BDLC1 [BDLC] ** Description : ** This event is invoked when BDLC receives a correct frame ** (after EOF). ** Parameters : None ** Returns : Nothing ** =================================================================== */ void BDLC1_OnReceiveData(void) { OnRx++; } /* ** =================================================================== ** Event : Cpu_OnSwINT (module Events) ** ** From Component : Cpu [MC68HC908AS60A_64] ** 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.87 for ** the Freescale HC08 series of microcontrollers. ** ** ################################################################### */