Parcourir la source

add hint/question with ISB

hathach il y a 4 ans
Parent
commit
6cfdf697eb
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/portable/synopsys/dwc2/dwc2_bcm.h

+ 2 - 2
src/portable/synopsys/dwc2/dwc2_bcm.h

@@ -47,7 +47,7 @@ static inline void dwc2_dcd_int_enable(uint8_t rhport)
 {
   (void) rhport;
   BP_EnableIRQ(USB_IRQn);
-  __asm__ volatile("isb");
+  __asm__ volatile("isb"); // needed if TIMER1 IRQ is not enabled !?
 }
 
 TU_ATTR_ALWAYS_INLINE
@@ -55,7 +55,7 @@ static inline void dwc2_dcd_int_disable (uint8_t rhport)
 {
   (void) rhport;
   BP_DisableIRQ(USB_IRQn);
-  __asm__ volatile("isb");
+  __asm__ volatile("isb"); // needed if TIMER1 IRQ is not enabled !?
 }
 
 static inline void dwc2_remote_wakeup_delay(void)