Skip to content

Commit

Permalink
[usb] reduce USB MaxPower to 100 mA (#579)
Browse files Browse the repository at this point in the history
The USB transport currently defines MaxPower as 500mA. With some
bus-powered USB HUBs, the host might refuse enumeration due to limited
available power.

This commit reduce MaxPower to 100 mA, which corresponds to the maximum
current allowed to be used without enumeration. According to the NRF52
datasheets, this is still overly conservative, even summing the maximum
CPU and peripherals (including radio) consumption.
  • Loading branch information
aurel32 authored Jun 2, 2023
1 parent c4a77dd commit 6ee5e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/NordicSemiconductor/config/app_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
#endif

#ifndef APP_USBD_CONFIG_MAX_POWER
#define APP_USBD_CONFIG_MAX_POWER 500
#define APP_USBD_CONFIG_MAX_POWER 100
#endif

#ifndef APP_USBD_STRING_ID_PRODUCT
Expand Down

0 comments on commit 6ee5e3a

Please sign in to comment.