Skip to content

Commit fb6a6ac

Browse files
committed
Revert the DSB because of RISC-V
1 parent 00062dd commit fb6a6ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -216,19 +216,19 @@ void dcd_init(uint8_t rhport)
216216
* Here, the RM is followed. */
217217

218218
for (volatile uint32_t i = 0; i < 200; i++) { // should be a few us
219-
__DSB();
219+
asm("NOP");
220220
}
221221
// Perform USB peripheral reset
222222
USB->CNTR = USB_CNTR_FRES | USB_CNTR_PDWN;
223223
for (volatile uint32_t i = 0; i < 200; i++) { // should be a few us
224-
__DSB();
224+
asm("NOP");
225225
}
226226

227227
USB->CNTR &= ~USB_CNTR_PDWN;
228228

229229
// Wait startup time, for F042 and F070, this is <= 1 us.
230230
for (volatile uint32_t i = 0; i < 200; i++) { // should be a few us
231-
__DSB();
231+
asm("NOP");
232232
}
233233
USB->CNTR = 0; // Enable USB
234234

0 commit comments

Comments
 (0)