From 7aaced1e8bc81ebbf0a1f06fc443ea4707edd1dd Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 12 Oct 2010 12:22:11 +0000 Subject: Remove USB_MODE_* macros, replace with a semantically linked USB_Modes_t enum. Moved the USB device selection logic for ENDPOINT_TOTAL_ENDPOINTS further up in Endpoint.h to where the endpoint bank capabilities are determined, to reduce the total number of device-specific logic. Change USB_Host_WaitMS() to test and disable the HSOFI interrupt before resuming the bus, so that it does not fire before the delay loop has run. Add missing const qualifier to the parameter of USB_Host_ClearPipeStall(). --- LUFA/Drivers/USB/HighLevel/USBTask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LUFA/Drivers/USB/HighLevel/USBTask.c') diff --git a/LUFA/Drivers/USB/HighLevel/USBTask.c b/LUFA/Drivers/USB/HighLevel/USBTask.c index 5ec1746fd..a2737f7d0 100644 --- a/LUFA/Drivers/USB/HighLevel/USBTask.c +++ b/LUFA/Drivers/USB/HighLevel/USBTask.c @@ -50,9 +50,9 @@ void USB_USBTask(void) #elif defined(USB_DEVICE_ONLY) USB_DeviceTask(); #else - if (USB_CurrentMode == USB_MODE_DEVICE) + if (USB_CurrentMode == USB_MODE_Device) USB_DeviceTask(); - else if (USB_CurrentMode == USB_MODE_HOST) + else if (USB_CurrentMode == USB_MODE_Host) USB_HostTask(); #endif } -- cgit v1.2.3