From 012628f635b66169b81ab66d4059c3360dd4b612 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 18 Feb 2010 05:10:24 +0000 Subject: [PATCH] Turn OFF double banking in the Webserver demo - leaving it on seems to destroy the system throughput. --- LUFA/Drivers/USB/Class/Host/RNDIS.c | 3 +-- Projects/Webserver/USBDeviceMode.c | 4 ++-- Projects/Webserver/USBHostMode.c | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/LUFA/Drivers/USB/Class/Host/RNDIS.c b/LUFA/Drivers/USB/Class/Host/RNDIS.c index c7bf482c31..b81c6af58e 100644 --- a/LUFA/Drivers/USB/Class/Host/RNDIS.c +++ b/LUFA/Drivers/USB/Class/Host/RNDIS.c @@ -124,7 +124,6 @@ uint8_t RNDIS_Host_ConfigurePipes(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfa Pipe_ConfigurePipe(RNDISInterfaceInfo->Config.DataOUTPipeNumber, EP_TYPE_BULK, PIPE_TOKEN_OUT, EndpointData->EndpointAddress, EndpointData->EndpointSize, RNDISInterfaceInfo->Config.DataOUTPipeDoubleBank ? PIPE_BANK_DOUBLE : PIPE_BANK_SINGLE); - RNDISInterfaceInfo->State.DataOUTPipeSize = EndpointData->EndpointSize; FoundEndpoints |= RNDIS_FOUND_DATAPIPE_OUT; @@ -382,7 +381,7 @@ bool RNDIS_Host_IsPacketReceived(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfac Pipe_Unfreeze(); - PacketWaiting = (Pipe_IsINReceived() && Pipe_BytesInPipe()); + PacketWaiting = Pipe_IsINReceived(); Pipe_Freeze(); diff --git a/Projects/Webserver/USBDeviceMode.c b/Projects/Webserver/USBDeviceMode.c index c93ba4632f..6e1a4ed23b 100644 --- a/Projects/Webserver/USBDeviceMode.c +++ b/Projects/Webserver/USBDeviceMode.c @@ -48,11 +48,11 @@ USB_ClassInfo_MS_Device_t Disk_MS_Interface = .DataINEndpointNumber = MASS_STORAGE_IN_EPNUM, .DataINEndpointSize = MASS_STORAGE_IO_EPSIZE, - .DataINEndpointDoubleBank = false, + .DataINEndpointDoubleBank = true, .DataOUTEndpointNumber = MASS_STORAGE_OUT_EPNUM, .DataOUTEndpointSize = MASS_STORAGE_IO_EPSIZE, - .DataOUTEndpointDoubleBank = false, + .DataOUTEndpointDoubleBank = true, .TotalLUNs = 1, }, diff --git a/Projects/Webserver/USBHostMode.c b/Projects/Webserver/USBHostMode.c index b8e2dcee73..14f33e07cf 100644 --- a/Projects/Webserver/USBHostMode.c +++ b/Projects/Webserver/USBHostMode.c @@ -45,10 +45,10 @@ USB_ClassInfo_RNDIS_Host_t Ethernet_RNDIS_Interface = .Config = { .DataINPipeNumber = 1, - .DataINPipeDoubleBank = true, + .DataINPipeDoubleBank = false, .DataOUTPipeNumber = 2, - .DataOUTPipeDoubleBank = true, + .DataOUTPipeDoubleBank = false, .NotificationPipeNumber = 3, .NotificationPipeDoubleBank = false,