rp2040: include hardware/sync.h explicitly #1948
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
remove_volatile_cast()
not available in src/portable/raspberrypi/rp2040/dcd_rp2040.c #1944.tinyusb/src/portable/raspberrypi/rp2040/dcd_rp2040.c
Line 300 in 990fb6a
dcd_rp2040.c
usesremove_volatile_cast()
, which is defined in thepico-sdk
inhardware/sync.h
. Butdcd_rp2040.c
does not#include hardware/sync.h
. When not using thepico-sdk
build environment andOSAL_PICO
,remove_volatile_cast()
will not be defined. This PR adds an explicit#include
to fix that.