Skip to content
Commit 22d574cb authored by Johann Fischer's avatar Johann Fischer Committed by Fabio Baltieri
Browse files

usb: device_next: tweak USB device notification support



Since no threads are waiting for the FIFO and we do not need any k_fifo
features, we can just use slist.

Some notifications (caused by interrupts), especially "VBUS ready", can
be triggered very quickly right after UDC initialization if the USB
controller is already connected. Depending on the global thread
configuration, messsage publishing work can be executed before the
context is marked as initialized. Use delayed work to reschedule
publishing when the context is not initialized.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent d545c1f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment