Commit Graph

34600 Commits

Author SHA1 Message Date
Bill Sideris 2cc05f7ac8
Picow-ap wifi improvements 2023-08-23 20:04:51 +03:00
MicroDev af91625fb5
Merge pull request #8320 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-08-23 19:04:52 +05:30
Jeff Epler 2a5b938e37
Merge pull request #8325 from jepler/ci-matrix-docs-conf
ci_set_matrix: changing conf.py should not rebuild all boards
2023-08-23 08:25:17 -05:00
Jeff Epler 9064c6e7cb
ci_set_matrix: changing conf.py should not rebuild all boards 2023-08-23 07:22:28 -05:00
Jim Mussared 326dfd2a85 esp32/boards/ESP32_GENERIC_C3: Enable UART REPL.
This should have been added in 4815af75bc
when the variants were combined. The original non-USB variant got this
implicitly, and therefore was not in mpconfigvariant.h

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 15:49:37 +10:00
Jim Mussared 873bd00ad4 rp2: Rename PICO, PICO_W to RPI_PICO, RPI_PICO_W.
PICO might not always be a unique name across all ports, and the
convention generally for other boards is to do VENDOR_BOARD.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 15:49:37 +10:00
Jim Mussared ef03ca8bf2 esp8266: Add board variant support.
This merges the existing GENERIC, GENERIC_1M, and GENERIC_512k boards
into variants of the new ESP8266_GENERIC board (renamed from GENERIC so
as not to clash with other ports).

Also moves the generation of the "OTA" variant (previously generated by
autobuild/build-esp8266-latest.sh) into the variant.

Following the convention established for the WEACTSTUDIO rp2 board, the
names of the variants are FLASH_1M and FLASH_512K (but rename the .ld files
to use MiB and kiB).

Updates autobuild to build esp8266 firmware the same way as other ports.
This requires renaming the output from firmware-combined.bin to just
firmware.bin.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 15:49:37 +10:00
Jim Mussared aa23698119 esp32: Rename GENERIC* boards to ESP32_GENERIC*.
Board names need to be unique across ports, and GENERIC clashes with
the ESP8266 (which will be renamed to ESP8266_GENERIC).

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 13:54:37 +10:00
Jim Mussared 97ffc53ec9 {esp32,rp2,stm32}/Makefile: Append board variant to BUILD.
This allows switching between variants without clobbering the build
output.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 13:54:37 +10:00
Jim Mussared 1a99f74063 ports/*/boards/*/board.json: Remove "id" field.
This was used to override the firmware filename generated by the build
server (to match the historical name before board definitions existed).

Now we're making everything use the board definition name (i.e. the
directory name).

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 13:54:37 +10:00
Jim Mussared c3093080b1 stm32: Use uppercase variant names.
This is to support a future change to add the variant name to the build
directory and therefore should be the same style as the board name.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 13:54:37 +10:00
Jim Mussared 45845acf6d rp2: Use uppercase variant names.
This is to support a future change to add the variant name to the build
directory and therefore should be the same style as the board name.

This only affects the WEACTSTUDIO board. Also standardises on a convention
for naming flash-size variants. Normally we would write e.g. 2MiB, but in
uppercase, it's awkward to write 2MIB, so instead use 2M, 512K, etc for
variant names, but use 2MiB when not constrained by case (e.g. a regular
filename).

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 13:54:37 +10:00
Jim Mussared b5836e7252 esp32: Use uppercase variant names.
This is to support a future change to add the variant name to the build
directory and therefore should be the same style as the board name.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 13:54:37 +10:00
Jim Mussared f007d0aa3d nrf/boards: Rename all nRF boards to use uppercase.
This is to match all the other ports.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-23 13:54:37 +10:00
RetiredWizard d333ae9f5d Local pre-commit run changes 2023-08-22 23:46:43 -04:00
RetiredWizard 6eccdd9e7d Pimoroni PICO DV Base w/Pico W (network disabled) 2023-08-22 23:10:07 -04:00
Dan Halbert 92e991ddc8
Merge pull request #8322 from jepler/rtd-theme
Unconditionally use sphinx_rtd_theme when building docs
2023-08-22 22:17:04 -04:00
Jeff Epler 96a3b884f6
Unconditionally use sphinx_rtd_theme when building docs
This is a speculative fix for the latest build failure on RTD,
https://readthedocs.org/projects/circuitpython/builds/21689508/
which appears to be due to a change in RTD's "conf.py.tmpl"

2066e3486a

```
Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/circuitpython/envs/latest/lib/python3.11/site-packages/sphinx/config.py", line 358, in eval_config_file
    exec(code, namespace)  # NoQA: S102
    ^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/circuitpython/checkouts/latest/conf.py", line 600, in <module>
    'html_theme': html_theme,
                  ^^^^^^^^^^
NameError: name 'html_theme' is not defined
```
2023-08-22 21:05:56 -05:00
Angus Gratton 2919a9fbf3 stm32/modstm: Add MICROPY_PY_STM_CONST flag, clear it for STM32WL5.
MICROPY_PY_STM_CONST defaults to 1 if MICROPY_PY_STM is set.  Overriding to
0 disables the named register peripheral constants being including in the
stm32 module.

This saves about 7.5KB of code size for the STM32WL55, which is significant
as this SoC doesn't have a lot of flash.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-08-23 11:58:11 +10:00
Angus Gratton 02620c2236 stm32/subghz: Add STM32WL55 subghz radio interface to stm module.
This is the minimum C interface to allow a modem driver to be built in
Python.  Interface is simple, with the intention that the micropython-lib
driver is the main (only) consumer of it.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-08-23 11:58:11 +10:00
Angus Gratton 9e0f934cdf stm32/dma: Fix DMA completion on WL55 boards.
No IRQHandlers were compiled in for this board.

Includes small consolidation of the same DMAMUX_ENABLE line for STM32G4,
STM32WB, STM32WL.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-08-23 11:58:11 +10:00
Angus Gratton 2c62adb42c stm32/powerctrlboot: Support STM32WL system clock from HSE+PLL.
Switches default on the NUCLEO_WL55 board to use the HSE oscillator powered
from PB0_VDDTCXO pin.

Build-time configuration can select from MSI internal oscillator (previous
default), HSE via crystal, or HSE bypass with TCXO powered from PB0_VDDTCXO
pin (new default)

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-08-23 11:58:11 +10:00
Angus Gratton e6cfb77342 stm32/spi: Add STM32WL5 SUBGHZ SPI peripheral.
This is a "normal" SPI peripheral with no external pins, to avoid having to
grow spi_obj[] for just this one board map it as SPI ID 3 (board has SPI
IDs 1,2 already).

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-08-23 11:58:08 +10:00
Hosted Weblate cb3badc996
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2023-08-22 23:28:42 +02:00
Hosted Weblate fd08c80d3e
Merge remote-tracking branch 'origin/main' 2023-08-22 23:28:39 +02:00
Jonny Bergdahl eeb524edbe
Translated using Weblate (Swedish)
Currently translated at 100.0% (1003 of 1003 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2023-08-22 23:28:38 +02:00
Wellington Terumi Uemura ac5cb716fa
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1003 of 1003 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2023-08-22 23:28:38 +02:00
Dan Halbert e08ad22ef6
Merge pull request #8317 from jepler/merge-82x
Merge 8.2.x into main
2023-08-22 17:28:30 -04:00
Jeff Epler 6e8a59a948
Merge remote-tracking branch 'origin/8.2.x' into merge-82x 2023-08-22 14:10:29 -05:00
Jeff Epler dfb070b3d2
Merge pull request #8318 from dhalbert/remove-u-prefix
remove last uses of 'u' prefix
2023-08-22 14:09:17 -05:00
Dan Halbert acc4ee9c39
Merge pull request #8319 from jepler/document-rgbmatrix-8283
RGBMatrix: document constructor arguments
2023-08-22 14:14:39 -04:00
Jozsef Kiraly e9208b9c23 fix: Allow duplicate PID for 4MB and 16MB variant 2023-08-22 18:00:18 +01:00
Dan Halbert 4a62665175 fix native tests 2023-08-22 12:57:47 -04:00
Dan Halbert 88c22d5052 remove last uses of 'u' prefix 2023-08-22 12:57:47 -04:00
Jeff Epler c1dce99be9
Link to dedicated guide for rgbmatrix 2023-08-22 10:55:55 -05:00
Jeff Epler e336dc90cf
update explanation of height; it is optional 2023-08-22 10:53:10 -05:00
Jeff Epler 2dcc0d2a62
further explain width and height, it can't hurt 2023-08-22 10:46:34 -05:00
Jeff Epler 81ad2e05ba
address review comments 2023-08-22 10:44:35 -05:00
Jeff Epler 485924896e
RGBMatrix: document constructor arguments
Closes: #8283
2023-08-22 10:31:09 -05:00
Jeff Epler 24b7a4cde6
Merge remote-tracking branch 'origin/8.2.x' into merge-82x 2023-08-22 09:53:35 -05:00
Jeff Epler b589dc2589
Merge pull request #8091 from bill88t/update-picow
Update pico-sdk to 1.5.1
2023-08-22 09:51:20 -05:00
Jeff Epler bae7e5292e
Merge pull request #8298 from jepler/canio-doc-mcp2515
canio: add a doc note about boards like CAN feather that use mcp2515
2023-08-22 09:48:09 -05:00
Jeff Epler c07fff574e
Merge pull request #8304 from ccattuto/main
Fixed compilation error when FF_MAX_SS != FF_MIN_SS
2023-08-22 09:47:40 -05:00
Jeff Epler 283889bb57
Merge pull request #8309 from dhalbert/fix-pimoroni-dvi-base
fix framebuffer size for pimoroni dvi base
2023-08-22 09:47:25 -05:00
Jozsef Kiraly 4f7e66df08 fix: pre-commit 2023-08-22 15:17:40 +01:00
Jozsef Kiraly bb1b827f55 fix: Split 16M and 4M variants 2023-08-22 15:06:37 +01:00
Jeff Epler c029d6a165
Merge remote-tracking branch 'origin/8.2.x' into merge-82x 2023-08-22 08:49:16 -05:00
Jozsef Kiraly 9a140dc3ee Update ports/raspberrypi/boards/waveshare_rp2040_plus/mpconfigboard.mk
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2023-08-22 14:15:59 +01:00
Jozsef Kiraly 127f09b28c Update ports/raspberrypi/boards/waveshare_rp2040_plus/mpconfigboard.mk 2023-08-22 14:15:59 +01:00
Jozsef Kiraly 648ec1c0ed feat: Add support for Waveshare RP2040-Plus 2023-08-22 14:15:59 +01:00