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

    - 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")
    martinwguy committed Aug 7, 2013
Commits on May 23, 2013
  1. Adjust parser to not malloc when a thrown error might prevent allocat…

    …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 :-)
    jsnyder committed with martinwguy Oct 4, 2012
Commits on May 13, 2013
  1. Config for Mizar32 models

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

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

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

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

    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.
    martinwguy committed May 12, 2013
  6. Make read-only string patch conditional on -DLUA_ROSTRINGS

    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.
    
    Conflicts:
    
    	inc/newlib/devman.h
    	src/mmcfs.c
    	src/newlib/devman.c
    	src/newlib/genstd.c
    	src/romfs.c
    	src/semifs.c
    martinwguy committed May 6, 2013
  7. Add luaconf.h LUA_REMOVE_COLLECTGARBAGE to drop collectgarbage and gc…

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

    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.
    martinwguy committed May 3, 2013
Commits on May 8, 2013
  1. Add a luaconf.h define LUA_REMOVE_GETENV to remove all calls to getenv()

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

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

    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.
    martinwguy committed May 3, 2013
  4. Add custom strerror()

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

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

    Instead of constructing them on the stack at runtime in every call to
    platform_get_{first,last}_free_ram().
    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
    malloc().
    martinwguy committed May 7, 2013
  2. Add 2 missing lines of the EGC patch

    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.
    martinwguy committed May 7, 2013
  3. Fix compiler warning for type of luai_ipow()

    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
    martinwguy committed May 7, 2013
Commits on May 3, 2013
  1. Make inclusion of elua.shell() conditional on BUILD_SHELL

    Compilation failed if te elua Lua module was included but
    BIULD_SHELL was not defined. This fixes that case.
    martinwguy committed May 3, 2013
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…

    …mper to the position closer to the JTAG)
    naves-thiago committed Mar 12, 2013
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

    - ROMFS doc file switched to AsciiDoc
    - changed ROMFS documentation to match the current implementation
    bogdanm committed Jan 21, 2013
  2. updated cross compilation docs

    bogdanm committed Jan 21, 2013