diff options
| author | hathach <[email protected]> | 2023-05-11 22:18:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-05-16 11:09:22 +0700 |
| commit | 1c4f22a54cf60e6221995f9b64e2e765fd0a5bfe (patch) | |
| tree | 56505cbd61313df6bc09382e31c3d7aacb5aef72 /hw | |
| parent | 206d63e038744b228cfa6051d701cab50b520fe6 (diff) | |
EHCI: fix xfer failed with disconnected device as stalled
- change CFG_TUH_ENDPOINT_MAX to 16 (max endpoint pair per device) if
not defined
- change QHD_MAX for EHCI, should be user configurable and more
optimized in the future
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/imxrt/family.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/bsp/imxrt/family.c b/hw/bsp/imxrt/family.c index 52d3bb91b..46adabf0a 100644 --- a/hw/bsp/imxrt/family.c +++ b/hw/bsp/imxrt/family.c @@ -131,7 +131,10 @@ void board_init(void) freq = CLOCK_GetOscFreq() / (CLOCK_GetDiv(kCLOCK_UartDiv) + 1U); } - LPUART_Init(UART_PORT, &uart_config, freq); + if ( kStatus_Success != LPUART_Init(UART_PORT, &uart_config, freq) ) { + // failed to init uart, probably baudrate is not supported + // TU_BREAKPOINT(); + } //------------- USB -------------// // Note: RT105x RT106x and later have dual USB controllers. |
