mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 18:28:25 +00:00
STM32 OTF FS/HS Host. Fix two cases where stm32_putreg parameters were backward. Noted by Hang Xu
This commit is contained in:
parent
0e86ee747a
commit
74c7e3d0bf
2 changed files with 4 additions and 4 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue