1. 12 Aug, 2014 1 commit
  2. 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
  3. 19 Jul, 2014 1 commit
    • Damien George's avatar
      py: Add stream reading of n unicode chars; unicode support by default. · 1694bc73
      Damien George authored
      With unicode enabled, this patch allows reading a fixed number of
      characters from text-mode streams; eg file.read(5) will read 5 unicode
      chars, which can made of more than 5 bytes.
      
      For an ASCII stream (ie no chars > 127) it only needs to do 1 read.  If
      there are lots of non-ASCII chars in a stream, then it needs multiple
      reads of the underlying object.
      
      Adds a new test for this case.  Enables unicode support by default on
      unix and stmhal ports.
      1694bc73
  4. 13 Jul, 2014 1 commit
  5. 09 Jul, 2014 1 commit
  6. 03 Jul, 2014 2 commits
  7. 28 Jun, 2014 1 commit
  8. 20 Jun, 2014 1 commit
  9. 08 Jun, 2014 1 commit
  10. 07 Jun, 2014 2 commits
  11. 05 Jun, 2014 2 commits
  12. 01 Jun, 2014 1 commit
    • Damien George's avatar
      Rename bultins config variables to MICROPY_PY_BUILTINS_*. · fb510b3b
      Damien George authored
      This renames:
      MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET
      MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY
      MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE
      MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT
      
      See issue #35 for discussion.
      fb510b3b
  13. 24 May, 2014 1 commit
  14. 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
  15. 19 May, 2014 1 commit
  16. 14 May, 2014 1 commit
    • Paul Sokolovsky's avatar
      unix: Add "_os" module with stat(). · 0c124c31
      Paul Sokolovsky authored
      stat() is bad function to use using FFI, because its ABI is largely private.
      To start with, Glibc .so doesn't even have "stat" symbol. Then, layout of
      struct stat is too implementation-dependent. So, introduce _os to deal
      with stat() and other similar cases.
      0c124c31
  17. 12 May, 2014 1 commit
    • stijn's avatar
      unix: Fix linker errors when time/ffi modules are disabled · f42dbb98
      stijn authored
      When disabling these via mpconfigport.mk or on the commandline,
      the correspoding build options are not set and the sources are not
      built so the modules should not be added to the
      MICROPY_EXTRA_BUILTIN_MODULES list since they are undefined.
      f42dbb98
  18. 11 May, 2014 1 commit
  19. 10 May, 2014 2 commits
  20. 07 May, 2014 1 commit
  21. 06 May, 2014 1 commit
  22. 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
  23. 30 Apr, 2014 1 commit
  24. 17 Apr, 2014 5 commits
  25. 15 Apr, 2014 1 commit
  26. 14 Apr, 2014 1 commit
  27. 13 Apr, 2014 2 commits
  28. 05 Apr, 2014 3 commits
  29. 02 Apr, 2014 1 commit
    • Paul Sokolovsky's avatar
      unix: Enable GC. · 78e8e30c
      Paul Sokolovsky authored
      GC support for "unix" port was implemented some time ago, but still not
      enabled.
      78e8e30c