Commit graph

1116 commits

Author SHA1 Message Date
Dan Halbert
782e25c337 shared/supervisor/usb_msc_flash.c: check for valid vfs from get_vfs() 2025-07-06 14:08:17 -04:00
eightycc
35b202f0af
Merge pull request #10381 from dhalbert/nrf-ble-deep-sleep-recovery
nordic: Fix BLE HID to work after deep sleep
2025-05-28 10:49:14 -07:00
Dan Halbert
fda497cd12 nordic: Fix BLE HID to work after deep sleep 2025-05-28 12:30:57 -04:00
953694d56c Fix -Wold-style-definion errors in the raspberrypi port
This mostly means changing `void foo()` to `void foo(void)` at
the function definition site. This was previously only an error
if the declaration site didn't have `(void)`, but the unix
coverage build enables the more strict warning and there's little
difficulty in resolving these diagnostics.

.. other ports can be done too, if desired.
2025-05-25 09:16:00 +02:00
eightycc
1f3307ef72 Fix arm register unload area size. 2025-05-17 10:57:41 -07:00
Cooper Dalrymple
1dc462872b Remove gc_nbytes check 2025-05-15 08:51:46 -05:00
Scott Shawcroft
08933456f4
Merge pull request #10337 from eightycc/pr-10325
Updates to PR #10325
2025-05-12 10:49:47 -07:00
eightycc
739b24212c Fix crashing bug in PR #10325 for RISC-V builds. 2025-05-10 15:56:21 -07:00
eightycc
99d4ea099a
Merge pull request #10333 from tannewt/fix_terminal_rotate
Fix terminal on rotation
2025-05-09 16:12:01 -07:00
eightycc
5ba4f77fc9
Merge pull request #10325 from tannewt/collect_rv32_registers
Factor out register saves
2025-05-09 15:36:50 -07:00
Scott Shawcroft
fc540b7ee4
Fix terminal on rotation
This fixes an issue where a terminal can't be started after being
stopped (when tilegrid_tiles is freed and set to NULL.)

Fixes #10241
2025-05-09 15:13:51 -07:00
Scott Shawcroft
2bec0562eb
Factor out register saves
This fixes RISC-V ESP32 because it ignored registers on that
architecture.
2025-05-08 16:12:10 -07:00
eightycc
b05e80e0b6 Make supervisor_get_raw_subticks a static function _get_raw_subticks. 2025-05-07 11:01:17 -07:00
eightycc
61071cb41c Improve update to mp_hal_delay_ms:
o Test for console interrupt during RUN_BACKGROUND_TASK
o Handle signedness of remaining tick/subtick values correctly for very large delays
o Improve comments
2025-05-07 08:06:41 -07:00
eightycc
fcf7df857e Improve mp_hal_delay_ms by implementing subtick resolution. 2025-05-06 11:01:05 -07:00
Scott Shawcroft
f5aef15f29
Reduce USB static buffers for ESP32-S2
This frees up more RAM for other things.

RAM started overflowing with #10281
2025-04-25 13:47:46 -07:00
Ryan Adolf
28856dbbcb Increase CFG_TUH_ENUMERATION_BUFSIZE 2025-04-22 16:59:14 -04:00
26ab62b040 Remove unneeded "post_boot_py"
This was only used in espressif but became a no-op in
5e26862b2c so it should just be removed.
2025-04-16 18:12:51 +02:00
Scott Shawcroft
8f7496c069
Merge pull request #10231 from eightycc/issue-9710
Implement BOOTSEL button entry to safe mode for RP2.
2025-04-15 09:51:40 -07:00
Scott Shawcroft
70ec2a176d
Merge pull request #10249 from eightycc/issue-10172
Implement use_global_block_protection_lock for write-enabling flash.
2025-04-14 12:57:33 -07:00
eightycc
7012deb3e7 Implement use_global_block_protection_lock for write-enabling flash.
Fix mis-placed conditional in circuitpy_mpconfig.h.
2025-04-14 07:47:59 -07:00
eightycc
4d81b53024 Update CIRCUITPY_BOOT_BUTTON_NO_GPIO to 0/1 for false/true. Add compile time check forbidding CIRCUITPY_BOOT_BUTTON and CIRCUITPY_BOOT_BUTTON_NO_GPIO. 2025-04-11 20:42:00 -07:00
Scott Shawcroft
abb3e9351b
Add RP2 support for dma_capable
This places the VM heap in PSRAM by default. audio_dma now directly
allocates its buffers to ensure they are dma_capable.
2025-04-10 10:46:51 -07:00
eightycc
821b984b5a Factor out duplicate code. 2025-04-08 13:47:22 -07:00
eightycc
fd9af9145a Fix CI errors by adding CIRCUITPY_BOOT_BUTTON_NO_GPIO for boards w/o BOOTSEL GPIO connection. 2025-04-08 13:27:30 -07:00
eightycc
3c6056f252 Implement BOOTSEL button entry to safe mode for RP2. 2025-04-07 15:35:08 -07:00
Scott Shawcroft
e8875f51c4
Merge remote-tracking branch 'adafruit/main' into automount_sd 2025-04-01 10:30:29 -07:00
Dan Halbert
92c121b1ae
Merge pull request #10208 from tannewt/lvfontio
Add support for on disk fonts to terminalio
2025-04-01 11:01:29 -04:00
Scott Shawcroft
cb97ae6d40
Be stricter about what filesystems it works with.
Add Metro RP2350 definitions
2025-03-31 15:18:28 -07:00
Scott Shawcroft
2c0f9e9ac6
Merge remote-tracking branch 'adafruit/main' into automount_sd 2025-03-31 13:14:25 -07:00
Scott Shawcroft
565518ecfe
Default lvfontio off on SAMD. Fix non-terminalio builds 2025-03-31 11:40:28 -07:00
Scott Shawcroft
1cb188d6d3
Add native support for LVGL binary fonts on disk
This allows the terminal to use a font from the disk at
/fonts/terminal.lvfontbin for languages that need more
characters than we want to ship.

TileGrid now support 16bit indices as well.

Font files for use with it are generated by the GitHub actions
here:
https://github.com/adafruit/circuitpython-font-generator
2025-03-28 15:54:41 -07:00
57638449d6 Fix EOF test for web workflow repl 2025-03-26 12:31:55 -05:00
Dan Halbert
416535a1b1 supervisor/shared/usb/usb_msc_flash.c: restore initialization of ejected array 2025-03-22 15:08:30 -04:00
Neradoc
21fcb685d4 fix the use of ifdef in testing CIRCUITPY_STATUS_LED 2025-03-14 18:25:30 +01:00
Scott Shawcroft
d0c840094a
Automount SD cards
And make them available over USB MSC. They can be remount to make
them writable (slowly) from the host PC.

Fixes #9954. Fixes #8678. Fixes #3477
2025-03-12 16:27:09 -07:00
Scott Shawcroft
5616fc2a3c
Add support for saves partition
Suggested in #10045
2025-03-06 16:48:59 -08:00
Scott Shawcroft
effa01e2af
Improve Fruit Jam
* Add bus, port_numbers and speed to USB devices. Allows for
  differentiating identical devices.
* Autodetect display and adjust if widescreen
* Enable I2S DAC via its reset pin
* Show keyboard emoji in status bar. (Only works over serial connection
  now. Built in font doesn't have the emoji.)
2025-03-05 13:04:33 -08:00
Dan Halbert
2ec0d04225
Merge pull request #10103 from dhalbert/empty-ssid-check-web-workflow
web_workflow.c: check for empty SSID before starting web workflow
2025-02-27 13:27:25 -05:00
RetiredWizard
761d787148 Use CIRCUITPY_OS_GETENV to guard new feature 2025-02-26 16:00:02 -05:00
Dan Halbert
00cde47067 web_workflow.c: check for empty SSID before starting web workflow 2025-02-26 13:27:01 -05:00
RetiredWizard
93f8076e5d Remove cond on FULL_BUILD & mpconfigboard.mk changes 2025-02-26 10:00:45 -05:00
RetiredWizard
43b90ac299 Use CIRCUITPY_FULL_BUILD to reduce size of m0 boards 2025-02-25 16:05:06 -05:00
RetiredWizard
2ba8d26314 disable scaling for small M0 builds 2025-02-25 11:50:26 -05:00
RetiredWizard
cdaccdbda3 Add CIRCUITPY_TERMINAL_SCALE settings.toml parameter 2025-02-25 03:05:58 -05:00
eightycc
0a0eb7a4f6 Restore console_uart_printf, fix use of __ZEPHYR__. 2025-02-13 06:52:12 -08:00
eightycc
c7f28adad7 Fix CIRCUITPY_PORT_SERIAL guard in serial_early_init. 2025-02-08 08:42:14 -08:00
Scott Shawcroft
7f0cc9e7b4
Add Zephyr port
This port is meant to grow to encompass all existing boards. For
now, it is a port while we transition over.

It is named `zephyr-cp` to differentiate it from the MicroPython
`zephyr` port. They are separate implementations.
2025-02-04 11:24:13 -08:00
Dan Halbert
98e2afa7e1
Merge pull request #9964 from eightycc/serial_uart_console
Serial UART Console Improvements
2025-01-16 14:35:14 -05:00
eightycc
687e439299 Try py/mpprint.h include again. 2025-01-16 08:49:55 -08:00