diff options
| author | Okarss <[email protected]> | 2024-06-14 18:39:48 +0300 |
|---|---|---|
| committer | Okarss <[email protected]> | 2024-06-14 18:39:48 +0300 |
| commit | fb6a6acbff81a98e37b86a0dc3370d4076bb356c (patch) | |
| tree | b3defee87e40dd3877590463040a055a3fe32da9 | |
| parent | 00062ddb0cda4e46750c7df09aa31026cc03b5ee (diff) | |
Revert the DSB because of RISC-V
| -rw-r--r-- | src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c index b5b89c577..4e31c99fa 100644 --- a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c +++ b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c @@ -216,19 +216,19 @@ void dcd_init(uint8_t rhport) * Here, the RM is followed. */ for (volatile uint32_t i = 0; i < 200; i++) { // should be a few us - __DSB(); + asm("NOP"); } // Perform USB peripheral reset USB->CNTR = USB_CNTR_FRES | USB_CNTR_PDWN; for (volatile uint32_t i = 0; i < 200; i++) { // should be a few us - __DSB(); + asm("NOP"); } USB->CNTR &= ~USB_CNTR_PDWN; // Wait startup time, for F042 and F070, this is <= 1 us. for (volatile uint32_t i = 0; i < 200; i++) { // should be a few us - __DSB(); + asm("NOP"); } USB->CNTR = 0; // Enable USB |
