summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-11-04 12:42:28 +0700
committerhathach <[email protected]>2021-11-04 12:42:28 +0700
commit6cfdf697eba5b2af6ea383c2bed52557d7610893 (patch)
tree35601e9921f5ab33933f24d164ee7a4e73151d7a
parent4a8ac71711a70ccb122fdb59d731dc01cfed1464 (diff)
add hint/question with ISB
-rw-r--r--src/portable/synopsys/dwc2/dwc2_bcm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/synopsys/dwc2/dwc2_bcm.h b/src/portable/synopsys/dwc2/dwc2_bcm.h
index 0263d19ba..fcec0b0d2 100644
--- a/src/portable/synopsys/dwc2/dwc2_bcm.h
+++ b/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)