How to modify the size of Endpoint1 by CubeMx
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-08-18 11:54 PM
Posted on August 19, 2016 at 08:54
Are there any ideas for my problem? Thanks.
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).
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-09-20 8:17 AM
Posted on September 20, 2016 at 17:17
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; }