Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
13f68fbc
Unverified
Commit
13f68fbc
authored
Jun 26, 2022
by
Maximilian Gerhardt
Committed by
GitHub
Jun 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make TinyUSB linking work automatically with PIO (#658)
parent
3071b3f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tools/platformio-build.py
tools/platformio-build.py
+3
-0
No files found.
tools/platformio-build.py
View file @
13f68fbc
...
...
@@ -159,6 +159,9 @@ def configure_usb_flags(cpp_defines):
if
"USE_TINYUSB"
in
cpp_defines
:
env
.
Append
(
CPPPATH
=
[
os
.
path
.
join
(
FRAMEWORK_DIR
,
"libraries"
,
"Adafruit_TinyUSB_Arduino"
,
"src"
,
"arduino"
)])
# automatically build with lib_archive = no to make weak linking work, needed for TinyUSB
env_section
=
"env:"
+
env
[
"PIOENV"
]
platform
.
config
.
set
(
env_section
,
"lib_archive"
,
False
)
elif
"PIO_FRAMEWORK_ARDUINO_NO_USB"
in
cpp_defines
:
env
.
Append
(
CPPPATH
=
[
os
.
path
.
join
(
FRAMEWORK_DIR
,
"tools"
,
"libpico"
)],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment