Removed "Host_" section of the function names in ConfigDescriptor.h, as most of the routines can now be used in device mode on the device descriptor.
Renamed functions in the HID parser to have a "USB_" prefix and the acronym "HID" in the name. Further module-level documentation updates.
This commit is contained in:
parent
d38fa49cb6
commit
32e735b2b2
15 changed files with 185 additions and 175 deletions
|
@ -51,7 +51,7 @@ uint8_t ProcessConfigurationDescriptor(void)
|
|||
uint16_t ConfigDescriptorSize;
|
||||
|
||||
/* Get Configuration Descriptor size from the device */
|
||||
if (USB_Host_GetDeviceConfigDescriptor(&ConfigDescriptorSize, NULL) != HOST_SENDCONTROL_Successful)
|
||||
if (USB_GetDeviceConfigDescriptor(&ConfigDescriptorSize, NULL) != HOST_SENDCONTROL_Successful)
|
||||
return ControlError;
|
||||
|
||||
/* Ensure that the Configuration Descriptor isn't too large */
|
||||
|
@ -62,7 +62,7 @@ uint8_t ProcessConfigurationDescriptor(void)
|
|||
ConfigDescriptorData = alloca(ConfigDescriptorSize);
|
||||
|
||||
/* Retrieve the entire configuration descriptor into the allocated buffer */
|
||||
USB_Host_GetDeviceConfigDescriptor(&ConfigDescriptorSize, ConfigDescriptorData);
|
||||
USB_GetDeviceConfigDescriptor(&ConfigDescriptorSize, ConfigDescriptorData);
|
||||
|
||||
/* Validate returned data - ensure first entry is a configuration header descriptor */
|
||||
if (DESCRIPTOR_TYPE(ConfigDescriptorData) != DTYPE_Configuration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue