2016-08-18 11:54 PM
Hi,
i created a USB-CustomHID project use CubeMx, but i can't find any way to change the size of Endpoint1(not Endpoint 0). Are there any ideas for my problem? Thanks.2016-09-20 08:17 AM
Dear user,
This parameter is fixed within the HAL driver in the HAL_PCD_Init function - see code extract below:
/* Init endpoints structures */
for (i = 0U; i < 15U; i++) { /* Init ep structure */ hpcd->IN_ep[i].is_in = 1U; hpcd->IN_ep[i].num = i; hpcd->IN_ep[i].tx_fifo_num = i; /* Control until ep is activated */ hpcd->IN_ep[i].type = EP_TYPE_CTRL; hpcd->IN_ep[i].maxpacket = 0U; hpcd->IN_ep[i].xfer_buff = 0U; hpcd->IN_ep[i].xfer_len = 0U; }