mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
STM32 OTF FS/HS Host. Fix two cases where stm32_putreg parameters were backward. Noted by Hang Xu
This commit is contained in:
@@ -4839,7 +4839,7 @@ static void stm32_flush_txfifos(uint32_t txfnum)
|
||||
/* Initiate the TX FIFO flush operation */
|
||||
|
||||
regval = OTGFS_GRSTCTL_TXFFLSH | txfnum;
|
||||
stm32_putreg(regval, STM32_OTGFS_GRSTCTL);
|
||||
stm32_putreg(STM32_OTGFS_GRSTCTL, regval);
|
||||
|
||||
/* Wait for the FLUSH to complete */
|
||||
|
||||
@@ -4878,7 +4878,7 @@ static void stm32_flush_rxfifo(void)
|
||||
|
||||
/* Initiate the RX FIFO flush operation */
|
||||
|
||||
stm32_putreg(OTGFS_GRSTCTL_RXFFLSH, STM32_OTGFS_GRSTCTL);
|
||||
stm32_putreg(STM32_OTGFS_GRSTCTL, OTGFS_GRSTCTL_RXFFLSH);
|
||||
|
||||
/* Wait for the FLUSH to complete */
|
||||
|
||||
|
||||
@@ -4839,7 +4839,7 @@ static void stm32_flush_txfifos(uint32_t txfnum)
|
||||
/* Initiate the TX FIFO flush operation */
|
||||
|
||||
regval = OTGHS_GRSTCTL_TXFFLSH | txfnum;
|
||||
stm32_putreg(regval, STM32_OTGHS_GRSTCTL);
|
||||
stm32_putreg(STM32_OTGHS_GRSTCTL, regval);
|
||||
|
||||
/* Wait for the FLUSH to complete */
|
||||
|
||||
@@ -4878,7 +4878,7 @@ static void stm32_flush_rxfifo(void)
|
||||
|
||||
/* Initiate the RX FIFO flush operation */
|
||||
|
||||
stm32_putreg(OTGHS_GRSTCTL_RXFFLSH, STM32_OTGHS_GRSTCTL);
|
||||
stm32_putreg(STM32_OTGHS_GRSTCTL, OTGHS_GRSTCTL_RXFFLSH);
|
||||
|
||||
/* Wait for the FLUSH to complete */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user