Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
d78a9c7
curiosity: switch back to external flash filesystem
dhalbert Jun 17, 2025
03da934
Merge remote-tracking branch 'adafruit/main' into development
dhalbert Sep 9, 2025
06f7192
Rev 3 board changes; lots of flash so turn on most features
dhalbert Sep 10, 2025
dd0e10d
turn on canio
dhalbert Sep 21, 2025
1ad0d5f
drop Nano from Microchip Curiosity CircuitPython Nano
dhalbert Oct 3, 2025
3d40ba3
Update to ESP IDF 5.5.1
tannewt Aug 14, 2025
c25ce60
Stop using our own memcpy. Enhance decode backtrace script.
tannewt Sep 11, 2025
f980144
[ports/espressif] esp-idf v5.5 changes
dbd Sep 15, 2025
bc44db8
[ports/espressif] support for esp32c61
dbd Sep 15, 2025
cdd423b
Make string0 use configurable
tannewt Sep 17, 2025
6ebd5bb
Fix PID check and C3 build
tannewt Sep 23, 2025
680fb20
Limit cryptography version to IDF limit
tannewt Sep 23, 2025
8190b40
Make room of IDF in S2 RTC slow memory
tannewt Sep 23, 2025
2fd8589
Fix C2, H2 and S3 builds
tannewt Sep 24, 2025
4ea6bb7
Tweak coex inclusion
tannewt Sep 24, 2025
4062014
Tweak coex inclusion (again). The wrapper is always needed with wifi.
tannewt Sep 25, 2025
fec2046
Formatting
tannewt Sep 26, 2025
c493f1b
Always link coex with wifi. Shrink 2M C3
tannewt Sep 26, 2025
b0f3a23
Disable memory speed optimization on 2m board.
tannewt Sep 26, 2025
9dbe0d1
Don't duplicate USB callbacks.
tannewt Oct 6, 2025
a6a6ebe
Fix C6 by disabling hardware SHA
tannewt Oct 8, 2025
5df18c3
Clean up two leftovers from debugging
tannewt Oct 16, 2025
f8cb53c
Fix overriding delay without an OS
tannewt Oct 17, 2025
8b1fcb4
Merge branch 'main' into idf5.5.1
tannewt Oct 17, 2025
6fe19f7
Merge pull request #10676 from tannewt/idf5.5.1
tannewt Oct 20, 2025
61e80a6
pin changes
dhalbert Oct 22, 2025
b076e08
board: add board waveshare_esp32_s3_touch_lcd_1_47
natheihei Oct 25, 2025
cb458bf
Add Waveshare ESP32S3 Touch LCD 2.8inch display board
intGus Oct 27, 2025
9f2fed5
Merge pull request #10689 from natheihei/esp32s3_touch_lcd_147
tannewt Oct 27, 2025
b406116
Update pins.c
CoffeeTronics Oct 27, 2025
064574d
Fix trailing-whitespace and end-of-files
intGus Oct 27, 2025
b7997ec
Merge pull request #1 from CoffeeTronics/patch-1
ross-satchell Oct 27, 2025
706c4b2
Merge pull request #10287 from ross-satchell/development
dhalbert Oct 27, 2025
5028d2c
Remove fallback pin aliases; keep only user-accessible pins
intGus Oct 28, 2025
8ec17f8
Merge pull request #10691 from intGus/waveshare-esp32_s3_lcd_2.8
tannewt Oct 29, 2025
5a4662c
Add terminalio.Terminal example usage to docstring. Move init functio…
FoamyGuy Oct 30, 2025
3c34a5d
Merge pull request #10698 from FoamyGuy/terminal_example
tannewt Oct 30, 2025
6b458a9
finalisers for SPI; clean up sdcardio; reset all pins after finaliser…
dhalbert Oct 30, 2025
2800777
remove local tracking of never_reset in all common-hal/busio/SPI.c
dhalbert Oct 31, 2025
803be58
Merge pull request #10699 from dhalbert/spi-sd-race-fixes
tannewt Nov 1, 2025
85e145f
ports/espressif: add pins for seeed xiao esp32s3 plus board
chinh4 Nov 2, 2025
4c4a188
Add mipidsi module for MIPI DSI displays
tannewt Oct 17, 2025
eb84f5a
ports/espressif: add MT* pin aliases to seeed xiao esp32s3 sense board
chinh4 Nov 4, 2025
672f685
ports/espressif: add back the I2S pin aliases
chinh4 Nov 4, 2025
785d599
seeed_xiao_esp32_s3_sense: stylize pins.c
chinh4 Nov 4, 2025
4c03768
seeed_xiao_esp32_s3_sense: add back pin alias
chinh4 Nov 4, 2025
f469e93
Fix Zephyr build
tannewt Nov 3, 2025
ec7ab07
Merge pull request #10701 from chinh4thepro/seeed_xiao_esp32_s3_plus
dhalbert Nov 4, 2025
7b452dc
Update translation files
weblate Nov 4, 2025
5c2d12b
Merge pull request #10705 from weblate/weblate-circuitpython-main
dhalbert Nov 4, 2025
d2dcfec
espressif_esp32p4_function_ev/pins.c: add whitespace to clearly show …
dhalbert Nov 4, 2025
292d209
Better reasoned allocations
tannewt Nov 5, 2025
000fa5a
Use latest macos in CI
tannewt Nov 5, 2025
91e36f1
stop building intel and universal macos mpy-cross
dhalbert Nov 5, 2025
52377b4
Merge pull request #10703 from tannewt/mipidsi
dhalbert Nov 5, 2025
7c9f9f6
Update translation files
weblate Nov 5, 2025
984e072
Merge pull request #10706 from tannewt/macos-latest-20251104
dhalbert Nov 5, 2025
e8aa7e0
Merge remote-tracking branch 'origin/main'
weblate Nov 5, 2025
91d4181
update frozen libraries
dhalbert Nov 5, 2025
01b8b96
Merge pull request #10709 from weblate/weblate-circuitpython-main
dhalbert Nov 5, 2025
fa4caf8
Merge pull request #10710 from dhalbert/update-frozen-2025-11-05
dhalbert Nov 5, 2025
3f0b1b8
Fix mipidsi cache flush
tannewt Nov 14, 2025
f15d4b2
Merge pull request #10713 from tannewt/fix_dsi_bottom
dhalbert Nov 14, 2025
82ff9f1
Enable OV3660 camera support on XIAO S3
tannewt Nov 19, 2025
b35fbdc
Allow microcontroller.nvm to be bigger than 8k
hmaerki Nov 20, 2025
f6f52ad
Merge pull request #10720 from entoothiast/allow_nvm_bigger_8k
tannewt Nov 20, 2025
70a3af8
Update to Zephyr v4.3.0
tannewt Nov 17, 2025
1d13e30
Merge pull request #10716 from tannewt/zephyr-v4.3.0
dhalbert Nov 22, 2025
c5a28aa
hack_club_sprig: add board.SPI() for display and SD card use
dhalbert Nov 25, 2025
11727bd
Merge pull request #10727 from dhalbert/hack-club-sprig-board-spi
tannewt Nov 26, 2025
26bd5af
bitmaptools.replace_color() function
FoamyGuy Dec 2, 2025
579afb2
fix code format
FoamyGuy Dec 2, 2025
f6b91b7
simpler arg name, validate bitmap type, reuse error message, remove u…
FoamyGuy Dec 2, 2025
7b429ba
-Wno-missing-field-initializers on unix port make
FoamyGuy Dec 2, 2025
108860a
Merge pull request #10732 from FoamyGuy/bitmaptools_replace_color
dhalbert Dec 2, 2025
88619f4
Initial commit
noqman Dec 3, 2025
948c5b7
Merge branch 'add-edu-pico2' of https://github.com/CytronTechnologies…
noqman Dec 3, 2025
da50dfa
Add I2C support to the Zephyr builds
tannewt Dec 2, 2025
4640859
Allow swapping LSFS USB on ESP32-P4 to USB OTG
tannewt Dec 4, 2025
1ddc9d0
Fix board autogen
tannewt Dec 4, 2025
145d06f
Fix doc build
tannewt Dec 4, 2025
7e7abc0
add studiolab_picoexpander# Please enter the commit message for your …
Jerzeek Dec 4, 2025
84373eb
Correct PID and VID
Jerzeek Dec 4, 2025
0348f97
Fix ESP builds
tannewt Dec 4, 2025
e5fb28d
Revert TinyUSB update. It is too big now
tannewt Dec 4, 2025
3453683
implement hashlib.new('sha256') support
samblenny Dec 5, 2025
f80d992
enable hashlib sha1 & sha256 for CLUE board
samblenny Dec 5, 2025
db86a75
Add mutable brightness
tannewt Dec 5, 2025
9e204f1
Remove adafruit_bus_device
noqman Dec 8, 2025
2d6d5f6
Remove adafruit_sdcard and enable sdcardio
noqman Dec 8, 2025
c69dc8f
Add adafruit_OPT4048
noqman Dec 8, 2025
b04f7e5
Add the OPT4048 submodule
noqman Dec 8, 2025
3630042
Add parens
tannewt Dec 8, 2025
cc05153
Merge pull request #10736 from tannewt/fix_tab5_usb
tannewt Dec 8, 2025
30c8dd6
default to enabling SHA256 when hashlib is enabled
samblenny Dec 8, 2025
15956af
Merge pull request #10735 from tannewt/zephyr_i2c
tannewt Dec 8, 2025
9996cbf
Update translation files
weblate Dec 8, 2025
f9d5778
turn on hashlib for all nrf52840 boards
samblenny Dec 8, 2025
fabe72b
remove redundant hashlib enable for CLUE
samblenny Dec 8, 2025
c1bd53d
remove CIRCUITPY_HASHLIB_SHA256 ifdef guards
samblenny Dec 8, 2025
da16371
Merge pull request #10742 from weblate/weblate-circuitpython-main
tannewt Dec 8, 2025
c6ae68a
Init older M5Stack Tab5 display
tannewt Dec 8, 2025
557a530
Merge pull request #10719 from tannewt/xiao_s3_ov3660_support
dhalbert Dec 8, 2025
39332eb
fix hashlib.new() documentation comment
samblenny Dec 8, 2025
9133ea2
Add board.DISPLAY()
tannewt Dec 9, 2025
7cfb1cb
Fix USB on P4 EV
tannewt Dec 9, 2025
75bf3bd
correct pin order
Jerzeek Dec 9, 2025
cb8ad1f
Correct board name
Jerzeek Dec 9, 2025
c32fd67
Merge remote-tracking branch 'origin/main' into picoexpander
Jerzeek Dec 9, 2025
a8f4738
Merge pull request #10737 from Jerzeek/picoexpander
dhalbert Dec 9, 2025
c8274f9
update frozen libs
FoamyGuy Dec 9, 2025
9afc458
Merge pull request #10744 from tannewt/fix_p4_ev_usb
tannewt Dec 9, 2025
5f25989
Merge pull request #10745 from FoamyGuy/update_frozen_libs
tannewt Dec 9, 2025
d38759b
Fix zephyr_i2c stub
tannewt Dec 9, 2025
648aae0
Merge pull request #10740 from samblenny/hashlib-sha1-sha256
tannewt Dec 9, 2025
f575436
Merge pull request #10746 from tannewt/fix_zephyr_i2c_stub
dhalbert Dec 9, 2025
97b8343
Merge pull request #10743 from tannewt/init_tab5_display
dhalbert Dec 9, 2025
cf9f4a5
Add SPI and merge zephyr_(serial|i2c) into busio
tannewt Dec 9, 2025
c2f97a2
Merge pull request #10752 from tannewt/zephyr_spi
dhalbert Dec 17, 2025
5457fc8
Update translation files
weblate Dec 17, 2025
3653803
Switch to Zephyr USB + QoL changes
tannewt Dec 16, 2025
eb0be7e
Add new usb.c to old builds
tannewt Dec 18, 2025
248dd38
Fix host-only tinyusb builds
tannewt Dec 18, 2025
ad2e20b
Merge pull request #10761 from tannewt/zephyr_improvements
dhalbert Dec 19, 2025
8fd421d
Merge remote-tracking branch 'origin/main'
weblate Dec 19, 2025
ba414b3
Merge pull request #10759 from weblate/weblate-circuitpython-main
dhalbert Dec 19, 2025
10b215b
Merge branch 'adafruit:main' into add-edu-pico2
noqman Dec 21, 2025
51057e7
Add frozen PAJ7620 submodule and adjust firmware flash allocation
noqman Dec 21, 2025
195938d
Re-enable CIRCUITPY_SSL_MBEDTLS and change the optimization flag to -Os
noqman Dec 22, 2025
83a933d
Disable sdcardio and add Adafruit_SD frozen
noqman Dec 23, 2025
9160a49
Enable sdcardio and unfreeze Adafruit_SD
noqman Dec 23, 2025
9459aa9
Merge pull request #10734 from CytronTechnologies/add-edu-pico2
dhalbert Dec 27, 2025
ca2afcc
Rename board folder/id from cytron_edu_pico_v2_2w to cytron_edu_v2_pi…
noqman Dec 29, 2025
8db0f0a
Merge branch 'adafruit:main' into add-edu-pico2
noqman Dec 29, 2025
fc6bf96
Merge pull request #10768 from CytronTechnologies/add-edu-pico2
tannewt Jan 2, 2026
7b77c43
update frozen libs
FoamyGuy Jan 7, 2026
57aec3a
Merge pull request #10774 from FoamyGuy/update_frozen_libs
dhalbert Jan 7, 2026
4fe2f03
Add support for Yoto Mini and Yoto Player V3
tannewt Jan 13, 2026
21c9645
Fix codespell
tannewt Jan 24, 2026
6ead6b4
Fix stubs and tweak IOPin deinit
tannewt Jan 24, 2026
4826204
Add missing quote in hashlib.new docstring
fearnoeval Jan 26, 2026
8c0d596
Merge pull request #10784 from fearnoeval/hashlib-docstring-fix
dhalbert Jan 26, 2026
bcf7549
Make board optionally mutable
tannewt Jan 26, 2026
de43113
Fix other FourWire calls
tannewt Jan 26, 2026
e1fe8a0
Fix Zephyr builds
tannewt Jan 27, 2026
8c22e67
Save space by disabling DigitalInOut protocol support where needed
tannewt Jan 27, 2026
b79de65
Initial defn for Freensy 2350
dhalbert Jan 27, 2026
928e6bc
Add copespell ignores and fix stubs
tannewt Jan 27, 2026
dd82fe0
Update __init__.c
hartzell Jan 28, 2026
342a364
name change to Tinychad
dhalbert Jan 28, 2026
acbf3b4
Merge pull request #10789 from hartzell-forks/rainbowio-doc-improvement
dhalbert Jan 28, 2026
47990e3
Merge pull request #10787 from dhalbert/freensy-2350-initial
tannewt Jan 29, 2026
44f3816
Fixes for native sim
tannewt Jan 27, 2026
bb222a7
RM690B0 driver for Waveshare ESP32-S3 AMOLED 2.41"
ppsx Jan 30, 2026
76caacc
Merge branch '10.0.x' into rm690b0
ppsx Jan 30, 2026
885428e
Add M5Stack CoreS3 SE board definition
scarolan Jan 30, 2026
069ad6a
Add basic native sim tests
tannewt Jan 28, 2026
e9b74b1
Update audiobusio.PDMIn.record()
tekktrik Feb 1, 2026
23be085
Build native sim in CI explicitly
tannewt Feb 2, 2026
4d2f974
Dunder asm for Zephyr toolchain
tannewt Feb 2, 2026
03ec5c8
Changes based on Dan's feedback
tannewt Feb 2, 2026
4fdf0d1
Fix digitalio allocation location
tannewt Feb 3, 2026
e95921b
Fix samd pin tracking
tannewt Feb 3, 2026
b439846
Use assigned Espressif USB PID 0x8348
scarolan Feb 3, 2026
57eb925
Merge pull request #10797 from tekktrik/dev/fix-pdmin-record
dhalbert Feb 3, 2026
74e380b
Fix last overflowing board
tannewt Feb 3, 2026
5aa0651
Merge pull request #10794 from scarolan/add-m5stack-cores3-se
tannewt Feb 3, 2026
1dc9c83
Fetch submodules
tannewt Feb 3, 2026
df8b3e5
Guard zephyr include. Add fetch-port-submodules make target
tannewt Feb 3, 2026
1ed4442
Fix thunk issue
tannewt Feb 3, 2026
ac063d1
Zephyr ifdef
tannewt Feb 3, 2026
f7c66cc
install mtools
tannewt Feb 3, 2026
6ab3b0b
Move other ports to gchelper
tannewt Feb 3, 2026
4b7b098
Merge pull request #10783 from tannewt/yoto
tannewt Feb 4, 2026
38c118b
Update translation files
weblate Feb 4, 2026
57ce5da
Fix AFLAGS issues
tannewt Feb 4, 2026
34cf18d
Merge remote-tracking branch 'adafruit/main' into zephyr_native_sim
tannewt Feb 4, 2026
86bb6db
raspberrypi: PDMIn: Fix sample rate calculation.
jepler Feb 4, 2026
c95cbea
raspberrypi: PDMIn: Fix sample rate check.
jepler Feb 4, 2026
5cda32b
raspberrypi: PDMIn: Free resources when failing to construct.
jepler Feb 4, 2026
5c70dc0
audio: Remove unused function prototypes.
jepler Feb 4, 2026
ed54e9d
audio: Call audiosample_mark_deinit.
jepler Feb 4, 2026
c5066ab
Update autogen file after merge
tannewt Feb 4, 2026
f545763
Remove cpu_regs. We're using the MP stuff now
tannewt Feb 4, 2026
f8c06e3
Fix board builds
tannewt Feb 4, 2026
e785bac
Merge pull request #10795 from tannewt/zephyr_native_sim
dhalbert Feb 4, 2026
b17f630
Merge remote-tracking branch 'origin/main'
weblate Feb 5, 2026
50757ed
Merge pull request #10802 from weblate/weblate-circuitpython-main
dhalbert Feb 5, 2026
25e8293
Merge pull request #10803 from jepler/issue10799
dhalbert Feb 5, 2026
b975d1d
py/nlrthumb.c: restore r1,r2,r3 clobbers to nlr_push()
dhalbert Feb 6, 2026
726edf7
Merge pull request #10804 from jepler/issue10066
dhalbert Feb 6, 2026
ac9e846
Merge pull request #10805 from dhalbert/nlrthumb-clobbers
tannewt Feb 6, 2026
8df888e
prevent recursive display refresh
dhalbert Feb 7, 2026
ad580f4
Bump circuitpython-stage to 1.4.0
deshipu Feb 9, 2026
32bfcdb
Merge pull request #10807 from python-ugame/stage-1.4.0
dhalbert Feb 9, 2026
bcb9cd1
don't start refresh until we know bus is available
dhalbert Feb 9, 2026
cdd0cdd
Merge pull request #10806 from dhalbert/prevent-recursive-display-ref…
dhalbert Feb 9, 2026
4599aba
update frozen libraries
dhalbert Feb 9, 2026
10680d6
Merge pull request #10808 from dhalbert/update-frozen-2026-02-09
FoamyGuy Feb 10, 2026
7d72ac9
Merge remote-tracking branch 'adafruit/10.0.x' into merge-from-10.0.x
dhalbert Feb 10, 2026
ecdb5db
remove guard meant to be removed in #10755
dhalbert Feb 10, 2026
020c793
Merge pull request #10810 from dhalbert/merge-from-10.0.x
tannewt Feb 10, 2026
f65029e
Update translation files
weblate Feb 10, 2026
5a1b57c
fix silab compile issues
dhalbert Feb 10, 2026
2effd12
Merge pull request #10811 from dhalbert/fix-10755
tannewt Feb 10, 2026
7d8d9e7
Merge remote-tracking branch 'origin/main'
weblate Feb 10, 2026
0558a4e
Merge pull request #10812 from weblate/weblate-circuitpython-main
dhalbert Feb 10, 2026
0b3b90a
ble_hci PacketBuffer.h: need a def for ble_event_handler_t
dhalbert Feb 10, 2026
34cdb47
Merge pull request #10813 from dhalbert/ble_event_handler_t-for-ble_hci
tannewt Feb 11, 2026
a2ab553
Add board definition for uGame S3
deshipu Feb 12, 2026
8142afc
Translated using Weblate (Indonesian)
arifpedia Feb 12, 2026
3cbc02f
Merge remote-tracking branch 'origin/main'
weblate Feb 13, 2026
bfaf957
Merge pull request #10815 from python-ugame/deshibu-ugame-s3
tannewt Feb 13, 2026
28705b0
Merge remote-tracking branch 'origin/main'
weblate Feb 13, 2026
e26fb4c
shrink pygamer board
dhalbert Feb 13, 2026
8d17d0c
Merge pull request #10816 from weblate/weblate-circuitpython-main
dhalbert Feb 13, 2026
4b2111e
os.getenv() now always returns str; add supervisor.get_setting() to f…
dhalbert Feb 15, 2026
7bb0c02
add port_yield from #10795 only on zephyr to fix #10822
dhalbert Feb 16, 2026
f4cc5f5
shrink pygamer
dhalbert Feb 16, 2026
4ec807f
update to arm gcc 15.2Rel1
dhalbert Feb 17, 2026
40abcd1
update .devcontainer to gcc 15.2
dhalbert Feb 17, 2026
1934060
Drop: image_converter, fonts, espsdcard; New: qspibus; Using: display…
ppsx Jan 30, 2026
3840b81
Use TRNG as additional entropy source on RP2350
mimi89999 Feb 17, 2026
d85a4fc
remove unneeded -fno-inline-functions and -ggdb3; fix cxd56 noreturn …
dhalbert Feb 17, 2026
2dee190
-Os for some stm boards
dhalbert Feb 17, 2026
9b72899
Merge pull request #10824 from dhalbert/revert-port_yield-10795-10.1.x
dhalbert Feb 17, 2026
4358b44
Merge pull request #10819 from dhalbert/improved-settings-toml-fetching
tannewt Feb 17, 2026
fce9ce6
Update translation files
weblate Feb 17, 2026
52ad29d
Merge pull request #10828 from weblate/weblate-circuitpython-main
dhalbert Feb 17, 2026
1020d93
Merge remote-tracking branch 'adafruit/10.1.x' into merge-from-10.1.x
dhalbert Feb 17, 2026
35401b5
Merge pull request #10826 from mimi89999/trng_rp2350
tannewt Feb 18, 2026
714d8c3
Merge pull request #10825 from dhalbert/gcc-15.2Rel1
tannewt Feb 18, 2026
8a4c050
Merge pull request #10829 from dhalbert/merge-from-10.1.x
tannewt Feb 18, 2026
0a244ee
Remove extra yields for Zephyr
tannewt Feb 18, 2026
35a7e43
MagTag: autodetect display type
dhalbert Feb 19, 2026
ac60b31
Merge pull request #10834 from tannewt/fix_port_yield
dhalbert Feb 19, 2026
b59a3e5
support user-configuration files
bablokb Feb 14, 2026
387a45c
changed filenames as requested
bablokb Feb 16, 2026
e464587
Lower SPI speed on uGame S3 to avoid display glitches
deshipu Feb 19, 2026
3dfba6b
added documentation for user config files
bablokb Feb 19, 2026
0eddc63
Merge pull request #10836 from dhalbert/magtag-auto-colstart
dhalbert Feb 19, 2026
e3b63a3
Merge pull request #10837 from python-ugame/ugames3-spi-speed
dhalbert Feb 19, 2026
546b41e
Merge pull request #10817 from bablokb/userconfig
dhalbert Feb 19, 2026
2b0e368
espressif: check for deinit in common_hal_busio_i2c_unlock()
dhalbert Feb 20, 2026
0a18d1d
pin click<8.2.0 to avoid esp-idf build problem
dhalbert Feb 20, 2026
a750c5f
Merge pull request #10838 from dhalbert/espressif-fix-i2c-deinit
tannewt Feb 20, 2026
0150116
Merge pull request #10839 from adafruit/10.1.x
tannewt Feb 20, 2026
38dee84
Merge tag '10.1.3' into rm690b0
ppsx Feb 23, 2026
46d2ebb
Merge remote-tracking branch 'upstream/main' into rm690b0
ppsx Feb 23, 2026
2e8faab
Fix: typo
ppsx Feb 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .devcontainer/cortex-m-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ echo -e "[cortex-m-toolchain.sh] downloading and installing gcc-arm-non-eabi too
cd /workspaces

wget -qO gcc-arm-none-eabi.tar.xz \
https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xz

tar -xJf gcc-arm-none-eabi.tar.xz
ln -s arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi gcc-arm-none-eabi
ln -s arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi gcc-arm-none-eabi
rm -f gcc-arm-none-eabi.tar.xz

echo -e "[cortex-m-toolchain.sh] update PATH in environment"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/deps/external/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
# When changing this update what Windows grabs too!
release: '14.2.Rel1'
release: '15.2.Rel1'

# espressif
- name: Get espressif toolchain
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/deps/ports/broadcom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ runs:
steps:
- name: Get broadcom toolchain
run: |
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/arm-gnu-toolchain-14.2.rel1-x86_64-aarch64-none-elf.tar.xz
sudo tar -C /usr --strip-components=1 -xaf arm-gnu-toolchain-14.2.rel1-x86_64-aarch64-none-elf.tar.xz
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/arm-gnu-toolchain-15.2.rel1-x86_64-aarch64-none-elf.tar.xz
sudo tar -C /usr --strip-components=1 -xaf arm-gnu-toolchain-15.2.rel1-x86_64-aarch64-none-elf.tar.xz
sudo apt-get update
sudo apt-get install -y mtools
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions .github/actions/deps/ports/zephyr-cp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Fetch Zephyr port deps
runs:
using: composite
steps:
- name: Get libusb and mtools
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libusb-1.0-0-dev libudev-dev mtools
shell: bash
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ jobs:
python3 -c "import sys, locale; print(sys.getdefaultencoding(), locale.getpreferredencoding(False))"
- name: Install dependencies
run: |
wget --no-verbose -O gcc-arm.zip https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-mingw-w64-i686-arm-none-eabi.zip
wget --no-verbose -O gcc-arm.zip https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-mingw-w64-i686-arm-none-eabi.zip
unzip -q -d /tmp/arm-gnu-toolchain gcc-arm.zip
tar -C /tmp/arm-gnu-toolchain -cf - . | tar -C /usr/local -xf -
# We could use a venv instead, but that requires entering the venv on each run step
Expand Down
91 changes: 61 additions & 30 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,36 @@ jobs:
TEST_native: --emit native
TEST_native_mpy: --via-mpy --emit native -d basics float micropython
steps:
- name: Set up repository
uses: actions/checkout@v4
with:
submodules: false
show-progress: false
fetch-depth: 1
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Set up submodules
uses: ./.github/actions/deps/submodules
with:
target: tests
- name: Set up external
if: matrix.test == 'all'
uses: ./.github/actions/deps/external
- name: Set up mpy-cross
uses: ./.github/actions/mpy_cross
with:
cp-version: ${{ inputs.cp-version }}
- name: Build unix port
run: make -C ports/unix VARIANT=coverage -j4
- name: Run tests
run: ./run-tests.py -j4 ${{ env[format('TEST_{0}', matrix.test)] }}
working-directory: tests
- name: Print failure info
run: ./run-tests.py -j4 --print-failures
if: failure()
working-directory: tests
- name: Set up repository
uses: actions/checkout@v4
with:
submodules: false
show-progress: false
fetch-depth: 1
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Set up submodules
uses: ./.github/actions/deps/submodules
with:
target: tests
- name: Set up external
if: matrix.test == 'all'
uses: ./.github/actions/deps/external
- name: Set up mpy-cross
uses: ./.github/actions/mpy_cross
with:
cp-version: ${{ inputs.cp-version }}
- name: Build unix port
run: make -C ports/unix VARIANT=coverage -j4
- name: Run tests
run: ./run-tests.py -j4 ${{ env[format('TEST_{0}', matrix.test)] }}
working-directory: tests
- name: Print failure info
run: ./run-tests.py -j4 --print-failures
if: failure()
working-directory: tests
# Not working after MicroPython v1.23 merge.
# - name: Build native modules
# if: matrix.test == 'all'
Expand All @@ -66,3 +66,34 @@ jobs:
# if: matrix.test == 'all'
# run: ./run-natmodtests.py extmod/{heapq*,random*,re*}.py
# working-directory: tests

zephyr:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
env:
CP_VERSION: ${{ inputs.cp-version }}
steps:
- name: Set up repository
uses: actions/checkout@v4
with:
submodules: false
show-progress: false
fetch-depth: 1
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Set up Zephyr
uses: ./.github/actions/deps/ports/zephyr-cp
- name: Set up submodules
id: set-up-submodules
uses: ./.github/actions/deps/submodules
with:
target: zephyr-cp
- name: Set up external
uses: ./.github/actions/deps/external
- name: Build native sim target
run: make -C ports/zephyr-cp -j2 BOARD=native_native_sim
- name: Run Zephyr tests
run: make -C ports/zephyr-cp test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ __pycache__/
######################
GNUmakefile
user.props
user_pre_mpconfigport.mk
user_post_mpconfigport.mk
user_post_circuitpy_defns.mk

# Sphinx output
###############
Expand Down
8 changes: 7 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
[submodule "ports/espressif/esp-idf"]
path = ports/espressif/esp-idf
url = https://github.com/adafruit/esp-idf.git
branch = circuitpython-v5.4.1
branch = circuitpython-v5.5.1
[submodule "ports/espressif/esp-protocols"]
path = ports/espressif/esp-protocols
url = https://github.com/adafruit/esp-protocols.git
Expand Down Expand Up @@ -415,3 +415,9 @@
[submodule "ports/espressif/microros-lib"]
path = ports/espressif/microros-lib
url = https://github.com/hierophect/microros-lib.git
[submodule "frozen/Adafruit_CircuitPython_OPT4048"]
path = frozen/Adafruit_CircuitPython_OPT4048
url = https://github.com/adafruit/Adafruit_CircuitPython_OPT4048.git
[submodule "frozen/CircuitPython_edupico2_paj7620"]
path = frozen/CircuitPython_edupico2_paj7620
url = https://github.com/CytronTechnologies/CircuitPython_edupico2_paj7620.git
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
lib/mbedtls_errors/generate_errors.diff
)
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.4.1
hooks:
- id: codespell
args: [-w]
Expand Down
46 changes: 46 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,52 @@ If you aren't sure what boards exist, have a peek in the boards subdirectory of
If you have a fast computer with many cores, consider adding `-j` to your build flags, such as `-j17` on
a 6-core 12-thread machine.

## Configuration

Ports and boards are preconfigured, thus make knows how to build a specific
board. Power users can change the configuration of a specific board or port,
either by passing compile-time options to make, or by creating appropriate
make include files.

The configuration system is hierarchical. A higher level will typically only
set an option that a lower level hasn't configured:

* board configuration: `mpconfigport.mk`
* pre-port user configuration: `user_pre_mpconfigport.mk`
* port configuration: `mpconfigport.mk`
* post-port user configuration: `user_post_mpconfigport.mk`
* global configuration: `py/circuitpython_mpconfig.mk`

The board configuration is within the board-directory, e.g.
`ports/raspberrypi/boards/raspberry_pi_pico/`, the port configuration is
in the port-directory, e.g. `ports/raspberrypi/`.

Editing these configuration files is the way to go if you want to change
the default behavior and ultimately create a pull-request. Otherwise,
changes should go into one of the user configuration files.

User specific configurations are optional and should be maintained out of
tree. Passing `-I directory` tells make where to search for the additional
configuration files. E.g. to speed up boots by removing the wait-time for
the save-mode button press, you would:

* create a directory: `mkdir -p ~/my_cp_config`
* create the config file: `echo 'CIRCUITPY_SKIP_SAFE_MODE_WAIT=0' > ~/my_cp_config/user_pre_mpconfigport.mk`
* run make with: `make -I ~/my_cp_config BOARD=raspberry_pi_pico`

Besides the `user*mpconfigport.mk` files, there is another optional file
named `user_post_circuitpy_defns.mk`. This file is included at the end
and can be used to tweak compiler-definitions that are not covered by
one of the compile time options `CIRCUITPY_*`.

Example: to create a build for the Pico2-W with an integrated saves-partition,
you would create a `user_post_circuitpy_defns.mk` with the following content:

$(info ===> processing user_post_circuitpy_defns.mk)
ifeq (${BOARD},raspberry_pi_pico2_w)
CFLAGS += -DCIRCUITPY_SAVES_PARTITION_SIZE=1048576
endif

## Testing

If you are working on changes to the core language, you might find it useful to run the test suite.
Expand Down
4 changes: 2 additions & 2 deletions devices/ble_hci/common-hal/_bleio/Adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "shared-bindings/_bleio/ScanEntry.h"
#include "shared-bindings/time/__init__.h"

#if CIRCUITPY_OS_GETENV
#if CIRCUITPY_SETTINGS_TOML
#include "shared-bindings/os/__init__.h"
#endif

Expand Down Expand Up @@ -261,7 +261,7 @@ static void _adapter_set_name(bleio_adapter_obj_t *self, mp_obj_str_t *name_obj)
static void bleio_adapter_hci_init(bleio_adapter_obj_t *self) {
mp_int_t name_len = 0;

#if CIRCUITPY_OS_GETENV
#if CIRCUITPY_SETTINGS_TOML
mp_obj_t name = common_hal_os_getenv("CIRCUITPY_BLE_NAME", mp_const_none);
if (name != mp_const_none) {
mp_arg_validate_type_string(name, MP_QSTR_CIRCUITPY_BLE_NAME);
Expand Down
3 changes: 3 additions & 0 deletions devices/ble_hci/common-hal/_bleio/PacketBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ typedef struct {
bool packet_queued;
} bleio_packet_buffer_obj_t;

// Unused, but needed for _common_hal_bleio_packet_buffer_construct()
typedef void *ble_event_handler_t;

void bleio_packet_buffer_update(bleio_packet_buffer_obj_t *self, mp_buffer_info_t *bufinfo);
4 changes: 2 additions & 2 deletions docs/environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Allows the entry of a display scaling factor used during the terminalio console
The entered scaling factor only affects the terminalio console and has no impact on
the UART, Web Workflow, BLE Workflow, etc consoles.

This feature is not enabled on boards that the CIRCUITPY_OS_GETENV (os CIRCUIPTY_FULL_BUILD)
This feature is not enabled on boards that the CIRCUITPY_SETTINGS_TOML (or CIRCUITPY_FULL_BUILD)
flag has been set to 0. Currently this is primarily boards with limited flash including some
of the Atmel_samd boards based on the SAMD21/M0 microprocessor.

Expand All @@ -197,7 +197,7 @@ Specifies a custom font file path to use for the terminalio console instead of t
``/fonts/terminal.lvfontbin``. This allows users to create and use custom fonts for the
CircuitPython console.

This feature requires both CIRCUITPY_OS_GETENV and CIRCUITPY_LVFONTIO to be enabled.
This feature requires both CIRCUITPY_SETTINGS_TOML and CIRCUITPY_LVFONTIO to be enabled.

Example:

Expand Down
3 changes: 2 additions & 1 deletion docs/shared_bindings_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@
"keypad.Keys": "CIRCUITPY_KEYPAD_KEYS",
"keypad.ShiftRegisterKeys": "CIRCUITPY_KEYPAD_SHIFTREGISTERKEYS",
"keypad_demux.DemuxKeyMatrix": "CIRCUITPY_KEYPAD_DEMUX",
"os.getenv": "CIRCUITPY_OS_GETENV",
"os.getenv": "CIRCUITPY_SETTINGS_TOML",
"select": "MICROPY_PY_SELECT_SELECT",
"supervisor.get_setting": "CIRCUITPY_SETTINGS_TOML",
"sys": "CIRCUITPY_SYS",
"terminalio": "CIRCUITPY_DISPLAYIO",
"usb": "CIRCUITPY_PYUSB",
Expand Down
11 changes: 10 additions & 1 deletion extmod/vfs_blockdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@ void mp_vfs_blockdev_init(mp_vfs_blockdev_t *self, mp_obj_t bdev) {
#endif
#if CIRCUITPY_SDIOIO
if (mp_obj_get_type(bdev) == &sdioio_SDCard_type) {
// TODO: Enable native blockdev for SDIO too.
self->flags |= MP_BLOCKDEV_FLAG_NATIVE | MP_BLOCKDEV_FLAG_HAVE_IOCTL;
self->readblocks[0] = mp_const_none;
self->readblocks[1] = bdev;
self->readblocks[2] = (mp_obj_t)sdioio_sdcard_readblocks; // native version
self->writeblocks[0] = mp_const_none;
self->writeblocks[1] = bdev;
self->writeblocks[2] = (mp_obj_t)sdioio_sdcard_writeblocks; // native version
self->u.ioctl[0] = mp_const_none;
self->u.ioctl[1] = bdev;
self->u.ioctl[2] = (mp_obj_t)sdioio_sdcard_ioctl; // native version
}
#endif
if (self->u.ioctl[0] != MP_OBJ_NULL) {
Expand Down
2 changes: 1 addition & 1 deletion frozen/Adafruit_CircuitPython_HID
Loading
Loading