File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/portable/synopsys/dwc2 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ void dcd_edpt_close_all(uint8_t rhport) {
539539 dwc2_regs_t * dwc2 = DWC2_REG (rhport );
540540 uint8_t const ep_count = _dwc2_controller [rhport ].ep_count ;
541541
542- _dcd_data .allocated_epin_count = 1 ;
542+ _dcd_data .allocated_epin_count = 0 ;
543543
544544 // Disable non-control interrupt
545545 dwc2 -> daintmsk = (1 << DAINTMSK_OEPM_Pos ) | (1 << DAINTMSK_IEPM_Pos );
@@ -646,7 +646,7 @@ static void handle_bus_reset(uint8_t rhport) {
646646 tu_memclr (xfer_status , sizeof (xfer_status ));
647647
648648 _dcd_data .sof_en = false;
649- _dcd_data .allocated_epin_count = 1 ;
649+ _dcd_data .allocated_epin_count = 0 ;
650650
651651 // 1. NAK for all OUT endpoints
652652 for (uint8_t n = 0 ; n < ep_count ; n ++ ) {
You can’t perform that action at this time.
0 commit comments