Commit graph

664 commits

Author SHA1 Message Date
Scott Shawcroft
689c6fac20
Add ESP BLE GATT server support
Enable BLE where we can. Switch 4MB, non-USB board default partitioning
over to a single 2MB firmware bank. Old boards override this setting to
keep the same behavior.

This also adds alpha support for the ESP32-C2 (aka ESP8684).

Fixes #5926 and fixes #7170
2024-05-17 11:08:07 -07:00
Tod Kurt
21a9326203 update tinyusb to 15 May 2024 version 2024-05-16 09:52:36 -07:00
334287b578 MP3Decoder: update mp3 submodule
These changes have been requested upstream at https://github.com/adafruit/Adafruit_MP3/pull/21
2024-05-01 14:20:39 -05:00
Scott Shawcroft
0cbd8b2e0c
Add CIRCUITPY_USB_DEVICE config
This replaces CIRCUITPY_USB and makes room for CIRCUITPY_TINYUSB
when it may only be included for host support.
2024-04-26 11:58:49 -07:00
Scott Shawcroft
aca3191a58
Add Max3421E support for usb host
It is enabled on:
* SAMD51 boards with 1MB flash (SKU ending in 20A)
* Feather RP2040 DVI. Others have PIO usb host.
* All ESP32 boards.
* All nRF boards

Fixes #8676
2024-04-10 10:57:28 -07:00
b17e5b2339 update adafruit_floppy submodule again 2024-04-02 15:59:00 -05:00
7d2e46aa19 Update adafruit_floppy 2024-04-02 14:57:20 -05:00
Scott Shawcroft
25ad46d911
Update to IDF 5.2.1 2024-03-21 13:40:54 -07:00
hathach
8fda8e567e
update tinyusb to fix rp2040 multiple setup 2024-03-13 12:18:13 +07:00
Scott Shawcroft
f3e6b82a6d
Fix bug in TLSF change that fails on ESP32 only
It is likely due to the multiple heap setup on ESP32. An allocation
fails into one heap because the size is too large but caused an
assertion instead of failing over to the next heap.

Fixes #9026
2024-03-11 12:27:25 -07:00
Scott Shawcroft
f6aa7b1511
Update tlsf
The original implementation couldn't allocate to a region that was
just freed even though the freed region was the same size as the
new request. This was due to allocation sizes being rounded up
during search but not when marking the region in use.

Fixes https://github.com/adafruit/Adafruit_Learning_System_Guides/issues/2746
2024-03-04 16:20:39 -08:00
hathach
3d88402331
call tuh_hid_receive_abort() when detach from kernel driver
- add tuh_event_hook_cb() in SRAM, required when updated to latest tinyusb
- bump up pico-pio-usb to latest
- bump up tinyusb to latest for new tuh_hid_receive_abort(), and all endpoint abort when
SET_CONFIGURATION
2024-03-04 18:16:32 +07:00
Dan Halbert
a881bb69f0 lib/certificates: update to include ssl.com RSA cert 2024-02-16 14:19:35 -05:00
b57c37cd34 espressif: Use mbedtls implementation of ssl module.
the mbedtls version is a bit different so there are some new #ifdefs
needed.

Tested with the ssl test from https://github.com/adafruit/circuitpython/issues/8910
on Adafruit MatrixPortal S3 (no pico w testing done)
2024-02-15 14:26:24 -06:00
Scott Shawcroft
b1609ab552
Remove old pcnt, rmt and timer group drivers
The new ones handle resource tracking for us. They also do a
better job running when the flash cache is disabled, which is the
source of bugs when interacting with flash over USB.

Fixes #6998 and fixes #8379
2024-02-12 16:09:25 -08:00
73f45281e9
tinyusb: Update to 0.16.0. 2024-01-18 11:25:17 -06:00
080cc545b3
Share the implementation of hashlib across ports
.. many platforms can use mbedtls to implement hashlib.

Compile-tested with pico-w. Tested on feather rp2040 dvi.
2023-12-22 17:06:12 -06:00
db07775ca6
byte-swap our jpegs, it's better for our TFTs and such 2023-12-05 17:06:43 -06:00
83ff22ace5
set up tjpgd as we want it 2023-12-05 10:42:42 -06:00
5978c4ee4b
add patch1 to tjpgd 2023-12-05 10:42:42 -06:00
6ee98f929f
Import TJpgDec R0.03 2023-12-05 10:42:41 -06:00
Dan Halbert
ce6a5e33fb
Merge pull request #8567 from eightycc/tinyfs2
Shrink root dir size for tiny (<=128K) FAT12 fs
2023-11-09 19:38:01 -05:00
eightycc
4560f49279
Update lib/oofatfs/ff.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2023-11-07 13:51:32 -08:00
eightycc
2e72ea99e4
Update lib/oofatfs/ff.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2023-11-07 13:51:18 -08:00
Bob Abeles
966e6e4fe5 Shrink root dir size for tiny (<=128K) FAT12 fs 2023-11-07 10:24:36 -08:00
Scott Shawcroft
8137e2d6d2
Switch all ports to auto-growing split heap
This simplifies allocating outside of the VM because the VM doesn't
take up all remaining memory by default.

On ESP we delegate to the IDF for allocations. For all other ports,
we use TLSF to manage an outer "port" heap. The IDF uses TLSF
internally and we use their fork for the other ports.

This also removes the dynamic C stack sizing. It wasn't often used
and is not possible with a fixed outer heap.

Fixes #8512. Fixes #7334.
2023-11-01 15:24:16 -07:00
Scott Shawcroft
00457788e9
Fix mbedtls and stop removing it 2023-10-24 14:47:43 -07:00
Dan Halbert
557efbeb29 restore lib/mbedtls; remove gzip doc; restore zlib tests 2023-10-24 12:51:54 -04:00
Dan Halbert
4b42a6f4a0 restore old uzlib; remove remaining U and u prefixes 2023-10-19 21:29:57 -04:00
Dan Halbert
367e13c69f change CIRCUITPY change markers to CIRCUITPY-CHANGE 2023-10-19 16:42:36 -04:00
Dan Halbert
f2ebe6839c Initial MicroPython v1.21.0 merge; not compiled yet 2023-10-18 17:49:14 -04:00
Scott Shawcroft
544553c542
Fix cyw43 (pico w) builds 2023-10-16 10:43:30 -07:00
Scott Shawcroft
9633c4e78f
Merge remote-tracking branch 'adafruit/main' into v1.20-merge 2023-10-11 11:21:57 -07:00
Scott Shawcroft
4c4eba88db
Add lib/mbedtls back 2023-10-11 10:05:02 -07:00
Scott Shawcroft
376cb87a25
Update protomatter to fix non-S3 and C6 2023-10-05 14:56:11 -07:00
Scott Shawcroft
4d2bc35d40
Re-enable rgbmatrix on IDF 5.1 2023-10-05 14:56:11 -07:00
Scott Shawcroft
85650bf1ab
Fix re unescaping 2023-10-05 13:35:07 -07:00
Scott Shawcroft
18c03a74dd
Fix a few tests
* Re-enable a couple FATFS configurations we added.
* Remove MICROPY_PY_IO_FILEIO.
* Remove uasyncio from standard unix build.
* Re-add our unicode printing improvements.
2023-10-05 10:59:08 -07:00
Damien George
342ebcb41d lib/micropython-lib: Update submodule to latest.
Signed-off-by: Damien George <damien@micropython.org>
2023-10-05 11:21:34 +11:00
Damien George
5d53783a46 lib/cyw43-driver: Update driver to latest version v1.0.2.
Includes more error checking, and a fix to handle buffer overflow when
getting STA MACs.

Signed-off-by: Damien George <damien@micropython.org>
2023-10-05 11:20:05 +11:00
031c163f84
make RE compile 2023-09-22 13:57:05 -05:00
018baf75d5
Add micropython-lib
this is needed during the unix coverage build
2023-09-22 10:38:21 -05:00
Dan Halbert
10b95a1998 add translate.h and linker.h includes back to runtime.h; remove linker.h refs; remove top-level lib/cyw43-driver 2023-09-20 22:00:09 -04:00
Dan Halbert
2c0fa0f7dc initial merge from v1.20.0; just satisifying conflicts 2023-09-19 11:10:12 -04:00
iabdalkader
dc5ea0c77d lib/protobuf-c: Add protobuf-c library.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2023-09-14 23:51:30 +10:00
iabdalkader
86fd958212 lib/tinyusb: Update to the most recent master.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2023-09-14 23:35:34 +10:00
Dan Halbert
9f1d52601e merge from 8.2.x 2023-09-12 20:14:30 -04:00
Dan Halbert
722d64b0e7 Add root cert DST Root CA X3 for Let's Encrypt 2023-09-11 12:07:45 -04:00
Dan Halbert
4dd45b6dc6
Merge pull request #8374 from dhalbert/new-certificates-submodule
Update TLS certificates and use new certificates submodule
2023-09-07 10:19:05 -04:00
Dan Halbert
c5bc59e692 update protomatter to 1.6.1 (used for RGBMatrix) 2023-09-07 08:32:21 -04:00