mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
STM32 OTGFS Host: If OTGFS_HCCHAR_ODDFRM is not goint to be set, then it should be cleared
This commit is contained in:
parent
6492446ac8
commit
a61c58d50a
1 changed files with 5 additions and 1 deletions
|
|
@ -69,7 +69,7 @@
|
|||
#if defined(CONFIG_USBHOST) && (defined(CONFIG_STM32_OTGFS) || defined(CONFIG_STM32_OTGFS2))
|
||||
|
||||
/*******************************************************************************
|
||||
* Definitions
|
||||
* Pre-processor Definitions
|
||||
*******************************************************************************/
|
||||
/* Configuration ***************************************************************/
|
||||
/*
|
||||
|
|
@ -1162,6 +1162,10 @@ static void stm32_transfer_start(FAR struct stm32_usbhost_s *priv, int chidx)
|
|||
{
|
||||
regval |= OTGFS_HCCHAR_ODDFRM;
|
||||
}
|
||||
else
|
||||
{
|
||||
regval &= ~OTGFS_HCCHAR_ODDFRM;
|
||||
}
|
||||
|
||||
regval &= ~OTGFS_HCCHAR_CHDIS;
|
||||
regval |= OTGFS_HCCHAR_CHENA;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue