Skip to content

Fix PlatformIO build #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2021
Merged

Fix PlatformIO build #395

merged 1 commit into from
Dec 29, 2021

Conversation

maxgerhardt
Copy link
Contributor

@maxgerhardt maxgerhardt commented Dec 29, 2021

Defines USBD_MAX_POWER_MA as a static 250mA, which is correct for all the boards supported in platform-raspberrypi (aka, RaspberryPi Pico and Nano RP2040 Connect) in accordance to the generator code.

Fixes previous build failure if attempting to use the latest core.

In file included from C:\Users\Max\.platformio\packages\framework-arduinopico/pico-sdk/lib/tinyusb/src/tusb.h:65,
                 from C:\Users\Max\.platformio\packages\framework-arduinopico\cores\rp2040\RP2040USB.cpp:28:
C:\Users\Max\.platformio\packages\framework-arduinopico\cores\rp2040\RP2040USB.cpp: In function 'const uint8_t* tud_descriptor_configuration_cb(uint8_t)':
C:\Users\Max\.platformio\packages\framework-arduinopico\cores\rp2040\RP2040USB.cpp:209:118: error: 'USBD_MAX_POWER_MA' was not declared in this scope
  209 |             TUD_CONFIG_DESCRIPTOR(1, interface_count, USBD_STR_0, usbd_desc_len, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, USBD_MAX_POWER_MA)
      |                                                                                                                      ^~~~~~~~~~~~~~~~~

Defines USBD_MAX_POWER_MA as a static 250mA, which is correct for all the boards supported in platform-raspberrypi (aka, RaspberryPi Pico and Nano RP2040 Connect)
Copy link
Owner

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@earlephilhower earlephilhower merged commit 6591da9 into earlephilhower:master Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants