Skip to content

Commit 3782f3a

Browse files
committed
merge from main; throw NotImplementedError if CIRCUITPY_USB not set
2 parents 0b525a2 + b6f67be commit 3782f3a

File tree

1,468 files changed

+37958
-23050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,468 files changed

+37958
-23050
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143

144144

145145
mpy-cross-mac:
146-
runs-on: macos-10.15
146+
runs-on: macos-11
147147
steps:
148148
- name: Dump GitHub context
149149
env:
@@ -176,27 +176,25 @@ jobs:
176176
run: make -C mpy-cross -j2
177177
- uses: actions/upload-artifact@v2
178178
with:
179-
name: mpy-cross-macos-catalina
179+
name: mpy-cross-macos-11-x64
180180
path: mpy-cross/mpy-cross
181-
- name: Select SDK for M1 build
182-
run: sudo xcode-select -switch /Applications/Xcode_12.3.app
183181
- name: Build mpy-cross (arm64)
184182
run: make -C mpy-cross -j2 -f Makefile.m1 V=2
185183
- uses: actions/upload-artifact@v2
186184
with:
187-
name: mpy-cross-macos-bigsur-arm64
185+
name: mpy-cross-macos-11-arm64
188186
path: mpy-cross/mpy-cross-arm64
189187
- name: Make universal binary
190188
run: lipo -create -output mpy-cross-macos-universal mpy-cross/mpy-cross mpy-cross/mpy-cross-arm64
191189
- uses: actions/upload-artifact@v2
192190
with:
193-
name: mpy-cross-macos-universal
191+
name: mpy-cross-macos-11-universal
194192
path: mpy-cross-macos-universal
195193
- name: Upload mpy-cross build to S3
196194
run: |
197-
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-universal-${{ env.CP_VERSION }} --no-progress --region us-east-1
198-
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-bigsur-${{ env.CP_VERSION }}-arm64 --no-progress --region us-east-1
199-
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-catalina-${{ env.CP_VERSION }} --no-progress --region us-east-1
195+
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-11-${{ env.CP_VERSION }}-universal --no-progress --region us-east-1
196+
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-11-${{ env.CP_VERSION }}-arm64 --no-progress --region us-east-1
197+
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-11-${{ env.CP_VERSION }}-x64 --no-progress --region us-east-1
200198
env:
201199
AWS_PAGER: ''
202200
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -287,12 +285,13 @@ jobs:
287285
fetch-depth: 1
288286
- name: Get CP deps
289287
run: python tools/ci_fetch_deps.py ${{ matrix.board }} ${{ github.sha }}
288+
- uses: carlosperate/arm-none-eabi-gcc-action@v1
289+
with:
290+
release: '10-2020-q4'
290291
- name: Install dependencies
291292
run: |
292293
sudo apt-get install -y gettext
293294
pip install -r requirements-ci.txt -r requirements-dev.txt
294-
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
295-
sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
296295
- name: Versions
297296
run: |
298297
gcc --version
@@ -382,7 +381,8 @@ jobs:
382381
if: ${{ needs.test.outputs.boards-espressif != '[]' }}
383382
steps:
384383
- name: Set up Python 3
385-
uses: actions/setup-python@v2
384+
id: py3
385+
uses: actions/setup-python@v4
386386
with:
387387
python-version: "3.x"
388388
- uses: actions/[email protected]
@@ -400,7 +400,7 @@ jobs:
400400
id: idf-cache
401401
with:
402402
path: ${{ github.workspace }}/.idf_tools
403-
key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/espressif/esp-idf/HEAD') }}-20220404
403+
key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/espressif/esp-idf/HEAD') }}-${{ steps.py3.outputs.python-path }}-20220404
404404
- name: Clone IDF submodules
405405
run: |
406406
(cd $IDF_PATH && git submodule update --init)
@@ -486,8 +486,9 @@ jobs:
486486
pip install -r requirements-ci.txt -r requirements-dev.txt
487487
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz
488488
sudo tar -C /usr --strip-components=1 -xaf gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz
489-
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
490-
sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
489+
- uses: carlosperate/arm-none-eabi-gcc-action@v1
490+
with:
491+
release: '10-2020-q4'
491492
- name: Install mkfs.fat
492493
run: |
493494
wget https://github.com/dosfstools/dosfstools/releases/download/v4.2/dosfstools-4.2.tar.gz

.github/workflows/create_website_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ jobs:
4242
working-directory: tools
4343
env:
4444
RELEASE_TAG: ${{ github.event.release.tag_name }}
45-
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.BLINKA_GITHUB_ACCESS_TOKEN }}
45+
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.ADABOT_GITHUB_ACCESS_TOKEN }}
4646
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
pre-commit:
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-22.04
1818
steps:
1919
- uses: actions/[email protected]
2020
- name: Set up Python 3
@@ -23,7 +23,6 @@ jobs:
2323
python-version: "3.x"
2424
- name: Install deps
2525
run: |
26-
sudo apt-add-repository -y -u ppa:pybricks/ppa
2726
sudo apt-get install -y gettext uncrustify
2827
pip3 install black polib pyyaml
2928
- name: Populate selected submodules

.gitmodules

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@
145145
url = https://github.com/adafruit/Adafruit_CircuitPython_RFM69.git
146146
[submodule "ports/espressif/esp-idf"]
147147
path = ports/espressif/esp-idf
148-
url = https://github.com/espressif/esp-idf.git
149-
branch = release/v4.4
148+
url = https://github.com/adafruit/esp-idf.git
149+
branch = circuitpython8
150150
[submodule "ports/espressif/certificates/nina-fw"]
151151
path = ports/espressif/certificates/nina-fw
152152
url = https://github.com/adafruit/nina-fw.git
@@ -196,6 +196,9 @@
196196
url = https://github.com/raspberrypi/rpi-firmware.git
197197
branch = master
198198
shallow = true
199+
[submodule "lib/adafruit_floppy"]
200+
path = lib/adafruit_floppy
201+
url = https://github.com/adafruit/Adafruit_Floppy
199202
[submodule "ports/stm/st_driver/cmsis_device_f4"]
200203
path = ports/stm/st_driver/cmsis_device_f4
201204
url = https://github.com/STMicroelectronics/cmsis_device_f4.git
@@ -283,3 +286,27 @@
283286
[submodule "frozen/Adafruit_CircuitPython_FakeRequests"]
284287
path = frozen/Adafruit_CircuitPython_FakeRequests
285288
url = https://github.com/adafruit/Adafruit_CircuitPython_FakeRequests.git
289+
[submodule "frozen/pew-pewpew-lcd"]
290+
path = frozen/pew-pewpew-lcd
291+
url = https://github.com/pypewpew/pew-pewpew-lcd.git
292+
[submodule "frozen/mixgo_cp_lib"]
293+
path = frozen/mixgo_cp_lib
294+
url = https://github.com/dahanzimin/circuitpython_lib.git
295+
[submodule "frozen/Adafruit_CircuitPython_IS31FL3731"]
296+
path = frozen/Adafruit_CircuitPython_IS31FL3731
297+
url = https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3731.git
298+
[submodule "frozen/Adafruit_CircuitPython_Ticks"]
299+
path = frozen/Adafruit_CircuitPython_Ticks
300+
url = https://github.com/adafruit/Adafruit_CircuitPython_Ticks.git
301+
[submodule "frozen/Adafruit_CircuitPython_asyncio"]
302+
path = frozen/Adafruit_CircuitPython_asyncio
303+
url = https://github.com/adafruit/Adafruit_CircuitPython_asyncio.git
304+
[submodule "frozen/circuitpython_ef_music"]
305+
path = frozen/circuitpython_ef_music
306+
url = https://github.com/elecfreaks/circuitpython_ef_music.git
307+
[submodule "frozen/circuitpython_picoed"]
308+
path = frozen/circuitpython_picoed
309+
url = https://github.com/elecfreaks/circuitpython_picoed.git
310+
[submodule "ports/espressif/esp32-camera"]
311+
path = ports/espressif/esp32-camera
312+
url = https://github.com/adafruit/esp32-camera/

.readthedocs.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
version: 2
1010

1111
build:
12-
os: ubuntu-20.04
13-
tools:
14-
python: "3"
15-
16-
submodules:
17-
include:
18-
- extmod/ulab
12+
os: ubuntu-20.04
13+
tools:
14+
python: "3"
15+
jobs:
16+
post_install:
17+
- python tools/ci_fetch_deps.py docs HEAD
1918

2019
formats:
21-
- pdf
20+
- pdf
2221

2322
python:
2423
install:

BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The test suite in the top level `tests` directory. It needs the unix port to ru
7070
Then you can run the test suite:
7171

7272
cd ../../tests
73-
./run-tests
73+
./run-tests.py
7474

7575
A successful run will say something like
7676

LICENSE

Lines changed: 6 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) 2013-2022 Damien P. George
3+
Copyright (c) 2013-2022 Damien P. George and others
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -9,77 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
copies of the Software, and to permit persons to whom the Software is
1010
furnished to do so, subject to the following conditions:
1111

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
22-
23-
--------------------------------------------------------------------------------
24-
25-
Unless specified otherwise (see below), the above license and copyright applies
26-
to all files in this repository.
27-
28-
Individual files may include additional copyright holders.
29-
30-
The various ports of MicroPython may include third-party software that is
31-
licensed under different terms. These licenses are summarised in the tree
32-
below, please refer to these files and directories for further license and
33-
copyright information. Note that (L)GPL-licensed code listed below is only
34-
used during the build process and is not part of the compiled source code.
35-
36-
/ (MIT)
37-
/drivers
38-
/cc3000 (BSD-3-clause)
39-
/cc3100 (BSD-3-clause)
40-
/wiznet5k (BSD-3-clause)
41-
/lib
42-
/asf4 (Apache-2.0)
43-
/axtls (BSD-3-clause)
44-
/config
45-
/scripts
46-
/config (GPL-2.0-or-later)
47-
/Rules.mak (GPL-2.0)
48-
/berkeley-db-1xx (BSD-4-clause)
49-
/btstack (See btstack/LICENSE)
50-
/cmsis (BSD-3-clause)
51-
/crypto-algorithms (NONE)
52-
/libhydrogen (ISC)
53-
/littlefs (BSD-3-clause)
54-
/lwip (BSD-3-clause)
55-
/mynewt-nimble (Apache-2.0)
56-
/nrfx (BSD-3-clause)
57-
/nxp_driver (BSD-3-Clause)
58-
/oofatfs (BSD-1-clause)
59-
/pico-sdk (BSD-3-clause)
60-
/re15 (BSD-3-clause)
61-
/stm32lib (BSD-3-clause)
62-
/tinytest (BSD-3-clause)
63-
/tinyusb (MIT)
64-
/uzlib (Zlib)
65-
/logo (uses OFL-1.1)
66-
/ports
67-
/cc3200
68-
/hal (BSD-3-clause)
69-
/simplelink (BSD-3-clause)
70-
/FreeRTOS (GPL-2.0 with FreeRTOS exception)
71-
/stm32
72-
/usbd*.c (MCD-ST Liberty SW License Agreement V2)
73-
/stm32_it.* (MIT + BSD-3-clause)
74-
/system_stm32*.c (MIT + BSD-3-clause)
75-
/boards
76-
/startup_stm32*.s (BSD-3-clause)
77-
/*/stm32*.h (BSD-3-clause)
78-
/usbdev (MCD-ST Liberty SW License Agreement V2)
79-
/usbhost (MCD-ST Liberty SW License Agreement V2)
80-
/teensy
81-
/core (PJRC.COM)
82-
/zephyr
83-
/src (Apache-2.0)
84-
/tools
85-
/dfu.py (LGPL-3.0-only)
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

LICENSE_MicroPython

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013-2022 Damien P. George
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
22+
23+
--------------------------------------------------------------------------------
24+
25+
Unless specified otherwise (see below), the above license and copyright applies
26+
to all files in this repository.
27+
28+
Individual files may include additional copyright holders.
29+
30+
The various ports of MicroPython may include third-party software that is
31+
licensed under different terms. These licenses are summarised in the tree
32+
below, please refer to these files and directories for further license and
33+
copyright information. Note that (L)GPL-licensed code listed below is only
34+
used during the build process and is not part of the compiled source code.
35+
36+
/ (MIT)
37+
/drivers
38+
/cc3000 (BSD-3-clause)
39+
/cc3100 (BSD-3-clause)
40+
/wiznet5k (BSD-3-clause)
41+
/lib
42+
/asf4 (Apache-2.0)
43+
/axtls (BSD-3-clause)
44+
/config
45+
/scripts
46+
/config (GPL-2.0-or-later)
47+
/Rules.mak (GPL-2.0)
48+
/berkeley-db-1xx (BSD-4-clause)
49+
/btstack (See btstack/LICENSE)
50+
/cmsis (BSD-3-clause)
51+
/crypto-algorithms (NONE)
52+
/libhydrogen (ISC)
53+
/littlefs (BSD-3-clause)
54+
/lwip (BSD-3-clause)
55+
/mynewt-nimble (Apache-2.0)
56+
/nrfx (BSD-3-clause)
57+
/nxp_driver (BSD-3-Clause)
58+
/oofatfs (BSD-1-clause)
59+
/pico-sdk (BSD-3-clause)
60+
/re15 (BSD-3-clause)
61+
/stm32lib (BSD-3-clause)
62+
/tinytest (BSD-3-clause)
63+
/tinyusb (MIT)
64+
/uzlib (Zlib)
65+
/logo (uses OFL-1.1)
66+
/ports
67+
/cc3200
68+
/hal (BSD-3-clause)
69+
/simplelink (BSD-3-clause)
70+
/FreeRTOS (GPL-2.0 with FreeRTOS exception)
71+
/stm32
72+
/usbd*.c (MCD-ST Liberty SW License Agreement V2)
73+
/stm32_it.* (MIT + BSD-3-clause)
74+
/system_stm32*.c (MIT + BSD-3-clause)
75+
/boards
76+
/startup_stm32*.s (BSD-3-clause)
77+
/*/stm32*.h (BSD-3-clause)
78+
/usbdev (MCD-ST Liberty SW License Agreement V2)
79+
/usbhost (MCD-ST Liberty SW License Agreement V2)
80+
/teensy
81+
/core (PJRC.COM)
82+
/zephyr
83+
/src (Apache-2.0)
84+
/tools
85+
/dfu.py (LGPL-3.0-only)

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ TRANSLATE_SOURCES_EXC = -path "ports/*/build-*" \
6161

6262
help:
6363
@echo "Please use \`make <target>' where <target> is one of"
64+
@echo " fetch-submodules to fetch dependencies from submodules, run this right after you clone the repo"
6465
@echo " html to make standalone HTML files"
6566
@echo " dirhtml to make HTML files named index.html in directories"
6667
@echo " singlehtml to make a single large HTML file"

0 commit comments

Comments
 (0)