-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4149 from geeksville/pr-fixserial
Make serial port on wio-sdk-wm1110 board work
- Loading branch information
Showing
5 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# extra_scripts | ||
|
||
This directory contains special [scripts](https://docs.platformio.org/en/latest/scripting/index.html) that are used to modify the platformio environment in rare cases. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# trunk-ignore-all(flake8/F821) | ||
# trunk-ignore-all(ruff/F821) | ||
|
||
Import("env") | ||
|
||
# NOTE: This is not currently used, but can serve as an example on how to write extra_scripts | ||
|
||
print("Current CLI targets", COMMAND_LINE_TARGETS) | ||
print("Current Build targets", BUILD_TARGETS) | ||
print("CPP defs", env.get("CPPDEFINES")) | ||
|
||
# Adafruit.py in the platformio build tree is a bit naive and always enables their USB stack for building. We don't want this. | ||
# So come in after that python script has run and disable it. This hack avoids us having to fork that big project and send in a PR | ||
# which might not be accepted. -@geeksville | ||
|
||
env["CPPDEFINES"].remove("USBCON") | ||
env["CPPDEFINES"].remove("USE_TINYUSB") | ||
|
||
# Custom actions when building program/firmware | ||
# env.AddPreAction("buildprog", callback...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters