X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/ed031c1df2f5b053b9cd9f48c63e66a42b7c049e..6a7c298c0f7119e44e18de15d714cd8b938e3bef:/Demos/Host/CDCHost/ConfigDescriptor.h diff --git a/Demos/Host/CDCHost/ConfigDescriptor.h b/Demos/Host/CDCHost/ConfigDescriptor.h index 04d71aade..1a118cad3 100644 --- a/Demos/Host/CDCHost/ConfigDescriptor.h +++ b/Demos/Host/CDCHost/ConfigDescriptor.h @@ -38,7 +38,6 @@ /* Includes: */ #include // USB Functionality - #include // Configuration Descriptor Parser #include "CDCHost.h" @@ -73,14 +72,14 @@ DescriptorTooLarge = 2, /**< The device's Configuration Descriptor is too large to process */ InvalidConfigDataReturned = 3, /**< The device returned an invalid Configuration Descriptor */ NoCDCInterfaceFound = 4, /**< A compatible CDC interface was not found in the device's Configuration Descriptor */ - NoEndpointFound = 5, /**< Cmpatible CDC endpoints were not found in the device's CDC interface */ + NoEndpointFound = 5, /**< Compatible CDC endpoints were not found in the device's CDC interface */ }; - /* Configuration Descriptor Comparison Functions: */ - DESCRIPTOR_COMPARATOR(NextCDCInterface); - DESCRIPTOR_COMPARATOR(NextInterfaceCDCDataEndpoint); - /* Function Prototypes: */ uint8_t ProcessConfigurationDescriptor(void); - + + uint8_t DComp_NextCDCControlInterface(void* CurrentDescriptor); + uint8_t DComp_NextCDCDataInterface(void* CurrentDescriptor); + uint8_t DComp_NextInterfaceCDCDataEndpoint(void* CurrentDescriptor); + #endif