/* * If this function gets executed, it indicates that a valid voltage has just been removed from the VBUS pin. * returns TRUE to keep CPU awake */ BYTE USB_handleVbusOffEvent () { XT2_Stop(); P1IE &= ~BIT6; //Disable port interrupts return (TRUE); //return TRUE to wake the main loop (in the case the CPU slept before interrupt) }
/* * If this function gets executed, it indicates that a valid voltage has just been removed from the VBUS pin. * returns TRUE to keep CPU awake */ BYTE USB_handleVbusOffEvent () { //TO DO: You can place your code here XT2_Stop(); return (TRUE); //return TRUE to wake the main loop (in the case the CPU slept before interrupt) }