summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2023-02-17lib/pico-sdk: Update to version 1.5.0.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2023-02-17lib/cyw43-driver: Update driver to latest version.Damien George
Changes since the previous version: - add an API to get the BSSID - support auto channel selection when using BSSID for join - improve performance for the Murata 1DX module and SDIO - return EINVAL for invalid auth type - add support for Bluetooth over SPI - convert 4343WA1-7.45.98.50.combined to C header files
2023-02-01lib/micropython-lib: Update submodule to latest.Damien George
This brings in the bundle-networking package. Signed-off-by: Damien George <damien@micropython.org>
2023-01-18lib/re1.5: Add support for named classes in class sets.Damien George
Total code size change of this and previous commit: bare-arm: +0 +0.000% minimal x86: +0 +0.000% unix x64: +32 +0.004% standard stm32: +24 +0.006% PYBV10 cc3200: +16 +0.009% esp8266: +20 +0.003% GENERIC esp32: +44 +0.003% GENERIC[incl +8(data)] mimxrt: +32 +0.009% TEENSY40 renesas-ra: +24 +0.004% RA6M2_EK nrf: +0 +0.000% pca10040 rp2: +24 +0.005% PICO samd: +32 +0.012% ADAFRUIT_ITSYBITSY_M4_EXPRESS Addresses issue #7920. Signed-off-by: Damien George <damien@micropython.org>
2023-01-18lib/re1.5: Reduce code size when checking for named class char.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-12-20lib/cyw43-driver: Update driver to latest version.Damien George
Changes since the previous version: - remove mDNS - implement lwIP IGMP MAC filter callback - implement IPv6 support - allow building with IGMP disabled - fix handshake meggase WAIT_G1 event value - increase EAPOL timeout from 2500ms to 500ms - add function to get RSSI - fix handling of open security networks - remove support for automatically setting auth type Signed-off-by: Damien George <damien@micropython.org>
2022-11-11lib/btstack: Update to v1.5.4.Damien George
This update includes a few bug fixes for BLE, support for LE audio, updates to classic BT support, cmake support, and other things. Signed-off-by: Damien George <damien@micropython.org>
2022-11-10lib/libm: Use __asm__ instead of asm.David Lechner
`asm` is not part of the C standard and causes a complier error when `-std=c99` is used. `__asm__` is the recommended alternative. https://gcc.gnu.org/onlinedocs/gcc/extensions-to-the-c-language-family/alternate-keywords.html Signed-off-by: David Lechner <david@pybricks.com>
2022-11-09lib/micropython-lib: Update submodule to latest.Damien George
This brings in mip-cmdline, espflash, use of machine.dht_readinto, and other improvements to existing libraries. Signed-off-by: Damien George <damien@micropython.org>
2022-10-22lib/btstack: Update to v1.5.3.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-09-30lib/micropython-lib: Update submodule to latest.Jim Mussared
This brings in the `mip` tool for installing packages. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-25lib/stm32lib: Update library to get L1 v1.10.3, and some other fixes.yn386
Changes in this new library version are: - Add L1 HAL at v1.10.3. - H7_HAL/rcc_ex: Add SPI45 to HAL_RCCEx_GetPeriphCLKFreq. - L4_HAL/gpio_ex: Add #define for GPIO_AF14_TIM2 on L4P5/L4Q5. - F4_HAL/i2c: Fix I2C frequency calculation macros. - L1_HAL/utils: Fix compile error when USE_HAL_DRIVER is defined.
2022-09-08lib/micropython-lib: Update submodule to latest.Jim Mussared
This brings in the drivers and libraries that were previously in this repo. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-05lib/micropython-lib: Update to latest version with manifest changes.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-08-29lib/lwip: Update lwIP to v2.1.3, tag STABLE-2_1_3_RELEASE.Damien George
There don't seem to be many changes going from v2.1.2 to v2.1.3 of lwIP. Mostly they are: - IPv6 fixes and improvements - changes to apps and other code that MicroPython doesn't use - comments and tests - minor bug fixes In particular there doesn't look to be any change to the API of any function used by MicroPython. Network multi tests pass on PYBD_SF2 and PYBD_SF6. PYBD_SF2, PYBD_SF6 and PICO_W have unchanged iperf3 performance. Similar results for networking on the mimxrt port. Signed-off-by: Damien George <damien@micropython.org>
2022-08-03lib/micropython-lib: Add micropython-lib as a submodule.Jim Mussared
Several boards now depend on libraries from micropython-lib. Rather than expecting micropython-lib to be available as a sibling of the micropython repo, instead make it a submodule. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-07-26lib/cyw43-driver: Update driver to latest version.Peter Harper
This version of the driver adds an event hook to call during firmware download, and the ability to query the current power mode.
2022-07-19lib/tinyusb: Update to the most recent master.robert-hh
2022-07-05lib/cyw43-driver: Update cyw43-driver to fix ap_auth mode setting.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-06-30lib/pico-sdk: Update to version 1.4.0.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-06-30lib/cyw43-driver: Add new submodule for CYW43xx WiFi driver.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-06-03lib/wiznet5k: Add submodule for Wiznet Ethernet drivers.Andrew Leech
Signed-off-by: Andrew Leech <andrew@alelec.net>
2022-06-03lib/nxp_driver: Update nxp_driver to v2.10.robert-hh
2022-05-24lib/littlefs: Remove assignment of variables to themselves.Damien George
To prevent compiler warnings (eg on clang). Signed-off-by: Damien George <damien@micropython.org>
2022-05-24lib/littlefs: Guard lfs2_file_rawopen with LFS2_NO_MALLOC.Damien George
To prevent warnings about this function being unused when malloc is disabled. Signed-off-by: Damien George <damien@micropython.org>
2022-05-24lib/littlefs: Update littlefs2 to v2.5.0.Damien George
At commit 40dba4a556e0d81dfbe64301a6aa4e18ceca896c Signed-off-by: Damien George <damien@micropython.org>
2022-04-29lib/fsp: Add renesas fsp git repository as submodule.TakeoTakahashi2020
Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
2022-04-28lib/stm32lib: Update library for G0 v1.5.1.Damien George
Changes in this new library version are: - Add G0 HAL at v1.5.1. Signed-off-by: Damien George <damien@micropython.org>
2022-03-16lib/re1.5: Distinguish between subject start-of-line and start-of-srch.Damien George
Otherwise a repeated sub/split will continue to match ^ to the start of that search. Signed-off-by: Damien George <damien@micropython.org>
2022-01-06lib/stm32lib: Update library for fix to F7 USB HS.Damien George
Fixes build on MCUs with built-in USB HS PHY. Signed-off-by: Damien George <damien@micropython.org>
2021-12-14lib/stm32lib: Update library for L4 v1.17.0, new G4, WL, and MMC fixes.Damien George
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-11-26lib: Update pico-sdk to 1.3.0 and tinyusb to 0.12.0.iabdalkader
Fixes #8025
2021-11-18lib/asf4: Point submodule to latest commit on circuitpython branch.Damien George
2021-10-26extmod/nimble: Update to NimBLE v1.4.Jim Mussared
We're using the MicroPython fork of NimBLE, which on the `micropython_1_4_0` branch re-adds support for 64-bit targets and fixes initialisation of g_msys_pool_list. Also updates modbluetooth_nimble.c to suit v1.4. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-07-13lib,shared: Update README's based on contents of these dirs.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-12shared: Introduce new top-level dir and move 1st party lib code there.Damien George
This commit moves all first-party code developed for this project from lib/ to shared/, so that lib/ now only contains third-party code. The following directories are moved as-is from lib to shared: lib/libc -> shared/libc lib/memzip -> shared/memzip lib/netutils -> shared/netutils lib/timeutils -> shared/timeutils lib/upytesthelper -> shared/upytesthelper All files in lib/embed/ have been moved to shared/libc/. lib/mp-readline has been moved to shared/readline. lib/utils has been moved to shared/runtime, with the exception of lib/utils/printf.c which has been moved to shared/libc/printf.c. Signed-off-by: Damien George <damien@micropython.org>
2021-07-12lib/crypto-algorithms: Move crypto-algorithms code from extmod to lib.Damien George
It's third-party code, and not necessarily tied to extmod. Signed-off-by: Damien George <damien@micropython.org>
2021-07-12lib/uzlib: Move uzlib code from extmod to lib.Damien George
It's third-party code, and not necessarily tied to extmod. Signed-off-by: Damien George <damien@micropython.org>
2021-07-12lib/re1.5: Move re1.5 code from extmod to lib.Damien George
It's third-party code, and not necessarily tied to extmod. Signed-off-by: Damien George <damien@micropython.org>
2021-07-08lib/axtls: Update to latest axtls 2.1.5 wih additional commits.Damien George
Changes are: - update axTLS from 2.1.3 to 2.1.5 - os_port.h is now provided by the user of the library - PLATFORM_RNG_U8 can be defined for get_random - fix -fsanitize=undefined diagnostics Signed-off-by: Damien George <damien@micropython.org>
2021-07-08lib/utils/stdout_helpers: Make mp_hal_stdout_tx_strn_cooked efficient.Damien George
To reduce the number of calls to mp_hal_stdout_tx_strn and improve the overall throughput of printing data. This implementation is taken from ports/stm32/mphalport.c. Signed-off-by: Damien George <damien@micropython.org>
2021-07-05lib/pico-sdk: Update to version 1.2.0.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-05lib/tinyusb: Update to version 0.10.1.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-06-25mimxrt: Move calc_weekday helper function to timeutils.Krzysztof Adamski
This function may be useful for other ports as well so lets move it to timeutils so it can be reused. Signed-off-by: Krzysztof Adamski <k@japko.eu>
2021-05-25lib/mbedtls: Switch to currently latest commit of LTS branch v2.16.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-05-11lib/utils: Add ARM semihosting utility functions.Ayke van Laethem
This can be a replacement for a UART in custom ports.
2021-05-10py/gc: Make gc_lock_depth have a count per thread.Damien George
This commit makes gc_lock_depth have one counter per thread, instead of one global counter. This makes threads properly independent with respect to the GC, in particular threads can now independently lock the GC for themselves without locking it for other threads. It also means a given thread can run a hard IRQ without temporarily locking the GC for all other threads and potentially making them have MemoryError exceptions at random locations (this really only occurs on MCUs with multiple cores and no GIL, eg on the rp2 port). The commit also removes protection of the GC lock/unlock functions, which is no longer needed when the counter is per thread (and this also fixes the cas where a hard IRQ calling gc_lock() may stall waiting for the mutex). It also puts the check for `gc_lock_depth > 0` outside the GC mutex in gc_alloc, gc_realloc and gc_free, to potentially prevent a hard IRQ from waiting on a mutex if it does attempt to allocate heap memory (and putting the check outside the GC mutex is now safe now that there is a gc_lock_depth per thread). Signed-off-by: Damien George <damien@micropython.org>
2021-04-24lib/utils: Remove unused PYEXEC_SWITCH_MODE from pyexec.h.Damien George
It was made obsolete by commit c98c128fe885e539ecd73843756340f8950115c8. Signed-off-by: Damien George <damien@micropython.org>
2021-03-12lib/pico-sdk: Update to latest version 1.1.0.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-03-11lib/utils/gchelper_generic: Implement AArch64 support.Yonatan Goldschmidt