openwch/ch32v307

UBS HS FLAGS

Xelus22 opened this issue · 1 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 :)