Skip to content

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented May 29, 2020

Contribution description

usbdev_stm32.h will pull in usb.h which causes an error for each file that includes periph_cpu_common.h but does not set USB_H_USER_IS_RIOT_INTERNAL.

Turns out this include is not needed, so just drop it.

This will make working with (currently out-of-tree) stm32 boards that use CDC ACM for stdio possible.

Testing procedure

Enable stdio_cdc_acm on any stm32 board

Issues/PRs references

split off #14122, #12778 & #13382

`usbdev_stm32.h` will pull in `usb.h` which causes an error if
`USB_H_USER_IS_RIOT_INTERNAL` is not set.

Turns out this include is not needed, so just drop it.
@benpicco benpicco added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: USB Area: Universal Serial Bus labels May 29, 2020
@benpicco benpicco requested review from bergzand and chrysn May 29, 2020 15:44
@leandrolanzieri leandrolanzieri self-assigned this Jun 2, 2020
@fjmolinas
Copy link
Contributor

If murdock is happy this change should be Ok, I still had a look at the different configurations to see they where not needed there. Maybe @bergzand can give ti a quick test?

@bergzand
Copy link
Member

bergzand commented Jun 2, 2020

With the nucleo-f446ze as target, the binary generated with this PR matches the binary generated without this PR.

Copy link
Member

@bergzand bergzand left a comment

Choose a reason for hiding this comment

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

Ack, thanks for the cleanup

@bergzand bergzand merged commit bdeec68 into RIOT-OS:master Jun 2, 2020
@benpicco benpicco deleted the cpu/stm32_usb_includes branch June 2, 2020 10:29
@miri64 miri64 added this to the Release 2020.07 milestone Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: USB Area: Universal Serial Bus CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants