summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2015-07-26lib/mp-readline: Add emacs-style control characters for cursor movement.Tom Soulanille
Disabled by default. Adds 108 bytes to Thumb2 arch when enabled.
2015-05-30lib/mp-readline: Allow overriding implementation of cursor functionsstijn
Default implementation uses VT100-style sequences which are not implemented by all terminals out there
2015-05-30lib/mp-readline: Add implementation for deleting a characterstijn
xterm and others use the ESC[~3 sequence when pressing the delete key
2015-05-27lib/mp-readline: Export readline_push_history function.Damien George
2015-05-21lib: Fix some issues in timeutilsDave Hylands
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.
2015-05-13lib: Move time utility functions to common library.Josef Gajdusek
2015-05-04lib: Move some common mod_network_* functions to lib/netutils.Josef Gajdusek
2015-04-29py, readline: Add tab autocompletion for REPL.Damien George
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.
2015-04-29mp-readline: Save "prompt" string in readline state.Damien George
2015-04-28lib/libc: Add memchr. We already have strchr, but memchr is useful too.Daniel Campora
2015-04-18lib/libc/string0.c: Remove include of std.h, replace with string.h.Damien George
Much more portable this way.
2015-04-11lib/fatfs: Space optimise the ff_wtoupper function.Damien George
Saves 768 bytes code space on Thumb2 archs.
2015-04-05string0.c: Move from stmhal/ to lib/.Paul Sokolovsky
2015-03-29lib: Update FatFs to R0.11.Daniel Campora
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.
2015-02-22lib/libm: Add implementations of erf, erfc, lgamma, tgamma.Damien George
2015-02-13minimal: Allow to compile without defining MICROPY_HAL_H.Damien George
2015-02-13stmhal: Make pybstdio usable by other ports, and use it.Damien George
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.
2015-01-29py: Change vstr_null_terminate -> vstr_null_terminated_str, returns str.Damien George
2015-01-28py: Change vstr so that it doesn't null terminate buffer by default.Damien George
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.
2015-01-25lib/mp-readline: Use simple VT100 commands to speed up line redraw.Damien George
2015-01-22lib/libm: Add frexp and modf functions; use in stmhal; add tests.Damien George
Addresses issue #1081.
2015-01-12py: Allow to compile with -Wstrict-prototypes.Damien George
2015-01-12py, unix, lib: Allow to compile with -Wold-style-definition.Damien George
2015-01-12lib/mp-readline: Refactor to support coroutine/event-driven usage.Paul Sokolovsky
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.
2015-01-12stmhal: Move readline code to lib/mp-readline/.Paul Sokolovsky
2014-12-30stmhal: Add fake implementation of __aeabi_f2lz().Paul Sokolovsky
To make mp_obj_new_int_from_float() somehow work.
2014-12-27lib/fatfs: Allow a smaller minimum sector count for fatfs to be created.Damien George
2014-12-27lib/fatfs: Support our volume names; make some funcs static.Damien George
2014-12-27lib/fatfs: Upgrade to new FatFs driver, put in lib/ for common use.Damien George
Patches to fatfs for our use will follow.
2014-12-18lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal.Damien George
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!).
2014-10-31py: Add builtin round function.Damien George
Addresses issue #934.
2014-09-18lib: Add basic README.Damien George
2014-09-13py: Implement divmod, % and proper // for floating point.Damien George
Tested and working on unix and pyboard.
2014-09-11py and libm: Add asinf,acosf; print higher precision for float.Damien George
Also use less stack space when printing single precision float. Addition of asinf and acosf addresses issue #851.
2014-08-29lib, libm: Add back dummy definition of tanf.Damien George
2014-08-29lib: Add lib and libm, moving current files from stmhal.Damien George
Top-level lib directory is for standard C libraries that we want to provide our own versions of (for efficiency and stand-alone reasons). It currently has libm in it for math functions. Also add atanf and atan2f, which addresses issue #837.