Commit graph

702 commits

Author SHA1 Message Date
Dan Halbert
f53f49838d update TinyUSB to incorporate latest dwc2 fixes 2025-01-20 23:27:00 -05:00
Scott Shawcroft
0485390f7e
Update TinyUSB 2024-12-03 10:17:31 -08:00
Scott Shawcroft
82d000417b
Enable USB on ESP32-P4 2024-11-27 16:06:54 -08:00
e105915140 mbedtls: avoid function that only exists on rp2040
rp2350 doesn't have the same RTC peripheral as the 2040 (let alone
other family micros)

this has the side effect of obeying a different timesource if one has
been configured.
2024-11-04 18:29:46 -06:00
sam blenny
0608932e63 update tinyusb to v0.17.0 (5217cee5) 2024-09-26 17:59:59 +00:00
Dan Halbert
3abd4e4081 revert lib/mbedtls_errors/mp_mbedtls_errors.c to previous version 2024-09-13 19:32:33 -04:00
Dan Halbert
1f68fffa13 merge from main 2024-09-10 16:36:32 -04:00
Dan Halbert
84cf30f73c ports/silabs and lib/protomatter: STATIC -> static 2024-09-09 19:57:24 -04:00
Dan Halbert
c0020df74e lib/cmsis: revert to previous version, to avoid new compilation errors.
See https://github.com/ARM-software/CMSIS_5/issues/1397, which is not yet fixed in cmsis
2024-09-09 19:15:49 -04:00
Dan Halbert
bc6f065447 working on compilation errors 2024-09-06 23:10:41 -04:00
Scott Shawcroft
683c646af9
Fix ESP resume from sleep
TinyUSB didn't turn on the interrupt it needed.

Fixes #9454
2024-09-03 10:04:22 -07:00
Dan Halbert
ac7e15f88a (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
Dan Halbert
e5e9c5ca84
Merge pull request #9469 from dhalbert/merge-from-micropython-v1.22.2
Merge from micropython v1.22.2
2024-08-21 18:11:19 -04:00
Scott Shawcroft
cedd677969
Fix Funhouse and update to IDF 5.3
The Funhouse problem was due to a locking change for SPI. The
Funhouse is one of a few boards with DotStar status LEDs that use
SPI and have this bug.

I thought it might be IDF related so I updated it first. :-)

Fixes #9486
2024-08-15 11:36:37 -07:00
Scott Shawcroft
ee2f7bda9a
Merge branch 'main' into rp2350_rgbmatrix 2024-08-15 09:39:21 -07:00
Scott Shawcroft
a802f12a59
Enable RGBMatrix on RP2350
It just worked after adding a macro check alongside RP2040 check.

Also, update TinyUSB.

Fixes #9492
2024-08-12 13:50:31 -07:00
Scott Shawcroft
84306c7c71
Fix ESP startup
The RP2350 branch brought in a bug via TLSF.

Fixes #9508
2024-08-12 13:37:58 -07:00
Scott Shawcroft
f3d9a52c56
Switch back to TinyUSB upstream 2024-08-09 11:34:37 -07:00
Scott Shawcroft
c6bd8e961a
Fix ESP tinyusb 2024-08-08 12:58:02 -07:00
Scott Shawcroft
5376443f58
Add support for RP2350 to CircuitPython
This adds support for the next RP2 microcontroller, the RP2350.

Thanks to Raspberry Pi folks for early access and to @arturo182,
@oberchoo and @SalamCytron for helping with CircuitPython.
2024-08-08 09:54:51 -07:00
Dan Halbert
4b0aee4903 fix some tests 2024-08-06 16:23:12 -04:00
Dan Halbert
be6fa2af21 merge from main 2024-07-29 17:41:46 -04:00
Dan Halbert
69b667406b MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
Damien George
8a8c65f309 lib/micropython-lib: Update submodule to latest.
This brings in:
- fixes to: aiohttp, tarfile, lora, gzip
- fixes and improvements to aioble
- deprecation of cbor2 decoder and encoder modules
- new usb package
- new pyusb package

Signed-off-by: Damien George <damien@micropython.org>
2024-05-27 16:27:41 +10:00
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
iabdalkader
53d0050255 lib/arduino-lib: Update submodule to the latest.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2024-04-11 17:04:10 +02: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
iabdalkader
438e522911 lib/arduino-lib: Add Arduino's external library.
This library contains external modules for Arduino boards.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2024-03-26 17:03:56 +11:00
Scott Shawcroft
25ad46d911
Update to IDF 5.2.1 2024-03-21 13:40:54 -07:00
Damien George
305707b281 lib/berkeley-db-1.xx: Update submodule URL and version.
This updates the berkeley-db-1.xx submodule URL to a repository hosted
under the micropython organisation, and makes the following changes:

- Moves the berkeley-db header files to a single directory within the
  submodule, and references all these headers with a much fuller path,
  which prevents symbol clashes (eg with esp32 and queue.h).

- Removes unused/non-working files from berkeley-db, which removes all
  symlinks in that repo (symlinks don't play well under Windows).

- Allows injecting an external configuration header into berkeley-db, so
  the configuration doesn't have to be provided by -Dxx=yy flags to the
  compiler (and possibly clashing with other symbols).

- Removes the advertising clause from the BSD 4-clause license of
  berkeley-db (see relevant commit and README.Impt.License.Change for
  details).

Signed-off-by: Damien George <damien@micropython.org>
2024-03-16 12:12:48 +11:00
iabdalkader
f6213ffc5c lib/libmetal: Add libmetal submodule.
libmetal provides an abstraction of the underlying hardware, to support
other OpenAMP components.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2024-03-15 17:35:39 +11:00
iabdalkader
5bed292c06 lib/open-amp: Add OpenAMP submodule.
OpenAMP framework provides a standard inter processor communications
infrastructure for RTOS and bare metal environments. There are 3 major
components in OpenAMP: libmetal, remoteproc and RPMsg. libmetal provides
abstraction of the low-level underlying hardware, remoteproc is used for
processor Life Cycle Management (LCM) like loading firmware, starting,
stopping a core etc., and RPMsg is a bus infrastructure that enables Inter
Processor Communications (IPC) between different cores.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2024-03-15 17:35:13 +11: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
Damien George
ab6d59d7bd lib/cyw43-driver: Update driver to latest version v1.0.3.
Includes various bug fixes.

Signed-off-by: Damien George <damien@micropython.org>
2024-03-07 14:07:53 +11: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
Damien George
c68462d996 lib/micropython-lib: Update submodule to latest.
Signed-off-by: Damien George <damien@micropython.org>
2024-02-07 12:58:50 +11:00
Carlosgg
92136cbe67 lib/mbedtls_errors: Update error list for latest mbedtls.
Running `./do-mp.sh` now generates this `mp_mbedtls_errors.c` file.  The
`esp32_mbedtls_errors.c` file is already up-to-date.

Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
2024-01-30 10:56:38 +11:00
Carlosgg
3f217e413d lib/mbedtls: Update to mbedtls v3.5.1.
Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
2024-01-30 10:53:48 +11:00
iabdalkader
e2fa0c6395 lib/cmsis: Update to CMSIS 5.9.0.
This update brings support for Cortex-M55 and Cortex-M85, zero and copy
tables and more.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2024-01-22 12:36:35 +11:00
73f45281e9
tinyusb: Update to 0.16.0. 2024-01-18 11:25:17 -06:00