summaryrefslogtreecommitdiffstatshomepage
path: root/lib
Commit message (Collapse)AuthorAge
* py: Add MICROPY_USE_INTERNAL_PRINTF option, defaults to enabled.Delio Brignoli2016-09-05
| | | | | | | | This new config option allows to control whether MicroPython uses its own internal printf or not (if not, an external one should be linked in). Accompanying this new option is the inclusion of lib/utils/printf.c in the core list of source files, so that ports no longer need to include it themselves.
* lib/utils/pyexec: qstr_pool_info() requires size_t* parameters.Paul Sokolovsky2016-08-30
|
* lib/berkeley-db-1.xx: Update to upstream, fixes MacOSX build.Paul Sokolovsky2016-08-25
|
* lib/utils/stdout_helpers: Fix function signature to match py/mphal.h.Paul Sokolovsky2016-08-25
|
* lib/berkeley-db-1.xx: Update, sets default page size to 4096.Paul Sokolovsky2016-08-09
| | | | | This both good default for 4096 and makes less chance to see overflow page issues.
* lib/berkeley-db-1.xx: Switch to "embedded" branch.Paul Sokolovsky2016-07-31
| | | | | It allows to access files via a virtual method tables and thus can integrate with MicroPython's stream objects.
* lib/abort_.c: Add prototype to make coverage build happy.Paul Sokolovsky2016-07-30
|
* lib/embed/abort_: Implementation of abort_() function raising uPy exception.Paul Sokolovsky2016-07-30
| | | | | | | Helpful when porting existing C libraries to MicroPython. abort()ing in embedded environment isn't a good idea, so when compiling such library, -Dabort=abort_ option can be given to redirect standard abort() to this "safe" version.
* lib/utils/stdout_helpers: Move from minimal/uart_extra.c for reuse.Paul Sokolovsky2016-07-22
|
* lib/utils/pyexec: Use full path to readline.h header, per latest conventions.Paul Sokolovsky2016-07-21
|
* lib/axtls: Update, fixes esp8266 build.Paul Sokolovsky2016-07-11
|
* lib/axtls: Upgrade to axTLS 1.5.4 + MicroPython patchset.Paul Sokolovsky2016-07-10
|
* lib/libm: Remove unused definition of "one".Damien George2016-06-25
|
* lib/libm: Format code to pass gcc v6.1.1 warning.Damien George2016-06-25
| | | | | | gcc 6.1.1 warns when indentation is misleading, and in this case the formatting of the code really is misleading. So adjust the formatting to be clear of the meaning of the code.
* lib/fatfs/option/ccsbcs: Follow uPy optional features model.Paul Sokolovsky2016-06-15
| | | | | Don't error out when options is not what you support, just skip your code. This allows to make FatFs support properly configurable.
* lib/berkeley-db-1.xx: Update to upstream which builds for uPy.Paul Sokolovsky2016-06-15
| | | | | Applied "official" patches and fixed various warnings when built with uPy's compile options.
* lib/berkeley-db-1.xx: Add Berkeley DB 1.85 as a submodule.Paul Sokolovsky2016-06-14
| | | | | | | | | From https://github.com/pfalcon/berkeley-db-1.xx, which so far contains pristine 1.85, but will get patches and compile warning fixes going forward. Berkeley DB 1.xx is BSD-licensed, and will form the basis of "btree" simple database module.
* lib/timeutils/timeutils: Fix pedantic warning in coverage build.Paul Sokolovsky2016-06-03
|
* lib/timeutils/timeutils: timeutils_mktime may accept negative time values.Paul Sokolovsky2016-06-02
| | | | And will normalize them.
* lib/libc/string0: Remove better-than-standard strncpy() implementation.Paul Sokolovsky2016-05-02
| | | | | ANSI C doesn't require that strncpy() produced null-terminated string, so it's basicly useless for string manipulation.
* lib/libc/string0: Add strncpy() implementation.Paul Sokolovsky2016-05-02
|
* lib/axtls: Update to the latest upstream, fix reported MacOSX build issue.Paul Sokolovsky2016-05-01
|
* lib/timeutils/timeutils: Typo fix in comment.Paul Sokolovsky2016-04-27
|
* lib/utils/pyhelp: Extract implementation of help(obj) to a library function.Colin Hogben2016-04-25
| | | | | | Several ports use identical code for the 1-argument form of the builtin help function. Move this code to a library function to allow easier re-use by ports.
* lib/utils/pyexec: Condition-out GC calls from pyexec.Colin Hogben2016-04-19
| | | | | | | | | A port which uses lib/utils/pyexec.c but which does not enable garbage collection should not need to implement the gc_collect function. This patch also moves the gc_collect call to after printing the qstr info. Since qstrs cannot be collected it should not make any difference to the printed statistics.
* py: Add ability to have frozen persistent bytecode from .mpy files.Damien George2016-04-13
| | | | | | | The config variable MICROPY_MODULE_FROZEN is now made of two separate parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This allows to have none, either or both of frozen strings and frozen mpy files (aka frozen bytecode).
* lib/utils/printf: Rework overriding printer of DEBUG_printf().Paul Sokolovsky2016-04-13
| | | | | By default it uses mp_plat_print, but a port may override it to another value with MICROPY_DEBUG_PRINTER_DEST.
* lib/axtls: Update to the latest upstream master.Paul Sokolovsky2016-04-08
|
* esp8266: Disallow recursive calls to REPL.Paul Sokolovsky2016-04-01
| | | | | | | | | Before this change, if REPL blocked executing some code, it was possible to still input new statememts and excuting them, all leading to weird, and portentially dangerous interaction. TODO: Current implementation may have issues processing input accumulated while REPL was blocked.
* esp8266: Fix issue when current repl line was garbage-collected.Paul Sokolovsky2016-03-30
| | | | Reference it from root pointers section.
* lib/fatfs: Add support for sector sizes larger than 512 bytes.Damien George2016-02-10
| | | | | | | | | If MICROPY_FATFS_MAX_SS is defined to power of 2 value between 1024 and 4096, support for dynamic sector size in FatFs will be enabled. Note that FatFs reserves static buffer of MICROPY_FATFS_MAX_SS size for each filesystem in use, so that value should be set sparingly. Initial patch provided by @pfalcon.
* lib/libc/string0: Use uintptr_t instead of uint32_t.Damien George2015-12-31
| | | | This makes the code portable to non-32-bit architectures.
* lib/utils: Add pyexec_frozen_module to load and execute frozen module.Damien George2015-12-26
| | | | | | This is a convenience function similar to pyexec_file. It should be used instead of raw mp_parse_compile_execute because the latter does not catch and report exceptions.
* lib/libm: Allow math funcs to be used by non-Thumb archs.Damien George2015-12-18
| | | | Requires addition of software implementation of sqrtf function.
* lib/utils/printf: Add vsnprintf alias for Clang.Paul Sokolovsky2015-12-12
| | | | Was reported to break MacOSX build.
* lib/utils/printf: Apply workaround for static linking with uclibc.Paul Sokolovsky2015-12-10
| | | | uclibc objects call __GI_vsnprintf().
* py: Change mp_print_strn_t func type to use size_t for the str length.Damien George2015-11-29
|
* lib/utils/printf: Use more conservative check for MICROPY_DEBUG_STDERR.Paul Sokolovsky2015-11-23
|
* 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.