Commits on Aug 7, 2013
  1. Update status docs for Mizar32

    martinwguy committed Aug 7, 2013
    - Add CPUs for all three models 128, 256 and 512
    - Mizar32 generic modules pwm, net, adc and i2s are OK
    - Atmel have moved their product pages (der!)
    - Add platform modules mizar32.rtc and .lcd
    - Fix 1 typo ("suported")
Commits on May 23, 2013
  1. Adjust parser to not malloc when a thrown error might prevent allocat…

    jsnyder authored and martinwguy committed Oct 4, 2012
    …ions from being freed
    Imported from elua trunk, adapted to #ifdef LUA_EGC stuff.
    This does seem to slightly improve memory leakage behaviour:
    in 20KB RAM you can press Enter 17 times before getting "not enough memory"
    instead of 16. It also makes the code 48 bytes smaller :-)
Commits on May 13, 2013
  1. Config for Mizar32 models

    martinwguy committed May 13, 2013
  2. Improve sloppy coding in uart.c

    martinwguy committed May 12, 2013
    Recode cascaded ifs as switch, allowing the optimizer to save 20 bytes.
  3. Drop null device initializations

    martinwguy committed May 12, 2013
    Remove pointless calls to foo_init() { dm_register(NULL,NULL,NULL) };
    when BUILD_FOO is not defined, saving a few dozen bytes of code.
  4. Check for availability of systimer at compile time not run time

    martinwguy committed May 12, 2013
    Saving 316 bytes of code
  5. Include code for directory operations only when BUILD_SHELL is defined

    martinwguy committed May 12, 2013
    Only the eLua shell uses directory oriented file operations so this drops them
    from struct DM_DEVICE unless BUILD_SHELL is defined (via define DM_DIROPS)
    saving 2308 byts of code when the shell is not in use.
  6. Make read-only string patch conditional on -DLUA_ROSTRINGS

    martinwguy committed May 6, 2013
    This makes the read-only strings and function patch (commit d54659b)
    a compile-time option, depending whether LUA_ROSTRINGS is defined.
    Use scons/build_elua.lua rostrings=0 to remove it, saving 916 to 1044
    bytes of code on AVR32, depending on the config.
  7. Add luaconf.h LUA_REMOVE_COLLECTGARBAGE to drop collectgarbage and gc…

    martinwguy committed May 3, 2013
    For systems with a lack of program space
  8. Add luaconf.h LUA_REMOVE_DUMP and LUA_REMOVE_UNDUMP defines

    martinwguy committed May 3, 2013
    Defining these remove the dump and undump mechanisms respectively
    from the interpreter.  "dump" is always used needed when building the
    Lua cross-compiler, undump is needed to load compiled bytecode.
Commits on May 8, 2013
  1. Add a luaconf.h define LUA_REMOVE_GETENV to remove all calls to getenv()

    martinwguy committed May 3, 2013
    Allow removal of all calls to getenv() since embedded platforms don't
    usually have an environment to query.
  2. If !BUILD_SHELL, don't quilt Lua on Ctrl-Z

    martinwguy committed May 8, 2013
    If there's no eLua sell to return to, quitting Lua on ^Z makes no sense.
  3. Simplify Lua error strings

    martinwguy committed May 3, 2013
    Reduce the size of Lua error messages and make more of them have the
    same text so that there is only one copy of them in the executable
    saving 778 bytes of text.
  4. Add custom strerror()

    martinwguy committed May 3, 2013
    Adds a homebrew strerror() function that only decodes the errno
    values that eLua generates, saving 2288 bytes of string table.
  5. Rework uart stdin CRLF handling not to use a timer

    martinwguy committed May 3, 2013
    Saving 100 bytes of code
Commits on May 7, 2013
  1. Make table of available RAM regions static

    martinwguy committed May 7, 2013
    Instead of constructing them on the stack at runtime in every call to
    When there was is only one RAM region this makes no difference, as the
    whole thing is optimised out. However, when there are more than one
    region, this improves both size and speed, especially in the simple
    allocator, which calls these functions twice each at every call to
  2. Add 2 missing lines of the EGC patch

    martinwguy committed May 7, 2013
    These two lines are in the Emergency Garbage Collector patches but
    seem to have got lost in transit.
    The case it handles (exceeding MEMLIMIT) is pretty rare.
  3. Fix compiler warning for type of luai_ipow()

    martinwguy committed May 7, 2013
    The Lua VM's luai_ipow() function is reused in lmathlib to provide
    an integer version of the pow() function. However luai_ipow's
    declaration in luac is only for LUA_CORE, whereas lmathlib.c is LUA_LIB.
    The least invasive fix is just to redeclare it in lmathlib.c
Commits on May 3, 2013
  1. Make inclusion of conditional on BUILD_SHELL

    martinwguy committed May 3, 2013
    Compilation failed if te elua Lua module was included but
    BIULD_SHELL was not defined. This fixes that case.
Commits on Apr 1, 2013
Commits on Mar 31, 2013
  1. make toolchain docs obsolete

    bogdanm committed Mar 31, 2013
Commits on Mar 12, 2013
  1. Added SD Card support to STR-E912 board (note: set the card_cs_sel ju…

    naves-thiago committed Mar 12, 2013
    …mper to the position closer to the JTAG)
Commits on Mar 4, 2013
Commits on Feb 26, 2013
  1. MMC fix in sim mode

    bogdanm committed Feb 26, 2013
Commits on Jan 21, 2013
  1. Updated ROMFS documentation

    bogdanm committed Jan 21, 2013
    - ROMFS doc file switched to AsciiDoc
    - changed ROMFS documentation to match the current implementation