}\r
else\r
{\r
- RAISE_EVENT(USB_PowerOnFail, POWERON_ERROR_NoUSBModeSpecified);\r
+ EVENT_USB_InitFailure(USB_INITERROR_NoUSBModeSpecified);\r
return;\r
}\r
#endif\r
void USB_ShutDown(void)\r
{\r
if (USB_IsConnected)\r
- RAISE_EVENT(USB_Disconnect);\r
+ EVENT_USB_Disconnect();\r
\r
USB_Detach();\r
\r
{\r
USB_Descriptor_Device_t* DeviceDescriptorPtr;\r
\r
- if (USB_GetDescriptor((DTYPE_Device << 8), 0, (void*)&DeviceDescriptorPtr) != NO_DESCRIPTOR)\r
+ if (CALLBACK_USB_GetDescriptor((DTYPE_Device << 8), 0, (void*)&DeviceDescriptorPtr) != NO_DESCRIPTOR)\r
{ \r
#if defined(USE_RAM_DESCRIPTORS)\r
USB_ControlEndpointSize = DeviceDescriptorPtr->Endpoint0Size;\r