Skip to content

Commit 2ea3c38

Browse files
committed
Merge branch 'refs/heads/main' into vectorio_intersection
# Conflicts: # ports/stm/boards/meowbit_v121/mpconfigboard.mk
2 parents cd78f69 + 1584f5e commit 2ea3c38

File tree

21 files changed

+792
-14
lines changed

21 files changed

+792
-14
lines changed

ports/raspberrypi/supervisor/internal_flash.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ static uint32_t m1_timing;
4949
static void save_psram_settings(void) {
5050
#ifdef PICO_RP2350
5151
// We're about to invalidate the XIP cache, clean it first to commit any dirty writes to PSRAM
52-
uint8_t *maintenance_ptr = (uint8_t *)XIP_MAINTENANCE_BASE;
52+
volatile uint8_t *maintenance_ptr = (uint8_t *)XIP_MAINTENANCE_BASE;
5353
for (int i = 1; i < 16 * 1024; i += 8) {
5454
// Background info: https://forums.raspberrypi.com/viewtopic.php?t=378249
5555
maintenance_ptr[i] = 0; // Clean
56+
__compiler_memory_barrier();
5657
maintenance_ptr[i - 1] = 0; // Explicitly invalidate
58+
__compiler_memory_barrier();
5759
}
5860

5961
m1_timing = qmi_hw->m[1].timing;

ports/raspberrypi/supervisor/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ void port_heap_init(void) {
244244
_heap = tlsf_create_with_pool(heap_bottom, size, 64 * 1024 * 1024);
245245
_ram_pool = tlsf_get_pool(_heap);
246246
if (_psram_size > 0) {
247-
_psram_pool = tlsf_add_pool(_heap, (void *)0x11000004, _psram_size - 4);
247+
_psram_pool = tlsf_add_pool(_heap, (void *)0x11000000, _psram_size);
248248
}
249249
}
250250

ports/stm/boards/meowbit_v121/mpconfigboard.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ CIRCUITPY_AESIO = 0
2626
CIRCUITPY_BITMAPFILTER = 0
2727
CIRCUITPY_BITMAPTOOLS = 0
2828
CIRCUITPY_BLEIO_HCI = 0
29-
CIRCUITPY_GIFIO = 0
29+
CIRCUITPY_EPAPERDISPLAY = 0
30+
CIRCUITPY_KEYPAD_DEMUX = 0
31+
CIRCUITPY_SHARPDISPLAY = 0
3032
CIRCUITPY_ULAB = 0
3133
CIRCUITPY_VECTORIO = 0
3234
CIRCUITPY_ZLIB = 0

ports/unix/displayio_min.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,16 @@ const mp_obj_module_t displayio_module = {
7474
};
7575

7676
MP_REGISTER_MODULE(MP_QSTR_displayio, displayio_module);
77+
78+
displayio_buffer_transform_t null_transform = {
79+
.x = 0,
80+
.y = 0,
81+
.dx = 1,
82+
.dy = 1,
83+
.scale = 1,
84+
.width = 0,
85+
.height = 0,
86+
.mirror_x = false,
87+
.mirror_y = false,
88+
.transpose_xy = false
89+
};

ports/unix/variants/coverage/mpconfigvariant.mk

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ SRC_BITMAP := \
5959
shared-bindings/synthio/Synthesizer.c \
6060
shared-bindings/traceback/__init__.c \
6161
shared-bindings/util.c \
62+
shared-bindings/vectorio/Circle.c \
63+
shared-bindings/vectorio/__init__.c \
64+
shared-bindings/vectorio/Polygon.c \
65+
shared-bindings/vectorio/Rectangle.c \
66+
shared-bindings/vectorio/VectorShape.c \
6267
shared-bindings/zlib/__init__.c \
6368
shared-module/aesio/aes.c \
6469
shared-module/aesio/__init__.c \
@@ -88,6 +93,12 @@ SRC_BITMAP := \
8893
shared-module/synthio/Note.c \
8994
shared-module/synthio/Biquad.c \
9095
shared-module/synthio/Synthesizer.c \
96+
shared-bindings/vectorio/Circle.c \
97+
shared-module/vectorio/Circle.c \
98+
shared-module/vectorio/__init__.c \
99+
shared-module/vectorio/Polygon.c \
100+
shared-module/vectorio/Rectangle.c \
101+
shared-module/vectorio/VectorShape.c \
91102
shared-module/traceback/__init__.c \
92103
shared-module/zlib/__init__.c \
93104

@@ -134,6 +145,7 @@ CFLAGS += \
134145
-DCIRCUITPY_SYNTHIO=1 \
135146
-DCIRCUITPY_SYNTHIO_MAX_CHANNELS=14 \
136147
-DCIRCUITPY_TRACEBACK=1 \
148+
-DCIRCUITPY_VECTORIO=1 \
137149
-DCIRCUITPY_ZLIB=1
138150

139151
# CIRCUITPY-CHANGE: test native base classes.

py/circuitpy_defns.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ endif
134134
ifeq ($(CIRCUITPY_AUDIODELAYS),1)
135135
SRC_PATTERNS += audiodelays/%
136136
endif
137+
ifeq ($(CIRCUITPY_AUDIOFILTERS),1)
138+
SRC_PATTERNS += audiofilters/%
139+
endif
137140
ifeq ($(CIRCUITPY_AUDIOMIXER),1)
138141
SRC_PATTERNS += audiomixer/%
139142
endif
@@ -622,6 +625,8 @@ SRC_SHARED_MODULE_ALL = \
622625
audiocore/__init__.c \
623626
audiodelays/Echo.c \
624627
audiodelays/__init__.c \
628+
audiofilters/Filter.c \
629+
audiofilters/__init__.c \
625630
audioio/__init__.c \
626631
audiomixer/Mixer.c \
627632
audiomixer/MixerVoice.c \

py/circuitpy_mpconfig.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ CFLAGS += -DCIRCUITPY_AUDIOMP3=$(CIRCUITPY_AUDIOMP3)
144144
CIRCUITPY_AUDIOEFFECTS ?= 0
145145
CIRCUITPY_AUDIODELAYS ?= $(CIRCUITPY_AUDIOEFFECTS)
146146
CFLAGS += -DCIRCUITPY_AUDIODELAYS=$(CIRCUITPY_AUDIODELAYS)
147+
CIRCUITPY_AUDIOFILTERS ?= $(CIRCUITPY_AUDIOEFFECTS)
148+
CFLAGS += -DCIRCUITPY_AUDIOFILTERS=$(CIRCUITPY_AUDIOFILTERS)
147149

148150
CIRCUITPY_AURORA_EPAPER ?= 0
149151
CFLAGS += -DCIRCUITPY_AURORA_EPAPER=$(CIRCUITPY_AURORA_EPAPER)

requirements-dev.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ intelhex
2525
# for building & testing natmods
2626
pyelftools
2727

28-
# for mbedtls certificate store
29-
# version limit due to espressif
30-
cryptography<36.1,>=2.1.4
28+
cryptography
3129

3230
# for web workflow minify
3331
minify_html

shared-bindings/_bleio/__init__.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@
3333
//| `adafruit_ble <https://circuitpython.readthedocs.io/projects/ble/en/latest/>`_
3434
//| CircuitPython library instead, which builds on `_bleio`, and
3535
//| provides higher-level convenience functionality, including predefined beacons, clients,
36-
//| servers."""
36+
//| servers.
37+
//|
38+
//| .. note:: `_bleio` uses native BLE capability on boards that support it, including Nordic nRF,
39+
//| Espressif (except ESP32-S2 and ESP32-P4), and SiLabs.
40+
//| On other boards, `_bleio`, if present, supports BLE using an AirLift co-processor.
41+
//| Pico W boards do *not* support BLE using the on-board CYW43 co-processor,
42+
//| but do support using an external AirLift.
43+
//| """
3744

3845
//| adapter: Adapter
3946
//| """BLE Adapter used to manage device discovery and connections.

0 commit comments

Comments
 (0)