zephyr/subsys/usb/class
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
..
hid usb: hid: Make it possible to specify HID debug level 2019-12-20 19:30:22 -05:00
netusb usb: api: Add user device status callback 2019-12-19 13:08:55 +01:00
bluetooth.c Bluetooth: hci_raw: Add support for specifying buffer headroom 2019-11-20 19:29:06 +01:00
cdc_acm.c usb: Rename defines to match present naming convention 2019-12-09 12:48:13 -05:00
CMakeLists.txt cmake: Fix usb include directory organization 2019-10-01 19:22:02 +02:00
Kconfig kconfig: Remove redundant 'default n' and 'prompt' properties 2019-12-09 16:14:50 +01:00
Kconfig.template.composite_device_number kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
loopback.c usb: loopback: use stack's request buffer for control requests 2019-08-26 15:06:08 +02:00
mass_storage.c coccinelle: standardize k_thread create/define calls with integer timeouts 2019-10-09 08:38:10 -04:00
usb_dfu.c usb: make usb descriptor power options configurable 2019-12-20 19:46:16 -05:00