Merge pull request #2672 from tinic/master

Add support for STM32U535xx/STM32U545xx
This commit is contained in:
Ha Thach
2024-06-15 10:56:24 +07:00
committed by GitHub
12 changed files with 220 additions and 17 deletions

View File

@@ -232,7 +232,7 @@ void dcd_init(uint8_t rhport)
}
USB->CNTR = 0; // Enable USB
#if !defined(STM32G0) && !defined(STM32H5) // BTABLE register does not exist any more on STM32G0, it is fixed to USB SRAM base address
#if !defined(STM32G0) && !defined(STM32H5) && !defined(STM32U5) // BTABLE register does not exist any more on STM32G0, it is fixed to USB SRAM base address
USB->BTABLE = DCD_STM32_BTABLE_BASE;
#endif
USB->ISTR = 0; // Clear pending interrupts