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:
parent
72c2922e38
commit
2ee9fc7077
116 changed files with 596 additions and 1124 deletions
|
@ -106,7 +106,7 @@ void USB_Device_ProcessControlPacket(void)
|
|||
}
|
||||
|
||||
if (!(RequestHandled))
|
||||
RAISE_EVENT(USB_UnhandledControlPacket);
|
||||
EVENT_USB_UnhandledControlPacket();
|
||||
|
||||
if (Endpoint_IsSETUPReceived())
|
||||
{
|
||||
|
@ -157,9 +157,9 @@ static void USB_Device_SetConfiguration(void)
|
|||
Endpoint_ClearIN();
|
||||
|
||||
if (!(AlreadyConfigured) && USB_ConfigurationNumber)
|
||||
RAISE_EVENT(USB_DeviceEnumerationComplete);
|
||||
EVENT_USB_DeviceEnumerationComplete();
|
||||
|
||||
RAISE_EVENT(USB_ConfigurationChanged);
|
||||
EVENT_USB_ConfigurationChanged();
|
||||
}
|
||||
|
||||
void USB_Device_GetConfiguration(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue