mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-22 16:28:32 +03:00
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:
@@ -171,7 +171,7 @@ static int write_hub_eeprom(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* returns '1' in case we should break any endless loop */
|
/* 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;
|
uint32_t addr, val;
|
||||||
|
|
||||||
@@ -251,14 +251,10 @@ static int check_exec_dbg_cmd(void)
|
|||||||
printf("Seetting SIMTRACExx_ERASE (active)\r\n");
|
printf("Seetting SIMTRACExx_ERASE (active)\r\n");
|
||||||
PIO_Set(&pin_peer_erase);
|
PIO_Set(&pin_peer_erase);
|
||||||
break;
|
break;
|
||||||
case 'U':
|
|
||||||
printf("Proceeding to USB init\r\n");
|
|
||||||
return 1;
|
|
||||||
default:
|
default:
|
||||||
printf("Unknown command '%c'\r\n", ch);
|
printf("Unknown command '%c'\r\n", ch);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
@@ -308,11 +304,6 @@ extern int main(void)
|
|||||||
TRACE_INFO("Detected Quad-Modem ST34\r\n");
|
TRACE_INFO("Detected Quad-Modem ST34\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
while (1) {
|
|
||||||
if (check_exec_dbg_cmd() == 1)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
TRACE_INFO("USB init...\r\n");
|
TRACE_INFO("USB init...\r\n");
|
||||||
SIMtrace_USB_Initialize();
|
SIMtrace_USB_Initialize();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user