Skip to content

Commit c70be71

Browse files
committed
Merge branch 'refs/heads/main' into tile_palette_mapper
# Conflicts: # ports/atmel-samd/boards/openbook_m4/mpconfigboard.mk # ports/atmel-samd/boards/uartlogger2/mpconfigboard.mk
2 parents d48b5c9 + 4c6ef4e commit c70be71

File tree

34 files changed

+539
-129
lines changed

34 files changed

+539
-129
lines changed

.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

lib/tinyusb

Submodule tinyusb updated 105 files

locale/circuitpython.pot

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ msgstr ""
102102
msgid "%q failure: %d"
103103
msgstr ""
104104

105-
#: py/argcheck.c
105+
#: py/argcheck.c shared-module/audiofilters/Filter.c
106106
msgid "%q in %q must be of type %q, not %q"
107107
msgstr ""
108108

@@ -187,10 +187,6 @@ msgstr ""
187187
msgid "%q must be >= %d"
188188
msgstr ""
189189

190-
#: shared-module/audiofilters/Filter.c
191-
msgid "%q must be a %q object, %q, or %q"
192-
msgstr ""
193-
194190
#: shared-bindings/analogbufio/BufferedIn.c
195191
msgid "%q must be a bytearray or array of type 'H' or 'B'"
196192
msgstr ""
@@ -218,6 +214,7 @@ msgstr ""
218214
#: ports/raspberrypi/bindings/cyw43/__init__.c py/argcheck.c py/objexcept.c
219215
#: shared-bindings/bitmapfilter/__init__.c shared-bindings/canio/CAN.c
220216
#: shared-bindings/digitalio/Pull.c shared-bindings/supervisor/__init__.c
217+
#: shared-module/audiofilters/Filter.c shared-module/displayio/__init__.c
221218
#: shared-module/synthio/Biquad.c shared-module/synthio/Synthesizer.c
222219
msgid "%q must be of type %q or %q, not %q"
223220
msgstr ""
@@ -542,7 +539,6 @@ msgstr ""
542539
#: ports/nordic/common-hal/pulseio/PulseIn.c
543540
#: ports/nordic/peripherals/nrf/timers.c
544541
#: ports/raspberrypi/common-hal/audiopwmio/PWMAudioOut.c
545-
#: ports/stm/peripherals/timers.c
546542
msgid "All timers in use"
547543
msgstr ""
548544

@@ -568,6 +564,7 @@ msgstr ""
568564

569565
#: ports/espressif/common-hal/wifi/Radio.c
570566
#: ports/raspberrypi/common-hal/wifi/Radio.c
567+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
571568
msgid "Already scanning for wifi networks"
572569
msgstr ""
573570

@@ -875,10 +872,6 @@ msgstr ""
875872
msgid "Data 0 pin must be byte aligned"
876873
msgstr ""
877874

878-
#: shared-module/audiocore/WaveFile.c
879-
msgid "Data chunk must follow fmt chunk"
880-
msgstr ""
881-
882875
#: shared-module/jpegio/JpegDecoder.c
883876
msgid "Data format error (may be broken data)"
884877
msgstr ""
@@ -1042,6 +1035,10 @@ msgstr ""
10421035
msgid "Failed to release mutex, err 0x%04x"
10431036
msgstr ""
10441037

1038+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
1039+
msgid "Failed to set hostname"
1040+
msgstr ""
1041+
10451042
#: ports/espressif/common-hal/audioio/AudioOut.c
10461043
msgid "Failed to start async audio"
10471044
msgstr ""
@@ -1193,6 +1190,7 @@ msgid "Insufficient stream input buffer"
11931190
msgstr ""
11941191

11951192
#: ports/espressif/common-hal/wifi/Radio.c
1193+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
11961194
msgid "Interface must be started"
11971195
msgstr ""
11981196

@@ -1312,6 +1310,7 @@ msgid "Invalid hex password"
13121310
msgstr ""
13131311

13141312
#: ports/espressif/common-hal/wifi/Radio.c
1313+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
13151314
msgid "Invalid multicast MAC address"
13161315
msgstr ""
13171316

@@ -1414,7 +1413,8 @@ msgstr ""
14141413
msgid "Mount point directory missing"
14151414
msgstr ""
14161415

1417-
#: shared-bindings/busio/UART.c shared-bindings/displayio/Group.c
1416+
#: ports/zephyr-cp/bindings/zephyr_serial/UART.c shared-bindings/busio/UART.c
1417+
#: shared-bindings/displayio/Group.c
14181418
msgid "Must be a %q subclass."
14191419
msgstr ""
14201420

@@ -1653,13 +1653,6 @@ msgstr ""
16531653
msgid "Only int or string supported for ip"
16541654
msgstr ""
16551655

1656-
#: shared-module/displayio/OnDiskBitmap.c
1657-
#, c-format
1658-
msgid ""
1659-
"Only monochrome, indexed 4bpp or 8bpp, and 16bpp or greater BMPs supported: "
1660-
"%d bpp given"
1661-
msgstr ""
1662-
16631656
#: ports/espressif/common-hal/alarm/touch/TouchAlarm.c
16641657
msgid "Only one %q can be set in deep sleep."
16651658
msgstr ""
@@ -1710,6 +1703,7 @@ msgstr ""
17101703

17111704
#: ports/espressif/common-hal/socketpool/Socket.c
17121705
#: ports/raspberrypi/common-hal/socketpool/Socket.c
1706+
#: ports/zephyr-cp/common-hal/socketpool/Socket.c
17131707
msgid "Out of sockets"
17141708
msgstr ""
17151709

@@ -1986,6 +1980,7 @@ msgstr ""
19861980

19871981
#: ports/espressif/common-hal/socketpool/SocketPool.c
19881982
#: ports/raspberrypi/common-hal/socketpool/SocketPool.c
1983+
#: ports/zephyr-cp/common-hal/socketpool/SocketPool.c
19891984
msgid "SocketPool can only be used with wifi.radio"
19901985
msgstr ""
19911986

@@ -2025,8 +2020,7 @@ msgstr ""
20252020
msgid "The length of rgb_pins must be 6, 12, 18, 24, or 30"
20262021
msgstr ""
20272022

2028-
#: shared-module/audiodelays/Echo.c shared-module/audiofilters/Distortion.c
2029-
#: shared-module/audiofilters/Filter.c shared-module/audiomixer/MixerVoice.c
2023+
#: shared-module/audiocore/__init__.c
20302024
msgid "The sample's %q does not match"
20312025
msgstr ""
20322026

@@ -2291,6 +2285,7 @@ msgid "Unsupported hash algorithm"
22912285
msgstr ""
22922286

22932287
#: ports/espressif/common-hal/socketpool/Socket.c
2288+
#: ports/zephyr-cp/common-hal/socketpool/Socket.c
22942289
msgid "Unsupported socket type"
22952290
msgstr ""
22962291

@@ -2578,7 +2573,8 @@ msgstr ""
25782573
msgid "bits must be 32 or less"
25792574
msgstr ""
25802575

2581-
#: shared-bindings/audiodelays/Echo.c shared-bindings/audiofilters/Distortion.c
2576+
#: shared-bindings/audiodelays/Echo.c shared-bindings/audiodelays/PitchShift.c
2577+
#: shared-bindings/audiofilters/Distortion.c
25822578
#: shared-bindings/audiofilters/Filter.c shared-bindings/audiomixer/Mixer.c
25832579
msgid "bits_per_sample must be 8 or 16"
25842580
msgstr ""
@@ -4361,6 +4357,7 @@ msgstr ""
43614357

43624358
#: ports/espressif/common-hal/wifi/Radio.c
43634359
#: ports/raspberrypi/common-hal/wifi/Radio.c
4360+
#: ports/zephyr-cp/common-hal/wifi/Radio.c
43644361
msgid "wifi is not enabled"
43654362
msgstr ""
43664363

ports/atmel-samd/boards/openbook_m4/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ CIRCUITPY_KEYPAD = 1
1414
CIRCUITPY_SYNTHIO = 0
1515
CIRCUITPY_JPEGIO = 0
1616
CIRCUITPY_FLOPPYIO = 0
17+
CIRCUITPY_TERMINALIO_VT100 = 0
1718
CIRCUITPY_TILEPALETTEMAPPER = 0

ports/atmel-samd/boards/uartlogger2/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ LONGINT_IMPL = MPZ
1212
CIRCUITPY_SPITARGET = 0
1313
CIRCUITPY_SYNTHIO = 0
1414
CIRCUITPY_JPEGIO = 0
15+
CIRCUITPY_TERMINALIO_VT100 = 0
1516
CIRCUITPY_TILEPALETTEMAPPER = 0

ports/atmel-samd/mpconfigport.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ CIRCUITPY_ZLIB = 0
5959

6060
# Turn off a few more things that don't fit in 192kB
6161

62+
CIRCUITPY_TERMINALIO_VT100 = 0
63+
6264
ifeq ($(INTERNAL_FLASH_FILESYSTEM),1)
6365
CIRCUITPY_ONEWIREIO ?= 0
6466
CIRCUITPY_SAFEMODE_PY ?= 0

ports/raspberrypi/boards/adafruit_fruit_jam/board.c

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66

77
#include "common-hal/microcontroller/Pin.h"
88
#include "hardware/gpio.h"
9+
#include "py/mphal.h"
910
#include "shared-bindings/usb_host/Port.h"
1011
#include "supervisor/board.h"
1112

13+
#include "common-hal/picodvi/__init__.h"
14+
1215
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
1316

17+
#define I2S_RESET_PIN_NUMBER 22
1418

1519
#if defined(DEFAULT_USB_HOST_5V_POWER)
1620
bool board_reset_pin_number(uint8_t pin_number) {
@@ -25,12 +29,29 @@ bool board_reset_pin_number(uint8_t pin_number) {
2529

2630
return true;
2731
}
32+
// Set I2S out of reset.
33+
if (pin_number == I2S_RESET_PIN_NUMBER) {
34+
gpio_put(pin_number, 1);
35+
gpio_set_dir(pin_number, GPIO_OUT);
36+
gpio_set_function(pin_number, GPIO_FUNC_SIO);
37+
38+
return true;
39+
}
2840
return false;
2941
}
3042
#endif
3143

32-
#if defined(DEFAULT_USB_HOST_DATA_PLUS)
3344
void board_init(void) {
45+
// Reset the DAC to put it in a known state.
46+
gpio_put(I2S_RESET_PIN_NUMBER, 0);
47+
gpio_set_dir(I2S_RESET_PIN_NUMBER, GPIO_OUT);
48+
gpio_set_function(I2S_RESET_PIN_NUMBER, GPIO_FUNC_SIO);
49+
mp_hal_delay_us(1);
50+
board_reset_pin_number(I2S_RESET_PIN_NUMBER);
51+
52+
#if defined(DEFAULT_USB_HOST_DATA_PLUS)
3453
common_hal_usb_host_port_construct(DEFAULT_USB_HOST_DATA_PLUS, DEFAULT_USB_HOST_DATA_MINUS);
54+
#endif
55+
56+
picodvi_autoconstruct();
3557
}
36-
#endif

ports/raspberrypi/boards/adafruit_fruit_jam/mpconfigboard.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,18 @@
2121
#define DEFAULT_USB_HOST_DATA_MINUS (&pin_GPIO2)
2222
#define DEFAULT_USB_HOST_5V_POWER (&pin_GPIO11)
2323

24+
#define DEFAULT_DVI_BUS_CLK_DN (&pin_GPIO12)
25+
#define DEFAULT_DVI_BUS_CLK_DP (&pin_GPIO13)
26+
#define DEFAULT_DVI_BUS_RED_DN (&pin_GPIO14)
27+
#define DEFAULT_DVI_BUS_RED_DP (&pin_GPIO15)
28+
#define DEFAULT_DVI_BUS_GREEN_DN (&pin_GPIO16)
29+
#define DEFAULT_DVI_BUS_GREEN_DP (&pin_GPIO17)
30+
#define DEFAULT_DVI_BUS_BLUE_DN (&pin_GPIO18)
31+
#define DEFAULT_DVI_BUS_BLUE_DP (&pin_GPIO19)
32+
2433
#define CIRCUITPY_PSRAM_CHIP_SELECT (&pin_GPIO47)
34+
35+
// #define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO44)
36+
// #define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO45)
37+
38+
// #define CIRCUITPY_DEBUG_TINYUSB 0

ports/raspberrypi/boards/adafruit_fruit_jam/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ CHIP_PACKAGE = B
88
CHIP_FAMILY = rp2
99

1010
EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"
11+
12+
# CIRCUITPY_DISPLAY_FONT = $(TOP)/tools/fonts/unifont-16.0.02-all.bdf
13+
# CIRCUITPY_FONT_EXTRA_CHARACTERS = "🖮🖱️"

0 commit comments

Comments
 (0)