cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F1xx_HAL_PCD -- wrong EP_IN/EP_OUT

RBaly
Associate

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;

 }

0 REPLIES 0