2019-06-15 04:26 AM
HAL v1.7.0, stm32f1xx_hal_pcd.c, line 199
During OUT EP init we have IN EP
Should I fix it on my own?
for (index = 0U; index < 15U ; index++)
{
hpcd->OUT_ep[index].is_in = 0U;
hpcd->OUT_ep[index].num = index;
hpcd->IN_ep[index].tx_fifo_num = index;
/* Control until ep is activated */
hpcd->OUT_ep[index].type = EP_TYPE_CTRL;
hpcd->OUT_ep[index].maxpacket = 0U;
hpcd->OUT_ep[index].xfer_buff = 0U;
hpcd->OUT_ep[index].xfer_len = 0U;
}