Skip to main content
RBaly
Visitor II
June 15, 2019
Question

STM32F1xx_HAL_PCD -- wrong EP_IN/EP_OUT

  • June 15, 2019
  • 0 replies
  • 340 views

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;

 }

This topic has been closed for replies.