STM32,F7,H7,L4 OTG FS/HS: Fix constant using in comparison to determine endpoint is interrupt type.
This commit is contained in:
parent
ac46dbbffd
commit
af9b70ca5d
@ -1922,7 +1922,7 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx,
|
||||
|
||||
/* Wait a bit before retrying after a NAK. */
|
||||
|
||||
if (chan->eptype == OTGFS_HCCHAR_EPTYP_INTR)
|
||||
if (chan->eptype == OTGFS_EPTYPE_INTR)
|
||||
{
|
||||
/* For interrupt (and isochronous) endpoints, the
|
||||
* polling rate is determined by the bInterval field
|
||||
|
@ -1927,7 +1927,7 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx,
|
||||
|
||||
/* Wait a bit before retrying after a NAK. */
|
||||
|
||||
if (chan->eptype == OTGFS_HCCHAR_EPTYP_INTR)
|
||||
if (chan->eptype == OTGFS_EPTYPE_INTR)
|
||||
{
|
||||
/* For interrupt (and isochronous) endpoints, the
|
||||
* polling rate is determined by the bInterval field
|
||||
|
@ -1921,7 +1921,7 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx,
|
||||
|
||||
/* Wait a bit before retrying after a NAK. */
|
||||
|
||||
if (chan->eptype == OTGFS_HCCHAR_EPTYP_INTR)
|
||||
if (chan->eptype == OTGFS_EPTYPE_INTR)
|
||||
{
|
||||
/* For interrupt (and isochronous) endpoints, the
|
||||
* polling rate is determined by the bInterval field
|
||||
|
@ -1926,7 +1926,7 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx,
|
||||
|
||||
/* Wait a bit before retrying after a NAK. */
|
||||
|
||||
if (chan->eptype == OTG_HCCHAR_EPTYP_INTR)
|
||||
if (chan->eptype == OTG_EPTYPE_INTR)
|
||||
{
|
||||
/* For interrupt (and isochronous) endpoints, the
|
||||
* polling rate is determined by the bInterval field
|
||||
|
@ -1925,7 +1925,7 @@ static ssize_t stm32l4_in_transfer(FAR struct stm32l4_usbhost_s *priv,
|
||||
|
||||
/* Wait a bit before retrying after a NAK. */
|
||||
|
||||
if (chan->eptype == OTGFS_HCCHAR_EPTYP_INTR)
|
||||
if (chan->eptype == OTGFS_EPTYPE_INTR)
|
||||
{
|
||||
/* For interrupt (and isochronous) endpoints, the
|
||||
* polling rate is determined by the bInterval field
|
||||
|
Loading…
Reference in New Issue
Block a user