usb/dwc: Corrected how packets are written and loaded to the DWC2 FIFOs on the H7
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
7da573f9eb
commit
714e7b1c91
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user