Skip to content

Commit

Permalink
usb: usb_dc_stm32: Add missing function
Browse files Browse the repository at this point in the history
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 18, 2019
1 parent f350c27 commit f6784ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/usb/device/usb_dc_stm32.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit f6784ed

Please sign in to comment.