aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2018-03-25lib/stm32lib: Update library for fix to H7 SPI strict aliasing error.Damien George
2018-03-09lib/stm32lib: Update library to include support for STM32H7 MCUs.Damien George
Now points to the branch: work-F4-1.16.0+F7-1.7.0+H7-1.2.0+L4-1.8.1
2018-02-13lib/utils/pyexec: Update to work with new MICROPY_HW_ENABLE_USB option.Damien George
2018-01-31lib/utils/pyexec.h: Include py/obj.h because its decls are needed.Damien George
2017-12-15lib/tinytest: Clean up test reporting in the presence of stdout output.Paul Sokolovsky
tinytest is written with the idea that tests won't write to stdout, so it prints test name witjout newline, then executes test, then writes status. But MicroPython tests write to stdout, so the test output becomes a mess. So, instead print it like: # starting basics/andor.py ... test output ... basics/andor.py: OK
2017-12-13lib/upytesthelper: MicroPython test helper layer on top of tinytest.Paul Sokolovsky
Tinytest is classical assert-style framework, but MicroPython tests work in different way - they produce content, and that content should be matched against expected one to see if test passes. upytesthelper exactly adds helper functions to make that possible.
2017-12-08lib/tinytest: Move from tools/tinytest.Paul Sokolovsky
Tinytest library was misplaced under tools/. By convention, any target libraries belong to lib/, while tools/ contains host-side tools.
2017-11-16py/objstr: Remove "make_qstr_if_not_already" arg from mp_obj_new_str.Damien George
This patch simplifies the str creation API to favour the common case of creating a str object that is not forced to be interned. To force interning of a new str the new mp_obj_new_str_via_qstr function is added, and should only be used if warranted. Apart from simplifying the mp_obj_new_str function (and making it have the same signature as mp_obj_new_bytes), this patch also reduces code size by a bit (-16 bytes for bare-arm and roughly -40 bytes on the bare-metal archs).
2017-11-05axtls: Update, exposes AES functions to implement ECB chiper mode.Paul Sokolovsky
2017-10-29lib/axtls: Update, support for SSL_EAGAIN return code.Paul Sokolovsky
A step towards implementing non-blocking stream support for SSL.
2017-10-10lib/libm: Remove implementation of log2f, use MP_NEED_LOG2 instead.Damien George
2017-10-04lib/libm: Fix tanhf so that it correctly handles +/- infinity args.Damien George
2017-10-04all: Remove inclusion of internal py header files.Damien George
Header files that are considered internal to the py core and should not normally be included directly are: py/nlr.h - internal nlr configuration and declarations py/bc0.h - contains bytecode macro definitions py/runtime0.h - contains basic runtime enums Instead, the top-level header files to include are one of: py/obj.h - includes runtime0.h and defines everything to use the mp_obj_t type py/runtime.h - includes mpstate.h and hence nlr.h, obj.h, runtime0.h, and defines everything to use the general runtime support functions Additional, specific headers (eg py/objlist.h) can be included if needed.
2017-09-22lib/embed/abort_: Use mp_raise_msg helper function.Damien George
2017-09-10berkeley-db-1.xx: Update, allow to override MINCACHE, DEFPSIZE.Paul Sokolovsky
2017-08-29stmhal: Update to new STM Cube HAL library.Damien George
This upgrades the HAL to the versions: - F4 V1.16.0 - F7 V1.7.0 - L4 V1.8.1 The main changes were in the SD card driver. The vendor changed the SD read/write functions to accept block number intead of byte address, so there is no longer any need for a custom patch for this in stm32lib. The CardType values also changed, so pyb.SDCard().info() will return different values for the 3rd element of the tuple, but this function was never documented.
2017-08-29lib: Add new submodule, stm32lib containing STM32 CMSIS and HAL source.Damien George
Linked to https://github.com/micropython/stm32lib
2017-08-13all: Raise exceptions via mp_raise_XXXJavier Candeira
- Changed: ValueError, TypeError, NotImplementedError - OSError invocations unchanged, because the corresponding utility function takes ints, not strings like the long form invocation. - OverflowError, IndexError and RuntimeError etc. not changed for now until we decide whether to add new utility functions.
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-07-18all: Unify header guard usage.Alexander Steffen
The code conventions suggest using header guards, but do not define how those should look like and instead point to existing files. However, not all existing files follow the same scheme, sometimes omitting header guards altogether, sometimes using non-standard names, making it easy to accidentally pick a "wrong" example. This commit ensures that all header files of the MicroPython project (that were not simply copied from somewhere else) follow the same pattern, that was already present in the majority of files, especially in the py folder. The rules are as follows. Naming convention: * start with the words MICROPY_INCLUDED * contain the full path to the file * replace special characters with _ In addition, there are no empty lines before #ifndef, between #ifndef and one empty line before #endif. #endif is followed by a comment containing the name of the guard macro. py/grammar.h cannot use header guards by design, since it has to be included multiple times in a single C file. Several other files also do not need header guards as they are only used internally and guaranteed to be included only once: * MICROPY_MPHALPORT_H * mpconfigboard.h * mpconfigport.h * mpthreadport.h * pin_defs_*.h * qstrdefs*.h
2017-07-04py/repl: Change mp_uint_t to size_t in repl helpers.Damien George
2017-06-28lib: Add libm_dbl, a double-precision math library, from musl-1.1.16.Damien George
2017-06-15stmhal: Move pybstdio.c to lib/utils/sys_stdio_mphal.c for common use.Damien George
It provides sys.stdin, sys.stdout, sys.stderr for bare-metal targets based on mp_hal functions.
2017-06-14lib/libm/math: Remove implementations of float conversion functions.Damien George
These implementations are incorrect (eg f2d and d2f don't handle special values like 0.0) and proper versions can be provided by libgcc (or equivalent depending on the toolchain). libgcc is now linked with the stmhal port so that library will provide these functions from now on.
2017-06-13lib/axtls: Upgrade to axTLS 2.1.3 + MicroPython patchset.Paul Sokolovsky
axTLS 2.1.3 brings support for TLS 1.2 and SNI. With MicroPython patchset on top of it, the code size growth (x86) is ~2K.
2017-06-02lib/utils/interrupt_char: Remove support for KBD_EXCEPTION disabled.Damien George
If a port is using interrupt_char.c then it must enable MICROPY_KBD_EXCEPTION. This is the case for all official ports.
2017-05-31lib/libm: Use isfinite instead of finitef, for C99 compatibility.Damien George
2017-05-29various: Spelling fixesVille Skyttä
2017-05-05lib/utils/pyexec: Update event-driven REPL to match non-event REPL.Tom Collins
Don't print dupe ">>> " prompt when starting event-driven REPL. Clear incomplete line in transition from raw to friendly REPL.
2017-03-31all: Use full path name when including mp-readline/timeutils/netutils.Damien George
This follows the pattern of how all other headers are now included, and makes it explicit where the header file comes from. This patch also removes -I options from Makefile's that specify the mp-readline/timeutils/ netutils directories, which are no longer needed.
2017-03-29lib/netutils: Update for changes to mp_obj_str_get_data.Damien George
2017-03-24lib/libm: Add implementation of nearbyintf, from musl-1.1.16.Damien George
2017-03-20py: Add micropython.schedule() function and associated runtime code.Damien George
2017-03-14lib/utils/pyexec: Fix bug with pyexec_file not setting flag for source.Damien George
2017-03-14lib/memzip: Make lexer constructor raise exception when file not found.Damien George
2017-03-14lib/utils/pyexec: Refactor to put lexer constructors all in one place.Damien George
The lexer can now raise an exception on construction so it must go within an nlr handler block.
2017-02-27lib/utils/pyexec: Allow to compile when the uPy compiler is disabled.Damien George
2017-01-31lib/oofatfs/ffconf.h: Add MICROPY_FATFS_NORTC option.Andrew Gatt
2017-01-31lib/oofatfs/ffconf.h: Allow to configure FS_EXFAT option.Damien George
Using MICROPY_FATFS_EXFAT. Enabling this has licensing implications; see https://www.microsoft.com/en-us/legal/intellectualproperty/mtl/exfat-licensing.aspx
2017-01-30lib/fatfs: Remove old fatfs library component, it's replaced by oofatfs.Damien George
2017-01-30lib/oofatfs: Update oofatfs library.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.12b, commit 46fb53331e7a583c29a41d37ce4b53f2718597e5.
2017-01-27lib/oofatfs: Update oofatfs library.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.12b, commit 1e295b40550664bbaac18d95a4b6a58154464d31.
2017-01-27lib/oofatfs: Add OO version of FatFS library.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.12b, commit a346ccec123c2e4d887e2751d64156208d03bff4.
2017-01-22lib/utils/pyexec: Only print help prompt if HELP feature is enabled.Damien George
2017-01-22lib/utils: Remove old pyhelp helper, replaced with py/builtinhelp.c.Damien George
Ports should no longer use pyhelp_print_obj but instead should define MICROPY_PY_BUILTINS_HELP to 1 and then specify their help text using MICROPY_PY_BUILTINS_HELP_TEXT.
2016-12-15lib/utils/interrupt_char: Use core-provided mp_kbd_exception if enabled.Damien George
Ultimately all ports that use lib/utils/interrupt_char would enable MICROPY_KBD_EXCEPTION, so this is an interim solution.
2016-11-03lib/libm: Move Thumb-specific sqrtf function to separate file.Damien George
This allows it to be used only when the hardware supports VFP instructions, preventing compile errors.
2016-10-26zephyr: Fix mp_hal_set_interrupt_char() declaration to be compatible.Paul Sokolovsky
With other ports. Other ports declare it in mphalport.h, it can be inline or macro.
2016-10-26lib/utils/pyexec: Fix compilation warning of type vs format mismatch.Paul Sokolovsky
This happens with some compilers on some architectures, which don't define size_t as unsigned int. MicroPython's printf() dooesn't support obscure format specifiers for size_t, so the obvious choice is to explicitly cast to unsigned, to match %u used in printf().
2016-10-26lib/utils/pyexec: Add mp_hal_set_interrupt_char() prototype.Vincenzo Frascino
This patch removes a compilation warning in pyexec. Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>