mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
synopsys/dwc2: fix SOF interrupt handling
SOF is not a flag of the GOTGINT register but of the GINTSTS register. Therefore the flag must be written in the GINTSTS register instead of the GOTGINT register to clear the interrupt.
This commit is contained in:
parent
65ac519715
commit
4c510c12b1
@ -1288,7 +1288,7 @@ void dcd_int_handler(uint8_t rhport)
|
||||
|
||||
if(int_status & GINTSTS_SOF)
|
||||
{
|
||||
dwc2->gotgint = GINTSTS_SOF;
|
||||
dwc2->gintsts = GINTSTS_SOF;
|
||||
|
||||
if (_sof_en)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user