summaryrefslogtreecommitdiffstatshomepage
path: root/lib
Commit message (Collapse)AuthorAge
* lib/utils/printf: Fix issue with putchar define for some ports.Paul Sokolovsky2015-11-22
|
* lib/utils/printf: Add extra prototypes.Paul Sokolovsky2015-11-22
|
* unix: Use printf() implementation in terms of mp_printf().Paul Sokolovsky2015-11-22
| | | | | | In other words, unix port now uses overriden printf(), instead of using libc's. This should remove almost all dependency on libc stdio (which is bloated).
* py/emitglue: Host definition of mp_verbose_flag.Paul Sokolovsky2015-11-21
| | | | | This may not seem like the ideal place, but is actually the only place in py/ where it gets referenced, so is just right.
* lib/utils/printf: Move from stmhal/ .Paul Sokolovsky2015-11-10
| | | | | This file contains various MicroPython-specific helper functions, so isn't good fit for lib/libc/.
* lib/pyexec: Move header pyexec.h from stmhal directory.Damien George2015-11-09
|
* lib/fatfs: Unify fatfs configuration.Alex March2015-11-08
| | | | | | - A single ffcon.h file to configure fatfs settings across ports. - A single diskio.h file with common drive definitions. - Removed now reduntand ffconf_template.h.
* lib/mp-readline: Make it easy to exit auto-indent mode by pressing enter.Damien George2015-11-07
| | | | | | This patch allows you to stop auto-indent by pressing enter on a second blank line. Easier than having to use backspace, and prevents new users from getting stuck in auto-indent mode.
* lib/memzip: Factor out memzip from teensy/ into lib/memzip.Dave Hylands2015-11-04
|
* lib/pyexec: For paste mode use "Ctrl" as the name of the key, not "CTRL".Damien George2015-11-03
|
* stmhal: pyexec.c is common module, move to lib/utils/ .Paul Sokolovsky2015-10-31
|
* all: Add py/mphal.h and use it in all ports.Damien George2015-10-31
| | | | | | py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
* lib: Replace tabs with spaces in readline.cstijn2015-10-26
|
* lib/lwip: Add LwIP stack as a submodule in the library directoryGalen Hazelwood2015-10-23
|
* lib/mp-readline: Add n_chars argument to mp_hal_erase_line_from_cursor.Damien George2015-10-20
| | | | | | | | | If VT100 support is not available then a given implementation of mp_hal_erase_line_from_cursor might need to know the number of characters to erase. This patch does not change generated code when VT100 is supported, since compiler can optimise away the argument.
* lib/libffi: Add libffi as a submodule.Paul Sokolovsky2015-10-17
| | | | | | | | | | | This allows to build libffi from source together with micropython, and is useful for cross-compilation. Support for this was already merged previously, to use: make libffi make MICROPY_STANDALONE=1 (To both commands appropriate cross-compilition flags can be added).
* repl: Add paste mode to friendly REPL, entered via CTRL-E.Damien George2015-10-11
| | | | | | | | Use CTRL-E to enter paste mode. Prompt starts with "===" and accepts all characters verbatim, echoing them back. Only control characters are CTRL-C which cancels the input and returns to normal REPL, and CTRL-D which ends the input and executes it. The input is executed as though it were a file. The input is not added to the prompt history.
* lib/axtls: Update submodule, adds .gitignore .Paul Sokolovsky2015-10-04
|
* lib/axtls: Add axtls git submodule, dependency of modussl.Paul Sokolovsky2015-10-04
| | | | From https://github.com/pfalcon/axtls , branch micropython.
* lib/mp-readline: Add auto-indent support.Damien George2015-09-12
| | | | | | | | | 4 spaces are added at start of line to match previous indent, and if previous line ended in colon. Backspace deletes 4 space if only spaces begin a line. Configurable via MICROPY_REPL_AUTO_INDENT. Disabled by default.
* lib/mp-readline: Add emacs-style control characters for cursor movement.Tom Soulanille2015-07-26
| | | | Disabled by default. Adds 108 bytes to Thumb2 arch when enabled.
* lib/mp-readline: Allow overriding implementation of cursor functionsstijn2015-05-30
| | | | | Default implementation uses VT100-style sequences which are not implemented by all terminals out there
* lib/mp-readline: Add implementation for deleting a characterstijn2015-05-30
| | | | xterm and others use the ESC[~3 sequence when pressing the delete key
* lib/mp-readline: Export readline_push_history function.Damien George2015-05-27
|
* lib: Fix some issues in timeutilsDave Hylands2015-05-21
| | | | | | | | | | | | | | | | | | | In particular, dates prior to Mar 1, 2000 are screwed up. The easiest way to see this is to do: >>> import time >>> time.localtime(0) (2000, 1, 1, 0, 0, 0, 5, 1) >>> time.localtime(1) (2000, 1, 2, 233, 197, 197, 6, 2) With this patch, we instead get: >>> import time >>> time.localtime(1) (2000, 1, 1, 0, 0, 1, 5, 1) Doh - In C % is NOT a modulo operator, it's a remainder operator.
* lib: Move time utility functions to common library.Josef Gajdusek2015-05-13
|
* lib: Move some common mod_network_* functions to lib/netutils.Josef Gajdusek2015-05-04
|
* py, readline: Add tab autocompletion for REPL.Damien George2015-04-29
| | | | | | | | Can complete names in the global namespace, as well as a chain of attributes, eg pyb.Pin.board.<tab> will give a list of all board pins. Costs 700 bytes ROM on Thumb2 arch, but greatly increases usability of REPL prompt.
* mp-readline: Save "prompt" string in readline state.Damien George2015-04-29
|
* lib/libc: Add memchr. We already have strchr, but memchr is useful too.Daniel Campora2015-04-28
|
* lib/libc/string0.c: Remove include of std.h, replace with string.h.Damien George2015-04-18
| | | | Much more portable this way.
* lib/fatfs: Space optimise the ff_wtoupper function.Damien George2015-04-11
| | | | Saves 768 bytes code space on Thumb2 archs.
* string0.c: Move from stmhal/ to lib/.Paul Sokolovsky2015-04-05
|
* lib: Update FatFs to R0.11.Daniel Campora2015-03-29
| | | | | | | | | | | | | There are lots of cosmetic changes, but this release brings a very important bug fix: - Fixed f_unlink() does not remove cluster chain of the file. With R0.10c if you try to write a file that is too large to fit in the free space of the drive, the operation fails, you delete the incomplete file, and it seems to be erased, but the space is not really freed, because any subsequent write operations fail because the drive is "still" full. The only way to recover from this is by formatting the drive. I can confirm that R0.11 fixes the problem.
* lib/libm: Add implementations of erf, erfc, lgamma, tgamma.Damien George2015-02-22
|
* minimal: Allow to compile without defining MICROPY_HAL_H.Damien George2015-02-13
|
* stmhal: Make pybstdio usable by other ports, and use it.Damien George2015-02-13
| | | | | Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
* py: Change vstr_null_terminate -> vstr_null_terminated_str, returns str.Damien George2015-01-29
|
* py: Change vstr so that it doesn't null terminate buffer by default.Damien George2015-01-28
| | | | | | | | | This cleans up vstr so that it's a pure "variable buffer", and the user can decide whether they need to add a terminating null byte. In most places where vstr is used, the vstr did not need to be null terminated and so this patch saves code size, a tiny bit of RAM, and makes vstr usage more efficient. When null termination is needed it must be done explicitly using vstr_null_terminate.
* lib/mp-readline: Use simple VT100 commands to speed up line redraw.Damien George2015-01-25
|
* lib/libm: Add frexp and modf functions; use in stmhal; add tests.Damien George2015-01-22
| | | | Addresses issue #1081.
* py: Allow to compile with -Wstrict-prototypes.Damien George2015-01-12
|
* py, unix, lib: Allow to compile with -Wold-style-definition.Damien George2015-01-12
|
* lib/mp-readline: Refactor to support coroutine/event-driven usage.Paul Sokolovsky2015-01-12
| | | | | | readline_process_char() can be fed character by character, for example, received from external event loop. This will allow to integrate MicroPython into cooperative multitasking systems.
* stmhal: Move readline code to lib/mp-readline/.Paul Sokolovsky2015-01-12
|
* stmhal: Add fake implementation of __aeabi_f2lz().Paul Sokolovsky2014-12-30
| | | | To make mp_obj_new_int_from_float() somehow work.
* lib/fatfs: Allow a smaller minimum sector count for fatfs to be created.Damien George2014-12-27
|
* lib/fatfs: Support our volume names; make some funcs static.Damien George2014-12-27
|
* lib/fatfs: Upgrade to new FatFs driver, put in lib/ for common use.Damien George2014-12-27
| | | | Patches to fatfs for our use will follow.
* lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal.Damien George2014-12-18
| | | | | | | | | acoshf, asinhf, atanhf were added from musl. mathsincos.c was split up into its original, separate files (from newlibe-nano-2). tan was added. All of the important missing float functions are now implemented, and pyboard now passes tests/float/math_fun.py (finally!).