Skip to content

Beetle esp32 c3 #6615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 25, 2022
Merged

Beetle esp32 c3 #6615

merged 2 commits into from
Jul 25, 2022

Conversation

askpatrickw
Copy link

This PR Adds basic functionality for the DFRobot ESP32-C3 (pins, I2C, etc..)

NOTE:

jepler added a commit to jepler/circuitpython that referenced this pull request Jul 19, 2022
Looking at the PR to add Beetle esp32 c3 (adafruit#6615) I noticed that any
microcontroller of this type would require modifying build_board_info,
which in turn causes a build of all boards. The same would be true of
esp32 boards, of which we hope a large number will be submitted soon.

Instead, create two different ways for an mpconfigboard.mk file to
override the default setting by port: For espressif, use the existing
IDF_TARGET variable. For the general case, allow the EXTENSIONS variable
to be specified.

Note that the value cannot come from mpconfigport.mk and cannot be
conditional. This condition could be lifted in the future if it is
useful. Additionally, if IDF_TARGET and EXTENSIONS both exist, the one
that appears FIRST in the mpconfigboard.mk file is used, which is
a bit tricky.

I ran "DEBUG=x RELEASE_TAG=x build_board_info.py > foo.json" before and
after to generate a copy of the release info. When diffing them, there
is no difference (as expected).

I also used a new quick debug facility just for checking extensions,
"build_board_info.py espressif:adafruit_feather_esp32s2", to spot check
that the code was working as expected, since running the full
"build_board_info" process is time consuming.

The remaining special cases in "extension_by_board" should be moved to
the correct mpconfigport.mk files and the whole facility of "extension by
board" should be removed from build_board_info.py.
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you!

@tannewt tannewt merged commit 47f718a into adafruit:main Jul 25, 2022
@askpatrickw askpatrickw deleted the beetle-esp32-c3 branch July 26, 2022 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants