qmod: Remove 'U' debug command and directly initialize USB

The hack to manually delay the USB initialization is no longer needed as
finally the USB enumerates.
This commit is contained in:
Harald Welte 2017-01-12 18:59:41 +01:00
parent fb3f308f2f
commit af6147997d
1 changed files with 1 additions and 10 deletions

View File

@ -171,7 +171,7 @@ static int write_hub_eeprom(void)
}
/* returns '1' in case we should break any endless loop */
static int check_exec_dbg_cmd(void)
static void check_exec_dbg_cmd(void)
{
uint32_t addr, val;
@ -251,14 +251,10 @@ static int check_exec_dbg_cmd(void)
printf("Seetting SIMTRACExx_ERASE (active)\r\n");
PIO_Set(&pin_peer_erase);
break;
case 'U':
printf("Proceeding to USB init\r\n");
return 1;
default:
printf("Unknown command '%c'\r\n", ch);
break;
}
return 0;
}
/*------------------------------------------------------------------------------
@ -308,11 +304,6 @@ extern int main(void)
TRACE_INFO("Detected Quad-Modem ST34\r\n");
}
while (1) {
if (check_exec_dbg_cmd() == 1)
break;
}
TRACE_INFO("USB init...\r\n");
SIMtrace_USB_Initialize();