/* ** ################################################################### ** ** Filename : Events.C ** ** Project : USBHUB ** ** Processor : MC68HC908LD64IFU ** ** Componenttype : Events ** ** Version : Driver 01.01 ** ** Compiler : Metrowerks HC08 C Compiler ** ** Date/Time : 06.10.2003, 15:23 ** ** Abstract : ** ** This is user's event module. ** Put your event handler code here. ** ** Settings : ** ** ** Contents : ** ** HUB1_OnPowerOnDownstreamPort - void HUB1_OnPowerOnDownstreamPort(byte Port); ** HUB1_OnPowerOffDownstreamPort - void HUB1_OnPowerOffDownstreamPort(byte Port); ** ** ** 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 "HUB1.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 : HUB1_OnPowerOnDownstreamPort (module Events) ** ** From Component : HUB1 [USBHUB] ** Description : ** This event is invoked when the host sends the SET_FEATURE ** request whose value of feature selector is PORT_POWER. ** You must power on the requested port before you end this ** event! ** Parameters : ** NAME - DESCRIPTION ** Port - Number of port to set power on. ** Returns : Nothing ** =================================================================== */ void HUB1_OnPowerOnDownstreamPort(byte Port) { /* Write your code here ... */ } /* ** =================================================================== ** Event : HUB1_OnPowerOffDownstreamPort (module Events) ** ** From Component : HUB1 [USBHUB] ** Description : ** This event is invoked when the host sends the ** CLEAR_FEATURE request whose value of feature selector is ** PORT_POWER. You must power off the requested port before ** you end this event! ** Parameters : ** NAME - DESCRIPTION ** Port - Number of port to set power off. ** Returns : Nothing ** =================================================================== */ void HUB1_OnPowerOffDownstreamPort(byte Port) { /* Write your code here ... */ } /* END Events */ /* ** ################################################################### ** ** This file was created by Processor Expert 03.33 for ** the Freescale HC08 series of microcontrollers. ** ** ################################################################### */