Skip to main content
oneshot.triplekill
Associate
June 1, 2022
Question

[Cube OTG USB] [Minor issue]incorrectly @param description on HAL_StatusTypeDef USB_FlushTxFifo(USB_OTG_GlobalTypeDef *USBx, uint32_t num)

  • June 1, 2022
  • 1 reply
  • 939 views

The original param description:

 * @param num FIFO number

 *    This parameter can be a value from 1 to 15

      15 means Flush all Tx FIFOs

According to stm32h7 reference manual, it should be:

 * @param num FIFO number

 *    This parameter can be a value from 1 to 15

      16 means Flush all Tx FIFOs

:beaming_face_with_smiling_eyes:

This topic has been closed for replies.

1 reply

Sara BEN HADJ YAHYA
Technical Moderator
June 2, 2022

Hello @oneshot.triplekill@qq.com​ ,

Thanks for your feedback,

This is not a CubeMX issue, the stm32h7xx_ll_usb.c file is copied and not generated by MX. I see your point, there is indeed a mismatch between the Reference manual and the usb driver file.

I am adding @Amel NASRI​  to the loop to further check this issue.

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
oneshot.triplekill
Associate
June 2, 2022

ahaha, thanks .:beaming_face_with_smiling_eyes: