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>
This commit is contained in:
Andrei Emeltchenko 2019-04-03 10:12:53 +03:00 committed by Anas Nashif
commit f6784ed1d7

View file

@ -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)
{