About USB FIFO settings #999
Unanswered
arilink-tech
asked this question in
Q&A
Replies: 1 comment
-
|
yes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Previously, when using other USB libraries, I found that they all allocated the USB FIFO during USB initialization, but no relevant content was found on TinyUSB. Is this automatically allocated inside TinyUSB?
like this:
/* USB_OTG_HS init function /
MX_USB_OTG_FS_PCD_Init();
/ USER CODE BEGIN USB_Device_Init_PreTreatment_1 /
/ Set Rx FIFO /
HAL_PCDEx_SetRxFiFo(&hpcd_USB_OTG_FS, 0x200);
/ Set Tx FIFO 0 /
HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 0, 0x10);
/ Set Tx FIFO 2 /
HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 2, 0x10);
/ Set Tx FIFO 3 /
HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 3, 0x80);
/ Set Tx FIFO 4 */
HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 4, 0x20);
Beta Was this translation helpful? Give feedback.
All reactions