Skip to content

Commit 2247514

Browse files
Merge branch 'adafruit:main' into ports/analog/add-busio
2 parents b8a34b5 + 04e6363 commit 2247514

File tree

114 files changed

+2206
-732
lines changed

Some content is hidden

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

114 files changed

+2206
-732
lines changed

.github/workflows/build-board-custom.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,18 @@ jobs:
7373
uses: actions/setup-python@v5
7474
with:
7575
python-version: 3.x
76+
- name: Board to port
77+
id: board-to-port
78+
run: |
79+
PORT=$(python tools/board_to_port.py "${{ inputs.board }}")
80+
echo "port=$PORT" >> $GITHUB_OUTPUT
81+
shell: bash
7682
- name: Set up port
7783
id: set-up-port
7884
uses: ./.github/actions/deps/ports
7985
with:
8086
board: ${{ inputs.board }}
87+
port: ${{ steps.board-to-port.outputs.port }}
8188
- name: Set up submodules
8289
id: set-up-submodules
8390
uses: ./.github/actions/deps/submodules
@@ -88,7 +95,7 @@ jobs:
8895
uses: ./.github/actions/deps/external
8996
with:
9097
action: cache
91-
port: ${{ steps.set-up-port.outputs.port }}
98+
port: ${{ steps.board-to-port.outputs.port }}
9299
- name: Set up mpy-cross
93100
if: steps.set-up-submodules.outputs.frozen == 'True'
94101
uses: ./.github/actions/mpy_cross
@@ -115,9 +122,9 @@ jobs:
115122
FLAGS: ${{ inputs.flags }}
116123
DEBUG: ${{ inputs.debug && '1' || '0' }}
117124
run: make -j4 $FLAGS BOARD="$BOARD" DEBUG=$DEBUG TRANSLATION="$TRANSLATION"
118-
working-directory: ports/${{ steps.set-up-port.outputs.port }}
125+
working-directory: ports/${{ steps.board-to-port.outputs.port }}
119126
- name: Upload artifact
120127
uses: actions/upload-artifact@v4
121128
with:
122129
name: ${{ inputs.board }}-${{ inputs.language }}-${{ inputs.version }}${{ inputs.flags != '' && '-custom' || '' }}${{ inputs.debug && '-debug' || '' }}
123-
path: ports/${{ steps.set-up-port.outputs.port }}/build-${{ inputs.board }}/firmware.*
130+
path: ports/${{ steps.board-to-port.outputs.port }}/build-${{ inputs.board }}/firmware.*

.gitmodules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@
345345
url = https://github.com/adafruit/Adafruit_CircuitPython_Wave.git
346346
[submodule "ports/raspberrypi/lib/Pico-PIO-USB"]
347347
path = ports/raspberrypi/lib/Pico-PIO-USB
348-
url = https://github.com/adafruit/Pico-PIO-USB.git
348+
url = https://github.com/tannewt/Pico-PIO-USB.git
349+
branch = better_timeouts
349350
[submodule "lib/micropython-lib"]
350351
path = lib/micropython-lib
351352
url = https://github.com/micropython/micropython-lib.git

Makefile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,30 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(BASEOPTS)
4040
# the i18n builder cannot share the environment and doctrees with the others
4141
I18NSPHINXOPTS = $(BASEOPTS)
4242

43-
TRANSLATE_SOURCES = extmod lib main.c ports/atmel-samd ports/analog ports/cxd56 ports/espressif ports/mimxrt10xx ports/nordic ports/raspberrypi ports/renode ports/stm py shared-bindings shared-module supervisor
43+
TRANSLATE_SOURCES = extmod lib main.c ports/atmel-samd ports/analog ports/cxd56 ports/espressif ports/mimxrt10xx ports/nordic ports/raspberrypi ports/renode ports/stm ports/zephyr-cp py shared-bindings shared-module supervisor
4444
# Paths to exclude from TRANSLATE_SOURCES
4545
# Each must be preceded by "-path"; if any wildcards, enclose in quotes.
4646
# Separate by "-o" (Find's "or" operand)
4747
TRANSLATE_SOURCES_EXC = -path "ports/*/build-*" \
4848
-o -path "ports/*/build" \
49+
-o -path ports/analog/msdk \
4950
-o -path ports/atmel-samd/asf4 \
5051
-o -path ports/cxd56/spresense-exported-sdk \
52+
-o -path ports/espressif/esp-camera \
5153
-o -path ports/espressif/esp-idf \
54+
-o -path ports/espressif/esp-protocols \
5255
-o -path ports/mimxrt10xx/sdk \
56+
-o -path ports/nordic/bluetooth \
57+
-o -path ports/nordic/nrfx \
58+
-o -path ports/raspberrypi/lib \
5359
-o -path ports/raspberrypi/sdk \
60+
-o -path ports/stm/peripherals \
5461
-o -path ports/stm/st_driver \
55-
-o -path lib/tinyusb \
56-
-o -path lib/lwip \
62+
-o -path ports/zephyr-cp/bootloader \
63+
-o -path ports/zephyr-cp/modules \
64+
-o -path ports/zephyr-cp/tools \
65+
-o -path ports/zephyr-cp/zephyr \
66+
-o -path lib \
5767
-o -path extmod/ulab/circuitpython \
5868
-o -path extmod/ulab/micropython \
5969

docs/environment.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,13 @@ Selects the desired resolution and color depth.
158158

159159
Supported resolutions are:
160160
* 640x480 with color depth 1, 2, 4 or 8 bits per pixel
161-
* 320x240 with color depth 8 or 16 bits per pixel
161+
* 320x240 with pixel doubling and color depth 8, 16, or 32 bits per pixel
162+
* 360x200 with pixel doubling and color depth 8, 16, or 32 bits per pixel
162163

163-
The default value, if unspecified, is 320x240 with 16 bits per pixel.
164+
See :py:class:`picodvi.Framebuffer` for more details.
165+
166+
The default value, if unspecified, is 360x200 16 bits per pixel if the connected
167+
display is 1920x1080 or a multiple of it, otherwise 320x240 with 16 bits per pixel.
164168

165169
If height is unspecified, it is set from the width. For example, a width of 640
166170
implies a height of 480.

docs/shared_bindings_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def support_matrix(arg):
362362
if use_branded_name:
363363
board_name = branded_name
364364
else:
365-
board_name = board_directory.name
365+
board_name = board_id
366366

367367
if add_chips:
368368
with open(board_directory / "mpconfigboard.h") as get_name:

extmod/vfs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ typedef struct _mp_vfs_proto_t {
7171
typedef struct _mp_vfs_blockdev_t {
7272
uint16_t flags;
7373
size_t block_size;
74+
#if CIRCUITPY_SAVES_PARTITION_SIZE > 0
75+
size_t offset;
76+
int size;
77+
#endif
7478
mp_obj_t readblocks[5];
7579
mp_obj_t writeblocks[5];
7680
// new protocol uses just ioctl, old uses sync (optional) and count

lib/tinyusb

Submodule tinyusb updated 105 files

locale/ID.po

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ msgstr "%q berisi pin duplikat"
114114
msgid "%q failure: %d"
115115
msgstr "%q gagal: %d"
116116

117-
#: py/argcheck.c
117+
#: py/argcheck.c shared-module/audiofilters/Filter.c
118118
msgid "%q in %q must be of type %q, not %q"
119119
msgstr "%q dalam %q harus bertipe %q, bukan %q"
120120

@@ -199,10 +199,6 @@ msgstr "%q harus <= %u"
199199
msgid "%q must be >= %d"
200200
msgstr "%q harus >= %d"
201201

202-
#: shared-module/audiofilters/Filter.c
203-
msgid "%q must be a %q object, %q, or %q"
204-
msgstr "%q harus berupa objek %q, %q, atau %q"
205-
206202
#: shared-bindings/analogbufio/BufferedIn.c
207203
msgid "%q must be a bytearray or array of type 'H' or 'B'"
208204
msgstr "%q harus berupa bytearray atau array bertipe 'H' atau 'B'"
@@ -230,6 +226,7 @@ msgstr "%q harus kelipatan 8."
230226
#: ports/raspberrypi/bindings/cyw43/__init__.c py/argcheck.c py/objexcept.c
231227
#: shared-bindings/bitmapfilter/__init__.c shared-bindings/canio/CAN.c
232228
#: shared-bindings/digitalio/Pull.c shared-bindings/supervisor/__init__.c
229+
#: shared-module/audiofilters/Filter.c shared-module/displayio/__init__.c
233230
#: shared-module/synthio/Biquad.c shared-module/synthio/Synthesizer.c
234231
msgid "%q must be of type %q or %q, not %q"
235232
msgstr "%q harus bertipe %q atau %q, bukan %q"
@@ -554,7 +551,6 @@ msgstr "Semua timer untuk pin ini sedang digunakan"
554551
#: ports/nordic/common-hal/pulseio/PulseIn.c
555552
#: ports/nordic/peripherals/nrf/timers.c
556553
#: ports/raspberrypi/common-hal/audiopwmio/PWMAudioOut.c
557-
#: ports/stm/peripherals/timers.c
558554
msgid "All timers in use"
559555
msgstr "Semua timer sedang digunakan"
560556

@@ -580,6 +576,7 @@ msgstr "Sudah berjalan"
580576

581577
#: ports/espressif/common-hal/wifi/Radio.c
582578
#: ports/raspberrypi/common-hal/wifi/Radio.c
579+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
583580
msgid "Already scanning for wifi networks"
584581
msgstr "Sudah memindai jaringan wifi"
585582

@@ -898,10 +895,6 @@ msgstr "DAC sudah digunakan"
898895
msgid "Data 0 pin must be byte aligned"
899896
msgstr "Data 0 pin harus byte disejajarkan"
900897

901-
#: shared-module/audiocore/WaveFile.c
902-
msgid "Data chunk must follow fmt chunk"
903-
msgstr "Potongan data harus mengikuti fmt chunk"
904-
905898
#: shared-module/jpegio/JpegDecoder.c
906899
msgid "Data format error (may be broken data)"
907900
msgstr "Kesalahan format data (mungkin data rusak)"
@@ -1067,6 +1060,10 @@ msgstr ""
10671060
msgid "Failed to release mutex, err 0x%04x"
10681061
msgstr "Gagal melepaskan mutex, err 0x%04x"
10691062

1063+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
1064+
msgid "Failed to set hostname"
1065+
msgstr ""
1066+
10701067
#: ports/espressif/common-hal/audioio/AudioOut.c
10711068
msgid "Failed to start async audio"
10721069
msgstr ""
@@ -1218,6 +1215,7 @@ msgid "Insufficient stream input buffer"
12181215
msgstr ""
12191216

12201217
#: ports/espressif/common-hal/wifi/Radio.c
1218+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
12211219
msgid "Interface must be started"
12221220
msgstr ""
12231221

@@ -1337,6 +1335,7 @@ msgid "Invalid hex password"
13371335
msgstr ""
13381336

13391337
#: ports/espressif/common-hal/wifi/Radio.c
1338+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
13401339
msgid "Invalid multicast MAC address"
13411340
msgstr ""
13421341

@@ -1439,7 +1438,8 @@ msgstr ""
14391438
msgid "Mount point directory missing"
14401439
msgstr ""
14411440

1442-
#: shared-bindings/busio/UART.c shared-bindings/displayio/Group.c
1441+
#: ports/zephyr-cp/bindings/zephyr_serial/UART.c shared-bindings/busio/UART.c
1442+
#: shared-bindings/displayio/Group.c
14431443
msgid "Must be a %q subclass."
14441444
msgstr "Harus berupa subclass %q."
14451445

@@ -1681,15 +1681,6 @@ msgstr ""
16811681
msgid "Only int or string supported for ip"
16821682
msgstr ""
16831683

1684-
#: shared-module/displayio/OnDiskBitmap.c
1685-
#, c-format
1686-
msgid ""
1687-
"Only monochrome, indexed 4bpp or 8bpp, and 16bpp or greater BMPs supported: "
1688-
"%d bpp given"
1689-
msgstr ""
1690-
"Hanya monokrom, 4bpp atau 8bpp yang diindeks, dan 16bpp atau lebih yang "
1691-
"didukung: %d bpp diberikan"
1692-
16931684
#: ports/espressif/common-hal/alarm/touch/TouchAlarm.c
16941685
msgid "Only one %q can be set in deep sleep."
16951686
msgstr ""
@@ -1740,6 +1731,7 @@ msgstr "Kehabisan memori"
17401731

17411732
#: ports/espressif/common-hal/socketpool/Socket.c
17421733
#: ports/raspberrypi/common-hal/socketpool/Socket.c
1734+
#: ports/zephyr-cp/common-hal/socketpool/Socket.c
17431735
msgid "Out of sockets"
17441736
msgstr "Kehabisan socket"
17451737

@@ -2023,6 +2015,7 @@ msgstr "Potongan tidak didukung"
20232015

20242016
#: ports/espressif/common-hal/socketpool/SocketPool.c
20252017
#: ports/raspberrypi/common-hal/socketpool/SocketPool.c
2018+
#: ports/zephyr-cp/common-hal/socketpool/SocketPool.c
20262019
msgid "SocketPool can only be used with wifi.radio"
20272020
msgstr "SocketPool hanya dapat digunakan dengan wifi.radio"
20282021

@@ -2063,8 +2056,7 @@ msgstr ""
20632056
msgid "The length of rgb_pins must be 6, 12, 18, 24, or 30"
20642057
msgstr "Panjang rgb_pins harus 6, 12, 18, 24, atau 30"
20652058

2066-
#: shared-module/audiodelays/Echo.c shared-module/audiofilters/Distortion.c
2067-
#: shared-module/audiofilters/Filter.c shared-module/audiomixer/MixerVoice.c
2059+
#: shared-module/audiocore/__init__.c
20682060
msgid "The sample's %q does not match"
20692061
msgstr "Sampel punya %q yang tidak cocok"
20702062

@@ -2336,6 +2328,7 @@ msgid "Unsupported hash algorithm"
23362328
msgstr "Algoritma hash tidak didukung"
23372329

23382330
#: ports/espressif/common-hal/socketpool/Socket.c
2331+
#: ports/zephyr-cp/common-hal/socketpool/Socket.c
23392332
msgid "Unsupported socket type"
23402333
msgstr "Jenis soket tidak didukung"
23412334

@@ -2629,7 +2622,8 @@ msgstr ""
26292622
msgid "bits must be 32 or less"
26302623
msgstr ""
26312624

2632-
#: shared-bindings/audiodelays/Echo.c shared-bindings/audiofilters/Distortion.c
2625+
#: shared-bindings/audiodelays/Echo.c shared-bindings/audiodelays/PitchShift.c
2626+
#: shared-bindings/audiofilters/Distortion.c
26332627
#: shared-bindings/audiofilters/Filter.c shared-bindings/audiomixer/Mixer.c
26342628
msgid "bits_per_sample must be 8 or 16"
26352629
msgstr ""
@@ -4412,6 +4406,7 @@ msgstr ""
44124406

44134407
#: ports/espressif/common-hal/wifi/Radio.c
44144408
#: ports/raspberrypi/common-hal/wifi/Radio.c
4409+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
44154410
msgid "wifi is not enabled"
44164411
msgstr "wifi tidak diaktifkan"
44174412

@@ -4477,6 +4472,20 @@ msgstr "zi harus berjenis float"
44774472
msgid "zi must be of shape (n_section, 2)"
44784473
msgstr "Zi harus berbentuk (n_section, 2)"
44794474

4475+
#~ msgid "%q must be a %q object, %q, or %q"
4476+
#~ msgstr "%q harus berupa objek %q, %q, atau %q"
4477+
4478+
#~ msgid "Data chunk must follow fmt chunk"
4479+
#~ msgstr "Potongan data harus mengikuti fmt chunk"
4480+
4481+
#, c-format
4482+
#~ msgid ""
4483+
#~ "Only monochrome, indexed 4bpp or 8bpp, and 16bpp or greater BMPs "
4484+
#~ "supported: %d bpp given"
4485+
#~ msgstr ""
4486+
#~ "Hanya monokrom, 4bpp atau 8bpp yang diindeks, dan 16bpp atau lebih yang "
4487+
#~ "didukung: %d bpp diberikan"
4488+
44804489
#~ msgid "The sample's bits_per_sample does not match the mixer's"
44814490
#~ msgstr "Sampel bits_per_sampel tidak cocok dengan mixer"
44824491

0 commit comments

Comments
 (0)