/* ** ################################################################### ** ** Filename : Events.H ** ** 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 ** ** ################################################################### */ #ifndef __Events_H #define __Events_H /* MODULE Events */ #include "PE_Types.h" #include "PE_Error.h" #include "PE_Const.h" #include "IO_Map.h" #include "USB1.h" #include "Inhr1.h" void USB1_OnReset(void); /* ** =================================================================== ** 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 Cpu_OnSwINT(void); /* ** =================================================================== ** Event : Cpu_OnSwINT (module Events) ** ** From Component : Cpu [MC68HC908JB8_20] ** Description : ** This software event is called after software reset. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void USB1_OnSuspend(void); /* ** =================================================================== ** 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_OnResume(void); /* ** =================================================================== ** Event : USB1_OnResume (module Events) ** ** From Component : USB1 [USB] ** Description : ** This event is invoked on end of resume signaling. ** Parameters : None ** Returns : Nothing ** =================================================================== */ /* END Events */ #endif /* __Events_H*/ /* ** ################################################################### ** ** This file was created by Processor Expert 03.33 for ** the Freescale HC08 series of microcontrollers. ** ** ################################################################### */