diff --git a/arch/arm/src/stm32/stm32_otgfshost.c b/arch/arm/src/stm32/stm32_otgfshost.c index 8f674953ba..76aa8f73e9 100644 --- a/arch/arm/src/stm32/stm32_otgfshost.c +++ b/arch/arm/src/stm32/stm32_otgfshost.c @@ -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 diff --git a/arch/arm/src/stm32/stm32_otghshost.c b/arch/arm/src/stm32/stm32_otghshost.c index 62ff94bc85..8353a43045 100644 --- a/arch/arm/src/stm32/stm32_otghshost.c +++ b/arch/arm/src/stm32/stm32_otghshost.c @@ -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 diff --git a/arch/arm/src/stm32f7/stm32_otghost.c b/arch/arm/src/stm32f7/stm32_otghost.c index 8fc332ba77..e90ae1860c 100644 --- a/arch/arm/src/stm32f7/stm32_otghost.c +++ b/arch/arm/src/stm32f7/stm32_otghost.c @@ -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 diff --git a/arch/arm/src/stm32h7/stm32_otghost.c b/arch/arm/src/stm32h7/stm32_otghost.c index 97c8b9e67d..55ec2626b8 100644 --- a/arch/arm/src/stm32h7/stm32_otghost.c +++ b/arch/arm/src/stm32h7/stm32_otghost.c @@ -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 diff --git a/arch/arm/src/stm32l4/stm32l4_otgfshost.c b/arch/arm/src/stm32l4/stm32l4_otgfshost.c index 8f8c4e82bb..25fb207186 100644 --- a/arch/arm/src/stm32l4/stm32l4_otgfshost.c +++ b/arch/arm/src/stm32l4/stm32l4_otgfshost.c @@ -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