All Class Driver Host mode demos now correctly set the board LEDs to READY once the enumeration process has completed.
Fixed Still Image Host class driver not resetting the transaction ID when a new session is opened, fixed driver not sending a valid session ID to the device.
This commit is contained in:
parent
b8db5fc1e7
commit
74353374c3
21 changed files with 34 additions and 21 deletions
|
|
@ -115,9 +115,8 @@ int main(void)
|
|||
break;
|
||||
}
|
||||
|
||||
LEDs_SetAllLEDs(LEDS_NO_LEDS);
|
||||
|
||||
printf("Joystick Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ int main(void)
|
|||
}
|
||||
|
||||
printf("Keyboard Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -115,9 +115,8 @@ int main(void)
|
|||
break;
|
||||
}
|
||||
|
||||
LEDs_SetAllLEDs(LEDS_NO_LEDS);
|
||||
|
||||
printf("Keyboard Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ int main(void)
|
|||
}
|
||||
|
||||
printf("MIDI Device Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ int main(void)
|
|||
}
|
||||
|
||||
printf("Mass Storage Device Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ int main(void)
|
|||
}
|
||||
|
||||
printf("Mouse Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -115,9 +115,8 @@ int main(void)
|
|||
break;
|
||||
}
|
||||
|
||||
LEDs_SetAllLEDs(LEDS_NO_LEDS);
|
||||
|
||||
printf("Mouse Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ int main(void)
|
|||
}
|
||||
|
||||
printf("Printer Device Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -143,6 +143,7 @@ int main(void)
|
|||
printf("Device Vendor ID: 0x%08lX\r\n", VendorID);
|
||||
|
||||
printf("RNDIS Device Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ int main(void)
|
|||
if (SImage_Host_ConfigurePipes(&DigitalCamera_SI_Interface,
|
||||
ConfigDescriptorSize, ConfigDescriptorData) != SI_ENUMERROR_NoError)
|
||||
{
|
||||
printf("Attached Device Not a Valid CDC Class Device.\r\n");
|
||||
printf("Attached Device Not a Valid Still Image Class Device.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
|
||||
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
|
||||
break;
|
||||
|
|
@ -103,6 +103,7 @@ int main(void)
|
|||
}
|
||||
|
||||
printf("Still Image Device Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ int main(void)
|
|||
}
|
||||
|
||||
printf("CDC Device Enumerated.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_READY);
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue