We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7fc9f commit d3f7a0aCopy full SHA for d3f7a0a
tools/platformio/platformio-build.py
@@ -109,6 +109,18 @@ def process_usb_configuration(cpp_defines):
109
]
110
)
111
112
+ if any(
113
+ d in env.Flatten(env.get("CPPDEFINES", []))
114
+ for d in (
115
+ "USBD_USE_CDC",
116
+ "USBD_USE_HID_COMPOSITE",
117
+ )
118
+ ):
119
+ env.BuildSources(
120
+ join("$BUILD_DIR", "USBDevice"),
121
+ join(FRAMEWORK_DIR, "libraries", "USBDevice")
122
123
+
124
if any(f in env["CPPDEFINES"] for f in ("USBD_USE_CDC", "USBD_USE_HID_COMPOSITE")):
125
env.Append(CPPDEFINES=["HAL_PCD_MODULE_ENABLED"])
126
0 commit comments