mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 14:42:58 +00:00
fix ci
This commit is contained in:
parent
94527951a0
commit
8b34f2fca8
@ -723,7 +723,7 @@ static void _dcd_int_handler(void* arg)
|
||||
|
||||
if (otg_int & USB_SESENDDET_M)
|
||||
{
|
||||
dcd_event_bus_signal(0, DCD_EVENT_UNPLUGGED, true);
|
||||
dcd_event_bus_signal(rhport, DCD_EVENT_UNPLUGGED, true);
|
||||
}
|
||||
|
||||
USB0.gotgint = otg_int;
|
||||
@ -732,7 +732,7 @@ static void _dcd_int_handler(void* arg)
|
||||
#if USE_SOF
|
||||
if (int_status & USB_SOF_M) {
|
||||
USB0.gintsts = USB_SOF_M;
|
||||
dcd_event_bus_signal(0, DCD_EVENT_SOF, true); // do nothing actually
|
||||
dcd_event_bus_signal(rhport, DCD_EVENT_SOF, true); // do nothing actually
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -515,12 +515,14 @@ void dcd_remote_wakeup(uint8_t rhport)
|
||||
|
||||
void dcd_connect(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
USB_OTG_DeviceTypeDef * dev = DEVICE_BASE(rhport);
|
||||
dev->DCTL &= ~USB_OTG_DCTL_SDIS;
|
||||
}
|
||||
|
||||
void dcd_disconnect(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
USB_OTG_DeviceTypeDef * dev = DEVICE_BASE(rhport);
|
||||
dev->DCTL |= USB_OTG_DCTL_SDIS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user