STM32 OTGFS Host: If OTGFS_HCCHAR_ODDFRM is not goint to be set, then it should be cleared
This commit is contained in:
parent
75e61f4b69
commit
d374d22738
@ -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…
Reference in New Issue
Block a user