1. 12 Aug, 2014 1 commit
  2. 28 Jul, 2014 1 commit
  3. 25 Jul, 2014 1 commit
    • Dave Hylands's avatar
      Add support for storing args during an exception raised by an irq. · 5b7fd20f
      Dave Hylands authored
      The user code should call micropython.alloc_emergency_exception_buf(size)
      where size is the size of the buffer used to print the argument
      passed to the exception.
      
      With the test code from #732, and a call to
      micropython.alloc_emergenncy_exception_buf(100) the following error is
      now printed:
      ```python
      >>> import heartbeat_irq
      Uncaught exception in Timer(4) interrupt handler
      Traceback (most recent call last):
        File "0://heartbeat_irq.py", line 14, in heartbeat_cb
      NameError: name 'led' is not defined
      ```
      5b7fd20f
  4. 09 Jul, 2014 1 commit
  5. 03 Jul, 2014 2 commits
  6. 28 Jun, 2014 1 commit
  7. 27 Jun, 2014 1 commit
  8. 26 Jun, 2014 2 commits
  9. 21 Jun, 2014 1 commit
    • mux's avatar
      Fix asser_func warning/error · 5c8db485
      mux authored
      * Add while(1) to assert_func to avoid func returns warning
      * Define a weak attr in mpconfig.h
      5c8db485
  10. 20 Jun, 2014 1 commit
  11. 12 Jun, 2014 1 commit
  12. 11 Jun, 2014 1 commit
  13. 05 Jun, 2014 1 commit
  14. 01 Jun, 2014 2 commits
  15. 25 May, 2014 1 commit
    • Damien George's avatar
      py: Don't automatically intern strings in parser. · 5042bce8
      Damien George authored
      This completes non-automatic interning of strings in the parser, so that
      doc strings don't take up RAM.  It complicates the parser and compiler,
      and bloats stmhal by about 300 bytes.  It's complicated because now
      there are 2 kinds of parse-nodes that can be strings: interned leaves
      and non-interned structs.
      5042bce8
  16. 24 May, 2014 1 commit
  17. 21 May, 2014 1 commit
    • Damien George's avatar
      Tidy up some configuration options. · 58ebde46
      Damien George authored
      MP_ALLOC_* -> MICROPY_ALLOC_*
      MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX
      MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL
      MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX
      MICROPY_EXTRA_* -> MICROPY_PORT_*
      
      See issue #35.
      58ebde46
  18. 19 May, 2014 1 commit
  19. 15 May, 2014 1 commit
  20. 11 May, 2014 1 commit
  21. 10 May, 2014 5 commits
  22. 08 May, 2014 2 commits
  23. 06 May, 2014 1 commit
  24. 05 May, 2014 2 commits
    • Paul Sokolovsky's avatar
      f9e54e0e
    • Damien George's avatar
      py: Turn down amount of RAM parser and compiler use. · 66e18f04
      Damien George authored
      There are 2 locations in parser, and 1 in compiler, where memory
      allocation is not precise.  In the parser it's the rule stack and result
      stack, in the compiler it's the array for the identifiers in the current
      scope.  All other mallocs are exact (ie they don't allocate more than is
      needed).
      
      This patch adds tuning options (MP_ALLOC_*) to mpconfig.h for these 3
      inexact allocations.
      
      The inexact allocations in the parser should actually be close to
      logarithmic: you need an exponentially larger script (absent pathological
      cases) to use up more room on the rule and result stacks.  As such, the
      default allocation policy for these is now to start with a modest sized
      stack, but grow only in small increments.
      
      For the identifier arrays in the compiler, these now start out quite
      small (4 entries, since most functions don't have that many ids), and
      grow incrementally by 6 (since if you have more ids than 4, you probably
      have quite a few more, but it wouldn't be exponentially more).
      
      Partially addresses issue #560.
      66e18f04
  25. 03 May, 2014 1 commit
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
      04b9147e
  26. 30 Apr, 2014 2 commits
  27. 26 Apr, 2014 1 commit
  28. 25 Apr, 2014 1 commit
  29. 17 Apr, 2014 2 commits