zephyr/include/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: api: Add user device status callback 2019-12-19 13:08:55 +01:00
bos.h usb: enforce byte alignment on USB records 2019-06-17 16:41:43 -04:00
usb_common.h usb: make usb descriptor power options configurable 2019-12-20 19:46:16 -05:00
usb_device.h usb: api: Add user device status callback 2019-12-19 13:08:55 +01:00
usbstruct.h usb: Cleanup for multiplied defines 2019-12-09 12:48:13 -05:00