Skip to content
Permalink
Browse files

usb: usb_dc_stm32: Add missing function

Add missing API functions which will be tested with harness tests.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information...
finikorg authored and nashif committed Apr 3, 2019
1 parent f350c27 commit f6784ed1d7e4dfcaa9e38f41244e915b7be728fb
Showing with 11 additions and 0 deletions.
  1. +11 −0 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)
{

0 comments on commit f6784ed

Please sign in to comment.
You can’t perform that action at this time.