Rewritten event system to remove all macros, to make user code clearer.
Fixed incorrect ENDPOINT_EPNUM_MASK mask preventing endpoints above EP3 from being selected (thanks to Jonathan Oakley). Removed STREAM_CALLBACK() macro - callbacks now use regular function definitions to clarify user code. Removed DESCRIPTOR_COMPARATOR() macro - comparators should now use regular function definitions to clarify user code.
This commit is contained in:
@@ -66,11 +66,10 @@
|
||||
NoEndpointFound = 5, /**< The correct SI endpoint descriptors were not found in the device's SI interface */
|
||||
};
|
||||
|
||||
/* Configuration Descriptor Comparison Functions: */
|
||||
DESCRIPTOR_COMPARATOR(NextStillImageInterface);
|
||||
DESCRIPTOR_COMPARATOR(NextSImageInterfaceDataEndpoint);
|
||||
|
||||
/* Function Prototypes: */
|
||||
uint8_t ProcessConfigurationDescriptor(void);
|
||||
uint8_t ProcessConfigurationDescriptor(void);
|
||||
|
||||
uint8_t DComp_NextStillImageInterface(void* CurrentDescriptor);
|
||||
uint8_t DComp_NextSImageInterfaceDataEndpoint(void* CurrentDescriptor);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user