fix the duplicated plug connection status change with lpc17xx by using immediate reset on isr. However Khanh's G5 mouse is not enumerated !!

remove TUSB_CFG_CONFIGURATION_MAX from config file
fix some warning
This commit is contained in:
hathach
2014-02-20 16:06:31 +07:00
parent 533c8d2eed
commit 4b6c6929cb
9 changed files with 59 additions and 56 deletions

View File

@@ -375,7 +375,7 @@ tusb_error_t enumeration_body_subtask(void)
{
if( hcd_port_connect_status(usbh_devices[0].core_id) )
{ // connection event
osal_task_delay(200); // wait until device is stable
osal_task_delay(200); // wait until device is stable. Increase this if the first 8 bytes is failed to get
if ( !hcd_port_connect_status(usbh_devices[0].core_id) ) SUBTASK_EXIT(TUSB_ERROR_NONE); // exit if device unplugged while delaying