Skip to content

Commit 34ae020

Browse files
authored
Merge pull request #2 from adafruit/main
merge from circuit python
2 parents 7a1939f + 98cc153 commit 34ae020

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
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

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)