synopsys-usb-otg icon indicating copy to clipboard operation
synopsys-usb-otg copied to clipboard

UsbBus::poll disables all interrupts

Open dimpolo opened this issue 2 years ago • 0 comments

I didn't see this documented and was quite surprised by this.

Is the reason simply because target::interrupt::Mutex requires a CriticalSection or are there hardware reasons for disableing interrupts? Could the Mutex be replaced by a RefCell? Edit: UsbBus: Sync ... so no :(

(My use case is an ADC ISR that must not be disabled)

dimpolo avatar Mar 16 '22 17:03 dimpolo