Hi there,
Is there any way to check if the USB interrupt was run? Some kind of counter? Is USB_COUNT_SOF directly correlated with the usb interrupt being called?
The reason I want to check this is that I run some highly time-dependent code that shouldn't really be interrupted. If it is, then I want to abort and try again (rather than waiting forever for something to happen and timing out).
It's possible I can do the timing-dependent stuff within 25 cycles (as mentioned in usbdrv.h -- although I am running at 20Mhz so have more than that) and switch off interrupts for that period, but I want to constantly run that code and not have to worry about switching on interrupts to let the USB stuff run its course.
Cheers,
-Tom