aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-01-12lib/mp-readline: Add an assert() to catch buffer overflows.Yonatan Goldschmidt
During readline development, this function may receive bad `pos` values. It's easier to understand the assert() failing error than to have a "stack smashing detected" message.
2019-12-28lib/utils/pyexec: Introduce MICROPY_REPL_INFO, wrap debug prints in it.Yonatan Goldschmidt
For the 3 ports that already make use of this feature (stm32, nrf and teensy) this doesn't make any difference, it just allows to disable it from now on. For other ports that use pyexec, this decreases code size because the debug printing code is dead (it can't be enabled) but the compiler can't deduce that, so code is still emitted.
2019-12-27py: Introduce MP_ROM_NONE macro for ROM to refer to None object.Damien George
This helps to prevent mistakes, and allows easily changing the ROM value of None if needed.
2019-12-19Revert "lib/tinytest: Clean up test reporting in the presence of std..."David Lechner
This reverts commit f4ed2dfa942339dc1f174e8a83ff0d41073f1972. This lets tinytest work as it was originally designed. An alternate solution for the reverted commit will be implemented in a future commit.
2019-10-30lib/libc/string0: Add simple implementations of strspn and strcspn.Damien George
They are needed for littlefs.
2019-10-29lib/littlefs: Add README describing origin and how to gen lfs1/lfs2.Damien George
2019-10-29lib/littlefs: Add littlefs v2.1.3 source.Damien George
2019-10-29lib/littlefs: Add littlefs v1.7.2 source.Damien George
2019-10-10stm32: Use hardware double sqrt on F7/H7 MCUs.Jim Mussared
Identical to cd527bb324ade952d11a134859d38bf5272c165e but for doubles. This gives a -2.754% improvement on bm_float.py, and -35% improvement on calling sqrt in a loop.
2019-10-01lib/mynewt-nimble: Add Apache mynewt nimble as a submodule.Damien George
Tag nimble_1_1_0_tag.
2019-08-28py: Add global default_emit_opt variable to make emit kind persistent.Damien George
mp_compile no longer takes an emit_opt argument, rather this setting is now provided by the global default_emit_opt variable. Now, when -X emit=native is passed as a command-line option, the emitter will be set for all compiled modules (included imports), not just the top-level script. In the future there could be a way to also set this variable from a script. Fixes issue #4267.
2019-07-04lib/lwip: Update lwIP to v2.1.2, tag STABLE-2_1_2_RELEASE.Damien George
2019-07-03lib/stm32lib: Update library for updated H7xx, new L0xx, new WBxx.Damien George
And this library now includes the startup_stm32*.s files for each MCU.
2019-07-01lib: Add tinyusb as a submodule.Damien George
2019-07-01lib: Add asf4 as a submodule.Damien George
2019-07-01lib/utils/sys_stdio_mphal: Add support to poll sys.stdin and sys.stdout.Damien George
A port must provide the following function for this to work: uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags);
2019-06-05lib: Add new submodule for mbedtls, currently at v2.17.0.Damien George
From upstream source: https://github.com/ARMmbed/mbedtls.git
2019-06-03lib/netutils: Add DHCP server component.Damien George
2019-06-03lib/cmsis: Upgrade to CMSIS 5.5.1.Damien George
From https://github.com/ARM-software/CMSIS_5.git, tag 5.5.1
2019-05-21lib/nrfx: Upgrade nrfx to master.Glenn Ruben Bakke
Updating the nrfx git submodule containing HAL drivers for nrf-port from v1.3.1 to current master. The version pointed to is one commit ahead of v1.7.1 release. The extra commit contains a bugfix for nrfx_uart_tx_in_progress() making it report correctly. The general upgrade of nrfx is considered to be safe, as almost all changes in between 1.3.1 and 1.7.1 are related to peripherals and target devices not used by the nrf-port as of today.
2019-05-20lib/stm32lib: Update library to fix UART9/10 baudrate on F4 MCUs.Damien George
2019-05-01lib/utils/interrupt_char: Invalidate interrupt char at start up.Damien George
Otherwise mp_interrupt_char will have a value of zero on start up (because it's in the BSS) and a KeyboardInterrupt may be raised during start up. For example this can occur if there is a UART attached to the REPL which sends spurious null bytes when the device turns on.
2019-05-01lib/utils: Make pyexec_file_if_exists run frozen scripts if they exist.Andrew Leech
So that boot.py and/or main.py can be frozen (either as STR or MPY) in the same way that other scripts are frozen. Frozen scripts have preference to scripts in the VFS.
2019-04-26lib/utils/pyexec: Add pyexec_file_if_exists() helper function.Damien George
It will only execute the script if it can be stat'd and is a file.
2019-04-01lib/stm32lib: Update library to fix F7 MMC capacity calculation.Damien George
2019-03-07lib/oofatfs: Update oofatfs library to fix issue with logic not.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.13c, commit 3b4ee5a646af2769b3dddfe17d5d866233c1e45b.
2019-03-05lib/oofatfs: Update ffconf.h config for new oofatfs version.Damien George
2019-03-05lib/oofatfs: Update oofatfs library to R0.13c working branch.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.13c, commit cb05c9486d3b48ffd6bd7542d8dbbab4b1caf790. Large code pages (932, 936, 949, 950) have been removed from ffunicode.c because they were not included in previous versions here.
2019-02-26lib/netutils: Add function to print tracing info for Ethernet frames.Damien George
2019-02-12all: Change PYB message prefix to MPY.Mike Causer
Replaces "PYB: soft reboot" with "MPY: soft reboot", etc. Having a consistent prefix across ports reduces the difference between ports, which is a general goal. And this change won't break pyboard.py because that tool only looks for "soft reboot".
2019-02-12lib/utils/gchelper: Add gchelper.h header file for assembler functions.Damien George
2019-02-12lib/utils/gchelper_m3: Add gc_helper_get_sp() function.Damien George
2019-02-12lib/utils/gchelper_m3: Add license header and clean up code.Damien George
This file generates the same code with the cortex-m3 and cortex-m4 assembler directive, so use cortex-m3 to support more CPUs.
2019-02-12stm32: Move gchelper assembler code to lib/utils for use by other ports.Damien George
2019-02-06lib/utils/printf: Exclude __GI_vsnprintf alias for gcc 9 and above.Damien George
See issue #4457.
2019-01-31lib/nrfx: Upgrade to nrfx v1.3.1.Damien George
2019-01-28lib/utils/pyexec: Implement paste mode with event driven REPL.Damien George
2019-01-24lib/stm32lib: Update library to get F413 BOR defs and fix gcc 8 warning.Damien George
2018-12-29lib/utils: Add generic MicroPython IRQ helper functions.Tobias Badertscher
Initial implementation of this is taken from the cc3200 port.
2018-10-13lib/utils/pyexec: Forcefully unlock the heap if locked and REPL active.Damien George
Otherwise there is really nothing that can be done, it can't be unlocked by the user because there is no way to allocate memory to execute the unlock. See issue #4205 and #4209.
2018-09-27lib/libm/math: Add implementation of __signbitf, if needed by a port.Damien George
2018-09-27lib/libm/math: Fix int type in float union, uint64_t should be uint32_t.Damien George
A float is 32-bits wide.
2018-09-26lib/stm32lib: Update library to fix issue with filling USB TX FIFO.Damien George
2018-09-20lib/libm_dbl: Add implementation of copysign() for DEBUG builds.Andrew Leech
This provides a double variant of the float copysignf from libm/math.c which is required for DEBUG=1 builds when MICROPY_FLOAT_IMPL=double
2018-09-04lib/libm/wf_tgamma: Fix tgammaf handling of -inf, should return nan.Damien George
2018-09-04lib/libm/math: Make tanhf more efficient and handle large numbers.Damien George
Prior to this patch tanhf(large number) would return nan due to inf/inf.
2018-09-04lib/libm_dbl/tanh: Make tanh more efficient and handle large numbers.Damien George
Prior to this patch tanh(large number) would return nan due to inf/inf.
2018-08-02py/mpconfig.h: Introduce MICROPY_DEBUG_PRINTER for debugging output.Damien George
This patch in effect renames MICROPY_DEBUG_PRINTER_DEST to MICROPY_DEBUG_PRINTER, moving its default definition from lib/utils/printf.c to py/mpconfig.h to make it official and documented, and makes this macro a pointer rather than the actual mp_print_t struct. This is done to get consistency with MICROPY_ERROR_PRINTER, and provide this macro for use outside just lib/utils/printf.c. Ports are updated to use the new macro name.
2018-07-18nrf: Upgrade to nrfx 1.1.0Glenn Ruben Bakke
2018-07-18nrf: Add support for reading output pin stateGlenn Ruben Bakke
Current adoption on top of nrfx only reads the GPIO->IN register. In order to read back an output state, nrf_gpio_pin_out_read has to be called. This patch concatinate the two read functions such that, if either IN or OUT register has a value 1 it will return this, else 0. Updating lib/nrfx submodule to latest version of master to get the new GPIO API to read pin direction. (nrfx: d37b16f2b894b0928395f6f56ca741287a31a244)