You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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