File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,6 @@ static void tusb_otg_core_init(tusb_core_t* core)
388
388
set_io_af_mode ( OTG_HS_ULPI_CK );
389
389
390
390
NVIC_SetPriority (OTG_HS_IRQn , 0 );
391
- NVIC_EnableIRQ (OTG_HS_IRQn );
392
391
//NVIC_DisableIRQ(OTG_HS_IRQn);
393
392
394
393
NVIC_SetVector (OTG_HS_IRQn , (uint32_t )& OTG_HS_IRQHandler );
@@ -432,8 +431,10 @@ static void tusb_otg_core_init(tusb_core_t* core)
432
431
// only HS core has DMA feature
433
432
USBx -> GAHBCFG |= USB_OTG_GAHBCFG_HBSTLEN_2 ;
434
433
USBx -> GAHBCFG |= USB_OTG_GAHBCFG_DMAEN ;
434
+ #ifdef CORE_CM7
435
435
SCB_CleanInvalidateDCache ();
436
436
SCB_DisableDCache ();
437
+ #endif
437
438
}
438
439
#endif
439
440
}
@@ -658,6 +659,7 @@ void tusb_open_host(tusb_host_t* host)
658
659
USBx -> GUSBCFG |= USB_OTG_GUSBCFG_FHMOD ;
659
660
memset (& host -> state , 0 , (sizeof (tusb_host_t ) - (uint32_t ) (& ((tusb_host_t * )0 )-> state ) ) );
660
661
tusb_init_otg_host (host );
662
+ NVIC_EnableIRQ (OTG_HS_IRQn );
661
663
}
662
664
663
665
You can’t perform that action at this time.
0 commit comments