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).
This commit is contained in:
parent
023838fe4a
commit
922e60192d
8 changed files with 260 additions and 292 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue