Skip to content
Commit 3eec2a56 authored by Johann Fischer's avatar Johann Fischer Committed by Carles Cufí
Browse files

usb: device: get rid of the partial initialization called by SYS_INIT



Part of the initialization is done in the static usb_device_init()
function called by SYS_INIT(). We can move part of it, which initialize
the descriptor and calls usb_set_config(), to usb_enable(). This allow
some usb_get_device_descriptor() dependencies called at application
desired point.

Also make sure that usb_fix_descriptor() is called only once.

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