Added new USB_Device_GetFrameNumber() and USB_Host_GetFrameNumber() functions to...
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 5 Sep 2010 07:11:53 +0000 (07:11 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 5 Sep 2010 07:11:53 +0000 (07:11 +0000)
commit18cbd31605dae070f00900161090a72d3eb0f8ab
tree1166a9c1b27630111d337b76a0eee1292b0d633b
parent0174d8ea70f3d7180e6ea3da2b3720273adb33d9
Added new USB_Device_GetFrameNumber() and USB_Host_GetFrameNumber() functions to retrieve the current USB frame number.

Added new USB_Host_EnableSOFEvents(), USB_Host_DisableSOFEvents() and EVENT_USB_Host_StartOfFrame() for the user application handling of USB Start of Frame events while in USB Host mode.

Changed over all demos, drivers and internal functions to use the current frame number over the Start of Frame flag where possible to free up the Start of Frame flag for interrupt use in the user application.
12 files changed:
Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c
Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.c
LUFA/Drivers/USB/Class/Host/MassStorage.c
LUFA/Drivers/USB/Class/Host/StillImage.c
LUFA/Drivers/USB/HighLevel/Events.h
LUFA/Drivers/USB/LowLevel/Device.h
LUFA/Drivers/USB/LowLevel/Endpoint.c
LUFA/Drivers/USB/LowLevel/Host.c
LUFA/Drivers/USB/LowLevel/Host.h
LUFA/Drivers/USB/LowLevel/Pipe.c
LUFA/Drivers/USB/LowLevel/USBInterrupt.c
LUFA/ManPages/ChangeLog.txt