Commit Graph

27307 Commits

Author SHA1 Message Date
Hosted Weblate 3084e1eba8
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/
2021-12-14 18:38:28 +01:00
Scott Shawcroft aee80d67b6
Merge pull request #5709 from WarriorOfWire/width_and_height
vectorio: Add width and height properties to rectangle
2021-12-14 09:38:14 -08:00
Pierre Constantineau 162e253949 finalizing pin assignments prior to final hardware test 2021-12-14 09:45:39 -06:00
robert-hh c5dbbf71c0 mimxrt: Use -Og instead of -O0 for DEBUG builds.
Thanks for the hint, Damien. The DEBUG build got very large recently.
The major difference is, that inline function are now inlined and
not included as a function. That's good and maybe bad. The good thing is,
that the code speed si now close to the final code. It could be worse
in single step debugging. I'll see.

Setting this option caused a new warning and a formatting error
to pop up at different places. Fixed as well.
2021-12-14 08:07:52 +01:00
robert-hh 64aa0bcb88 mimxrt: Enable ticks_cpu at boot time for NDEBUG builds only.
Otherwise, it get's in trouble with a Debugger. Reason to be found.
Also: Increase code segment to 2 MB for the MIMXRT1050_EVK build.
2021-12-14 08:07:52 +01:00
robert-hh 74e8db0ed1 mimxrt: Refactor the reading of the machine id.
The ID is read in a single function and used for:
- machine.unique_id()
- Ethernet MAC addresses.
- ...

That facilitates use of other MCU using a different access method for
the ID (e.g. i.MX RT1176).
2021-12-14 08:07:52 +01:00
robert-hh 1e9eaa7af5 mimxrt: Add a driver for the DP83848 PHY device.
Just another choice for the PHY interface.

Added: Keyword option phy_clock=LAN.IN or LAN.OUT
to define the source of the 50MHZ clock for the PHY
interface. The RMII clock is not enabled if it
is generated by a PYH board. Constants:

LAN.IN  The clock is provided by the PHY board.
LAN.OUT The clock is provided by the MCU board.

The default is LAN.OUT or the value set in mpconfigboard.h, which
is currently set to IN only for the SEEED ARCH MIX board. Usage etc:

lan = LAN(phy_type=LAN.PHY_DP83848, phy_clock=LAN.IN)
2021-12-14 08:07:52 +01:00
robert-hh 5d8941ec85 mimxrt: Fix a tiny unnoticed bug in sdcard.c.
This code line will hardly ever be compiled and executed, but since
it is there, it must be correct.
2021-12-14 08:07:52 +01:00
robert-hh ea09dccfea mimxrt: Re-Enable eth checksum creation by HW.
The initial problem with a wrong ICMP checksum was caused by
the test code setting a checksum and the HW taking that probably as
the start value and ending up with 0xffff. With a checksum field of 0
set by the test code the HW creates the proper checksum.
2021-12-14 08:07:52 +01:00
robert-hh bbe25f4704 mimxrt: Support selection of PHY type and address.
Useful for boards without a PHY interface, where that has to be
attached. Like the Seed ARCH MIX board or Vision SOM. Phy drivers
supported so far are:

- KSZ8081
- DP83825
- LAN8720

More to come. Usage e.g.:
lan = LAN(phy_type=LAN.PHY_LAN8720, phy_addr=1)

The default values are those set in mpconfigboard.h.
2021-12-14 08:07:52 +01:00
robert-hh bc1b0fd2c1 mimxrt: Define UART 0 on MIMXRT boards.
UART 0 is attached to the Debug USB port. The settings are
115200 Baud, 8N1.
For MIMXRT1010_EVK this is identical to UART1. For the other boards,
this is an additional UART.
2021-12-14 08:07:52 +01:00
Limor "Ladyada" Fried 7f5aa1a9bb
Merge pull request #5710 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-12-14 01:54:29 -05:00
gamblor21 7c1afb070a Documentation fixes 2021-12-13 22:31:29 -06:00
gamblor21 11ef0b48c0 Change map to tuple to save memory and match _write 2021-12-13 22:31:29 -06:00
gamblor21 9fafd7d7fd Initial commit 2021-12-13 22:31:29 -06:00
iabdalkader 1b7eee24eb extmod/network_ninaw10: Fix config of AP mode.
* Fix missing call to connect to configure module in AP mode.
* Use enum for config/connect args indices.
2021-12-14 15:14:58 +11:00
iabdalkader f21c565583 rp2/machine_uart: Handle and clear UART RX timeout IRQ.
The pico-sdk 1.3.0 update in 97a7cc243b
introduced a change that broke RP2 Bluetooth UART, and possibly UART in
general, which stops working right after UART is initialized.  The commit
raspberrypi/pico-sdk@2622e9b enables the UART receive timeout (RTIM) IRQ,
which is asserted when the receive FIFO is not empty, and no more
characters are received for a period of time.

This commit makes sure the RTIM IRQ is handled and cleared in
uart_service_interrupt.
2021-12-14 14:59:39 +11:00
Damien George 5adb1fa40e esp32,esp8266: Extract qstr from object when comparing keys in config().
Following on from a previous fix for the same problem made in
3a431fba50.

Fixes issue #8052.

Signed-off-by: Damien George <damien@micropython.org>
2021-12-14 14:27:13 +11:00
Tim Hawes c325633f8e Add methods to ssl.SSLContext for handling self-signed certs 2021-12-14 01:00:50 +00:00
Tim Hawes ef414bf1bd Handle server_hostname argument in espressif SSLContext.wrap_socket 2021-12-14 01:00:50 +00:00
Tim Hawes bcb516c496 Handle server_hostname=None in SSLContext.wrap_socket 2021-12-14 01:00:50 +00:00
Tim Hawes 8ef24afe7a Documentation fix for SSLContext.wrap_socket 2021-12-14 00:09:15 +00:00
Damien George 6995cf03dd stm32/sdcard: Add config option to force MM card capacity.
The current ST HAL does not support reading the extended CSD so cannot
correctly detect the capacity of high-capacity cards.  As a workaround, the
capacity can be forced via the MICROPY_HW_MMCARD_LOG_BLOCK_NBR config
option.

Signed-off-by: Damien George <damien@micropython.org>
2021-12-14 10:48:01 +11:00
Damien George b26704aac5 stm32/sdcard: Support 8-bit wide SDIO bus.
Signed-off-by: Damien George <damien@micropython.org>
2021-12-14 10:48:01 +11:00
Damien George 9a1ab2286d stm32/main: Call sdcard_init when only MICROPY_HW_ENABLE_MMCARD enabled.
Otherwise, if MMCARD is enabled and not SDCARD, then the GPIO will not be
configured for SDIO.

Signed-off-by: Damien George <damien@micropython.org>
2021-12-14 10:48:01 +11:00
Damien George 88ac5a3116 stm32: Update L4 code to build with latest stm32lib and L4 HAL 1.17.0.
Signed-off-by: Damien George <damien@micropython.org>
2021-12-14 10:48:01 +11:00
Damien George a0f5b3148a lib/stm32lib: Update library for L4 v1.17.0, new G4, WL, and MMC fixes.
Changes in this new library version are:
- Update L4 HAL to v1.17.0.
- Add G4 HAL at v1.3.0.
- Add WL HAL at v1.1.0.
- Fix F4 UART and DMA data loss with RX hardware flow control.
- Optimise USB to pass config struct by reference.
- Fix bug in F4 MMC HAL_MMC_Erase function.
- Fix bug setting MMC relative address in F4 and F7 HAL.

Signed-off-by: Damien George <damien@micropython.org>
2021-12-14 10:48:01 +11:00
Hosted Weblate 385b6e26a3
Merge remote-tracking branch 'origin/main' 2021-12-13 23:58:08 +01:00
Scott Shawcroft 7fea970379
Merge pull request #5597 from NathanY3G/add-board-sparkfun-thing-plus-stm32
Add board definition for SparkFun Thing Plus - STM32
2021-12-13 14:58:04 -08:00
Scott Shawcroft d162bbbe84
Merge pull request #5715 from dhalbert/adabot-for-website
Fix website action dependencies; don't build everything on CI changes - 7.1.x backport
2021-12-13 14:56:55 -08:00
Hosted Weblate c66c3a3b0f
Merge remote-tracking branch 'origin/main' 2021-12-13 22:47:09 +01:00
Dan Halbert 9166e5513c
Merge pull request #5714 from timhawes/pull-sslsocket-error-check
Fix to error checking in espressif SSLSocket
2021-12-13 16:47:03 -05:00
Dan Halbert dcc61d3532 remove whitespace 2021-12-13 15:44:55 -05:00
Scott Shawcroft d14868d540 Exclude ci checks and tests from building boards 2021-12-13 15:44:55 -05:00
Scott Shawcroft 9f0c0720f9 Fetch tools/adabot submodule for website build
It's used by build_board_info.py
2021-12-13 15:43:36 -05:00
Pierre Constantineau 9119a32a5d fixed row0 and added encoder pins 2021-12-13 13:31:00 -06:00
Tim Hawes a3c8760d41 Fix to error checking in espressif SSLSocket 2021-12-13 17:55:43 +00:00
Nathan Young ffd41cf2b7 Updated USB product name to remove duplication
Output from lsusb now reads: SparkFun Electronics Thing Plus - STM32
2021-12-13 18:01:07 +01:00
Nathan Young 463d94475b Use correct PID for SparkFun Thing Plus - STM32
This value was kindly provided by  brhoff720.
2021-12-13 17:37:02 +01:00
Dan Halbert edabf676d4
Merge pull request #5712 from jepler/website-main-branch
reflect that the default branch of circuitpython-org is updated
2021-12-13 10:54:24 -05:00
foamyguy c4be8a5c94 tilegrid size properties 2021-12-13 09:44:08 -06:00
Jeff Epler a0553ea838
Merge pull request #5708 from dhalbert/samd-pinalarm-intclr
Clear SAMD TAMPER interrupt in pinalarm properly
2021-12-13 07:18:58 -07:00
Jeff Epler 1dce9de480
reflect that the default branch of circuitpython-org is updated 2021-12-13 07:58:26 -06:00
Jeff Epler 8af8e996f3
Translated using Weblate (French)
Currently translated at 100.0% (1028 of 1028 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2021-12-13 06:53:46 +01:00
Kenny 17b53c7ebe vectorio: Add width and height properties to rectangle
Closes: https://github.com/adafruit/circuitpython/issues/5695
2021-12-12 19:50:00 -08:00
Dan Halbert bbe30514ef Fix other INTENCLR and INTENSET to write whole reg 2021-12-12 22:25:44 -05:00
Dan Halbert c06eee9841 Clear TAMPER interrupt properly; make keypad module table const 2021-12-12 22:00:08 -05:00
Dan Halbert 05e0734157
Merge pull request #5702 from adafruit/tannewt-patch-2
Exclude ci checks and tests from building boards
2021-12-11 23:00:41 -05:00
Dan Halbert c3a90e38f7
remove whitespace 2021-12-11 18:02:55 -05:00
Dan Halbert 568c281fd4
Merge pull request #5701 from adafruit/tannewt-patch-1
Fetch tools/adabot submodule for website build
2021-12-11 18:00:11 -05:00