From 922e60192dc089654a82be0d789fb7a8ecc47039 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 27 Aug 2009 13:12:44 +0000 Subject: Condensed SCSI command functions in the LowLevel Mass Storage Host demo, to save on FLASH space. Fixed issue in AVRISP project where the target RESET line was being toggled before it was tristated, causing problems synchronising to some targets (thanks to Mike Alex). --- Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Demos/Host/ClassDriver/MassStorageHost') diff --git a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c index 01553354d..c9120d596 100644 --- a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c +++ b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c @@ -84,7 +84,7 @@ int main(void) if (MS_Host_ConfigurePipes(&FlashDisk_MS_Interface, ConfigDescriptorSize, ConfigDescriptorData) != MS_ENUMERROR_NoError) { - printf("Attached Device Not a Valid Mouse.\r\n"); + printf("Attached Device Not a Valid Mass Storage Device.\r\n"); LEDs_SetAllLEDs(LEDMASK_USB_ERROR); USB_HostState = HOST_STATE_WaitForDeviceRemoval; break; @@ -113,6 +113,8 @@ int main(void) break; } + printf("Total LUNs: %d - Using first LUN in device.\r\n", (MaxLUNIndex + 1)); + if (MS_Host_ResetMSInterface(&FlashDisk_MS_Interface)) { printf("Error resetting Mass Storage interface.\r\n"); -- cgit v1.2.3