usb/dwc: Corrected how packets are written and loaded to the DWC2 FIFOs on the H7

This commit is contained in:
dragonmux
2024-04-17 18:48:31 +01:00
committed by Piotr Esden-Tempski
parent 7da573f9eb
commit 714e7b1c91
2 changed files with 35 additions and 16 deletions

View File

@@ -86,7 +86,11 @@
#define OTG_PCGCCTL 0xE00
/* Data FIFO */
#if defined(STM32H7)
#define OTG_FIFO(x) (0x1000U * (x + 1U))
#else
#define OTG_FIFO(x) (((x) + 1U) << 12U)
#endif
/* Global CSRs */