}\r
\r
if (!(RequestHandled))\r
- RAISE_EVENT(USB_UnhandledControlPacket);\r
+ EVENT_USB_UnhandledControlPacket();\r
\r
if (Endpoint_IsSETUPReceived())\r
{\r
#else\r
USB_Descriptor_Device_t* DevDescriptorPtr;\r
\r
- if ((USB_GetDescriptor((DTYPE_Device << 8), 0, (void*)&DevDescriptorPtr) == NO_DESCRIPTOR) ||\r
+ if ((CALLBACK_USB_GetDescriptor((DTYPE_Device << 8), 0, (void*)&DevDescriptorPtr) == NO_DESCRIPTOR) ||\r
#if defined(USE_RAM_DESCRIPTORS)\r
((uint8_t)USB_ControlRequest.wValue > DevDescriptorPtr->NumberOfConfigurations))\r
#elif defined (USE_EEPROM_DESCRIPTORS)\r
Endpoint_ClearIN();\r
\r
if (!(AlreadyConfigured) && USB_ConfigurationNumber)\r
- RAISE_EVENT(USB_DeviceEnumerationComplete);\r
+ EVENT_USB_DeviceEnumerationComplete();\r
\r
- RAISE_EVENT(USB_ConfigurationChanged);\r
+ EVENT_USB_ConfigurationChanged();\r
}\r
\r
void USB_Device_GetConfiguration(void)\r
void* DescriptorPointer;\r
uint16_t DescriptorSize;\r
\r
- if ((DescriptorSize = USB_GetDescriptor(USB_ControlRequest.wValue, USB_ControlRequest.wIndex, &DescriptorPointer)) == NO_DESCRIPTOR)\r
- return;\r
+ if ((DescriptorSize = CALLBACK_USB_GetDescriptor(USB_ControlRequest.wValue, USB_ControlRequest.wIndex,\r
+ &DescriptorPointer)) == NO_DESCRIPTOR)\r
+ {\r
+ return;\r
+ }\r
\r
Endpoint_ClearSETUP();\r
\r
while (USB_ControlRequest.wLength && (Endpoint_BytesInEndpoint() < USB_ControlEndpointSize))\r
{\r
#if defined (USE_EEPROM_DESCRIPTORS)\r
- Endpoint_Write_Byte(eeprom_read_byte(DescriptorPointer++)); \r
+ Endpoint_Write_Byte(eeprom_read_byte(DescriptorPointer++)); \r
#else\r
Endpoint_Write_Byte(pgm_read_byte(DescriptorPointer++));\r
#endif\r