summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-09-11 12:12:41 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-09-11 13:31:48 +0200
commitb7167bf2aff1a7c9cf223dc2a1d2e401f599d5d8 (patch)
tree5e310e07bdfb28e36d663ccdffbe65f78081187e /src
parent4415d960c3d1e52573db02be4aee6e22d22809cf (diff)
downloadsecure-hid-b7167bf2aff1a7c9cf223dc2a1d2e401f599d5d8.tar.gz
secure-hid-b7167bf2aff1a7c9cf223dc2a1d2e401f599d5d8.tar.bz2
secure-hid-b7167bf2aff1a7c9cf223dc2a1d2e401f599d5d8.zip
lld: add mask with epdir
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/usbh_lld_stm32f4.c2
1 files changed, 1 insertions, 1 deletions
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);