openwch / ch32v307

Including the SDK、HDK、Datasheet of RISC-V MCU CH32V307 and other relevant development materials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UBS HS FLAGS

Xelus22 opened this issue · comments

Hi WCH team,

image

I see the documentation says that the RB_UIF_HST_SOF flag is set when a SOF interrupt is sent as the host.

Is there a register for the USB HS device mode that gets a SOF flag? I require a SOF flag due to critical timing.

For anyone seeing this,

you need to check this flag
image

image
then use this token to check for SOF

slightly slower than a proper flag... but at this price cant complain :)