zephyr/subsys/usb
Barry Solomon 6118ca2785 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: Barry Solomon <barry.solomon@dexcom.com>
2019-12-20 19:46:16 -05:00
..
class usb: make usb descriptor power options configurable 2019-12-20 19:46:16 -05:00
bos.c usb: Remove extra logs 2019-10-01 09:16:42 -04:00
CMakeLists.txt cmake: Fix usb include directory organization 2019-10-01 19:22:02 +02:00
Kconfig usb: make usb descriptor power options configurable 2019-12-20 19:46:16 -05:00
os_desc.c usb: Cleanup for multiplied defines 2019-12-09 12:48:13 -05:00
os_desc.h usb: osdesc: Use definition for string descriptor index 2018-07-12 23:10:22 -04:00
usb_descriptor.c usb: make usb descriptor power options configurable 2019-12-20 19:46:16 -05:00
usb_descriptor.h usb: Fix automatic assignment endpoints 2019-05-06 11:14:24 +02:00
usb_device.c usb: initialize USB descriptor earlier 2019-12-19 13:08:55 +01:00