The latest development version of this page may be more current than this released 2.7.5 version.

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 subsys/usb/Kconfig:120

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:49

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.)