Skip to content
Commit 6118ca27 authored by Barry Solomon's avatar Barry Solomon Committed by Anas Nashif
Browse files

usb: make usb descriptor power options configurable



Add two new kconfig options USB_SELF_POWERED and USB_MAX_POWER.
These can be set by the user to change the USB configuration descriptor.
USB_MAX_POWER can be set to any value between 0 and 250, but practically
should be 50 or 250. These values are half the ammount of mA that the
device will tell the host that it needs.
USB_SELF_POWERED sets the 7th bit in bmAttributes of the USB config
descriptor. Should be set to y if the device has its own power source
other than USB.

Signed-off-by: default avatarBarry Solomon <barry.solomon@dexcom.com>
parent 86dc23a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment