From f6784ed1d7e4dfcaa9e38f41244e915b7be728fb Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Wed, 3 Apr 2019 10:12:53 +0300 Subject: [PATCH] usb: usb_dc_stm32: Add missing function Add missing API functions which will be tested with harness tests. Signed-off-by: Andrei Emeltchenko --- drivers/usb/device/usb_dc_stm32.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/device/usb_dc_stm32.c b/drivers/usb/device/usb_dc_stm32.c index e6f0d3f94f0..4208b4c95dd 100644 --- a/drivers/usb/device/usb_dc_stm32.c +++ b/drivers/usb/device/usb_dc_stm32.c @@ -854,6 +854,17 @@ int usb_dc_ep_read(const u8_t ep, u8_t *const data, const u32_t max_data_len, return 0; } +int usb_dc_ep_halt(const u8_t ep) +{ + return usb_dc_ep_set_stall(ep); +} + +int usb_dc_ep_flush(const u8_t ep) +{ + LOG_ERR("Not implemented"); + + return 0; +} int usb_dc_ep_mps(const u8_t ep) {