/* Initialises the USB hardware and sets up the USB stack by installing default callbacks. */
BOOL USBInit(void)
/* Initialises the USB hardware and sets up the USB stack by installing default callbacks. */
BOOL USBInit(void)
{
	USBHwInit();
	USBHwRegisterDevIntHandler(HandleUsbReset);
	USBHwRegisterEPIntHandler(0x00, USBHandleControlTransfer);
	USBHwRegisterEPIntHandler(0x80, USBHandleControlTransfer);
	USBHwEPConfig(0x00, MAX_PACKET_SIZE0);
	USBHwEPConfig(0x80, MAX_PACKET_SIZE0);
	USBRegisterRequestHandler(REQTYPE_TYPE_STANDARD, USBHandleStandardRequest, abStdReqData);
	return TRUE;
}