usb: usb_dc_stm32: Add placeholders for missing API

Fix build error when executing sanitycheck on stm32 devices.

Command to execute tests:
sanitycheck --device-testing --device-serial /dev/ttyACM0 -p <board>
    -t usb

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2019-03-25 12:49:43 +02:00 committed by Anas Nashif
commit 06ef0ca0fc

View file

@ -855,6 +855,20 @@ int usb_dc_ep_mps(const u8_t ep)
return ep_state->ep_mps;
}
int usb_dc_detach(void)
{
LOG_ERR("Not implemented");
return 0;
}
int usb_dc_reset(void)
{
LOG_ERR("Not implemented");
return 0;
}
/* Callbacks from the STM32 Cube HAL code */
void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd)