add hint/question with ISB

This commit is contained in:
hathach 2021-11-04 12:42:28 +07:00
parent 4a8ac71711
commit 6cfdf697eb

View File

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