Make the StandaloneProgrammer project seamlessly read out drive contents from either an attached FAT formatted drive when in host mode, or the onboard FAT formatted dataflash when in device mode.
This commit is contained in:
parent
59ed10273c
commit
d3f11eb528
6 changed files with 18 additions and 13 deletions
|
@ -84,7 +84,7 @@ int main(void)
|
|||
}
|
||||
|
||||
if (MS_Host_ConfigurePipes(&FlashDisk_MS_Interface,
|
||||
ConfigDescriptorSize, ConfigDescriptorData) != MS_ENUMERROR_NoError)
|
||||
ConfigDescriptorSize, ConfigDescriptorData) != MS_ENUMERROR_NoError)
|
||||
{
|
||||
printf("Attached Device Not a Valid Mass Storage Device.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue