From b7167bf2aff1a7c9cf223dc2a1d2e401f599d5d8 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Sun, 11 Sep 2016 12:12:41 +0200 Subject: lld: add mask with epdir Signed-off-by: Amir Hammad --- src/usbh_lld_stm32f4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usbh_lld_stm32f4.c b/src/usbh_lld_stm32f4.c index 26ad6bd..0654d28 100644 --- a/src/usbh_lld_stm32f4.c +++ b/src/usbh_lld_stm32f4.c @@ -178,7 +178,7 @@ static void stm32f4_usbh_port_channel_setup( OTG_HCCHAR_MCNT_1 | (OTG_HCCHAR_EPTYP_MASK & (eptyp)) | (speed) | - (epdir) | + (OTG_HCCHAR_EPDIR_MASK & epdir) | (OTG_HCCHAR_EPNUM_MASK & (epnum << 11)) | (OTG_HCCHAR_MPSIZ_MASK & max_packet_size); -- cgit