diff options
| author | Ha Thach <[email protected]> | 2021-01-08 23:09:18 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-08 23:09:18 +0700 |
| commit | cfcffe94ce62f5ef1fb5aef4641924d64dc4b1c0 (patch) | |
| tree | b360223bbbe1e29fa0c3459ff4a48a496ba134f0 /src/portable/microchip | |
| parent | fb896be201602ce38105a934d3a59886b46d1268 (diff) | |
| parent | d33b22d1275683cd352f3d8b729e20e6836c1ea4 (diff) | |
Merge pull request #588 from hathach/use-dcd_event_bus_reset
use dcd_event_bus_reset() with speed to replace bus_signal
Diffstat (limited to 'src/portable/microchip')
| -rw-r--r-- | src/portable/microchip/samd/dcd_samd.c | 2 | ||||
| -rw-r--r-- | src/portable/microchip/samg/dcd_samg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/microchip/samd/dcd_samd.c b/src/portable/microchip/samd/dcd_samd.c index 68a15672a..3cff92fcd 100644 --- a/src/portable/microchip/samd/dcd_samd.c +++ b/src/portable/microchip/samd/dcd_samd.c @@ -387,7 +387,7 @@ void dcd_int_handler (uint8_t rhport) USB->DEVICE.INTENCLR.reg = USB_DEVICE_INTFLAG_WAKEUP | USB_DEVICE_INTFLAG_SUSPEND; bus_reset(); - dcd_event_bus_signal(0, DCD_EVENT_BUS_RESET, true); + dcd_event_bus_reset(0, TUSB_SPEED_FULL, true); } // Handle SETUP packet diff --git a/src/portable/microchip/samg/dcd_samg.c b/src/portable/microchip/samg/dcd_samg.c index 2b64df50b..2f9f1097f 100644 --- a/src/portable/microchip/samg/dcd_samg.c +++ b/src/portable/microchip/samg/dcd_samg.c @@ -338,7 +338,7 @@ void dcd_int_handler(uint8_t rhport) if (intr_status & UDP_ISR_ENDBUSRES_Msk) { bus_reset(); - dcd_event_bus_signal(rhport, DCD_EVENT_BUS_RESET, true); + dcd_event_bus_reset(rhport, TUSB_SPEED_FULL, true); } // SOF |
