mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Close all EPs upon reset
This commit is contained in:
parent
fa0e4d91f9
commit
64b81fd4d3
@ -839,6 +839,7 @@ void dcd_init(uint8_t rhport)
|
||||
USBC_ForceIdToHigh(); // Force device mode
|
||||
USBC_ForceVbusValidToHigh();
|
||||
USBC_SelectBus(USBC_IO_TYPE_PIO, 0, 0);
|
||||
dcd_edpt_close_all(rhport);
|
||||
|
||||
#if TUD_OPT_HIGH_SPEED
|
||||
USBC_REG_set_bit_b(USBC_BP_POWER_D_HIGH_SPEED_EN, USBC_REG_PCTL(USBC0_BASE));
|
||||
|
Loading…
x
Reference in New Issue
Block a user