Fix DSTS_FNSOF in dwc2.c
This commit is contained in:
@@ -1276,7 +1276,7 @@ void dcd_int_handler(uint8_t rhport)
|
|||||||
|
|
||||||
if (_sof_en)
|
if (_sof_en)
|
||||||
{
|
{
|
||||||
uint32_t frame = (dwc2->dsts & (USB_OTG_DSTS_FNSOF)) >> 8;
|
uint32_t frame = (dwc2->dsts & (DSTS_FNSOF)) >> 8;
|
||||||
dcd_event_sof(rhport, frame, true);
|
dcd_event_sof(rhport, frame, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user