From af6147997d54a961f4e411498a5cbff4bb13aab6 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 12 Jan 2017 18:59:41 +0100 Subject: [PATCH] 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. --- firmware/src_simtrace/main.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/firmware/src_simtrace/main.c b/firmware/src_simtrace/main.c index ee94c416..c33cfeaa 100644 --- a/firmware/src_simtrace/main.c +++ b/firmware/src_simtrace/main.c @@ -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();