projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend incomplete RNDISHost demo -- can not enumerate a RNDIS device correctly and...
[pub/USBasp.git]
/
Demos
/
Host
/
ClassDriver
/
MassStorageHost
/
MassStorageHost.c
diff --git
a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
index
d22e074
..
e1a0f46
100644
(file)
--- a/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
+++ b/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
@@
-45,13
+45,16
@@
USB_ClassInfo_MS_Host_t FlashDisk_MS_Interface =
.Config =
\r
{
\r
.DataINPipeNumber = 1,
\r
.Config =
\r
{
\r
.DataINPipeNumber = 1,
\r
+ .DataINPipeDoubleBank = false,
\r
+
\r
.DataOUTPipeNumber = 2,
\r
.DataOUTPipeNumber = 2,
\r
+ .DataOUTPipeDoubleBank = false,
\r
},
\r
};
\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then
\r
},
\r
};
\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then
\r
- *
starts the scheduler to run the application tasks
.
\r
+ *
enters a loop to run the application tasks in sequence
.
\r
*/
\r
int main(void)
\r
{
\r
*/
\r
int main(void)
\r
{
\r
@@
-142,7
+145,7
@@
int main(void)
SCSI_Inquiry_Response_t InquiryData;
\r
if (MS_Host_GetInquiryData(&FlashDisk_MS_Interface, 0, &InquiryData))
\r
{
\r
SCSI_Inquiry_Response_t InquiryData;
\r
if (MS_Host_GetInquiryData(&FlashDisk_MS_Interface, 0, &InquiryData))
\r
{
\r
- printf("Error retr
ei
ving device Inquiry data.\r\n");
\r
+ printf("Error retr
ie
ving device Inquiry data.\r\n");
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
\r
break;
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
\r
break;
\r