CONFIG_USB_MAX_POWER

Set bMaxPower value

Type: int

Help

Set bMaxPower value in the Standard Configuration Descriptor, the result is 2mA times the value provided.

Direct dependencies

USB_DEVICE_STACK

(Includes any dependencies from ifs and menus.)

Default

  • 50

Kconfig definition

At <Zephyr>/subsys/usb/Kconfig:104

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:42

Menu path: (Top) → Sub Systems and OS Services → USB Device Support

config USB_MAX_POWER
    int "Set bMaxPower value"
    range 0 250
    default 50
    depends on USB_DEVICE_STACK
    help
      Set bMaxPower value in the Standard Configuration Descriptor,
      the result is 2mA times the value provided.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)