/* ** ################################################################### ** ** Filename : Events.C ** ** Project : usb ** ** Processor : MC68HC908JB8JP ** ** Componenttype : Events ** ** Version : Driver 01.01 ** ** Compiler : Metrowerks HC08 C Compiler ** ** Date/Time : 06.10.2003, 15:08 ** ** Abstract : ** ** This is user's event module. ** Put your event handler code here. ** ** Settings : ** ** ** Contents : ** ** USB1_OnReset - void USB1_OnReset(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 shared modules, which are used for whole project*/ #include "PE_Types.h" #include "PE_Error.h" #include "PE_Const.h" #include "IO_Map.h" /* ** =================================================================== ** Event : USB1_OnReset (module Events) ** ** From Component : USB1 [USB] ** Description : ** This event is invoked after the reset signaling is ** removed. Devices must be able to accept a SetAddress() ** request (refer to Section 11.16.2 and Section 9.4 ** respectively of the USB Specification Rev. 1.1) after the ** reset recovery time 10ms (TRSTRCY) after the reset is ** removed. This event should be finished as quick as ** possible. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void USB1_OnReset(void) { /* Write your code here ... */ } /* ** =================================================================== ** Event : Cpu_OnSwINT (module Events) ** ** From Component : Cpu [MC68HC908JB8_20] ** Description : ** This software event is called after software reset. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void Cpu_OnSwINT(void) { /* Write your code here ... */ } /* ** =================================================================== ** Event : USB1_OnSuspend (module Events) ** ** From Component : USB1 [USB] ** Description : ** This event is invoked when device sees constant IDLE ** state on their upstream bus lines betwen 5 - 6 ms. The ** device must actually be suspended, drawing only suspend ** current from the bus after no more than 10 ms of bus ** inactivity on all its ports (refer to Section 7.1.7.4 of ** the USB Specification Rev. 1.1) You have up to 4 ms to ** decrease current consumption. This Component needs no HW ** resources after this event is invoked. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void USB1_OnSuspend(void) { /* Write your code here ... */ } /* ** =================================================================== ** Event : USB1_OnResume (module Events) ** ** From Component : USB1 [USB] ** Description : ** This event is invoked on end of resume signaling. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void USB1_OnResume(void) { /* Write your code here ... */ } /* END Events */ /* ** ################################################################### ** ** This file was created by Processor Expert 03.33 for ** the Freescale HC08 series of microcontrollers. ** ** ################################################################### */