1. 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
  2. 17 Apr, 2014 2 commits
  3. 15 Apr, 2014 2 commits
  4. 13 Apr, 2014 4 commits
  5. 10 Apr, 2014 1 commit
    • Paul Sokolovsky's avatar
      py: Start implementing "struct" module. · e9db8404
      Paul Sokolovsky authored
      Only calcsize() and unpack() functions provided so far, for little-endian
      byte order. Format strings don't support repition spec (like "2b3i").
      
      Unfortunately, dealing with all the various binary type sizes and alignments
      will lead to quite a bloated "binary" helper functions  - if optimizing for
      speed. Need to think if using dynamic parametrized algos makes more sense.
      e9db8404
  6. 05 Apr, 2014 2 commits
  7. 03 Apr, 2014 1 commit
    • Paul Sokolovsky's avatar
      py: Add "io" module. · 98a627dc
      Paul Sokolovsky authored
      So far just includes "open" function, which should be supplied by a port.
      
      TODO: Make the module #ifdef'ed.
      98a627dc
  8. 26 Mar, 2014 1 commit
  9. 25 Mar, 2014 1 commit
  10. 24 Mar, 2014 1 commit
  11. 08 Mar, 2014 1 commit
    • Damien George's avatar
      Implement ROMable modules. Add math module. · 0c36da0b
      Damien George authored
      mp_module_obj_t can now be put in ROM.
      
      Configuration of float type is now similar to longint: can now choose
      none, float or double as the implementation.
      
      math module has basic math functions.  For STM port, these are not yet
      implemented (they are just stub functions).
      0c36da0b
  12. 03 Mar, 2014 1 commit
  13. 03 Feb, 2014 2 commits
  14. 02 Feb, 2014 2 commits
  15. 20 Jan, 2014 3 commits
  16. 15 Jan, 2014 3 commits
  17. 13 Jan, 2014 2 commits
  18. 09 Jan, 2014 1 commit
  19. 08 Jan, 2014 1 commit
  20. 02 Jan, 2014 1 commit
  21. 01 Jan, 2014 1 commit
  22. 21 Dec, 2013 1 commit
    • Damien's avatar
      Change object representation from 1 big union to individual structs. · d99b0528
      Damien authored
      A big change.  Micro Python objects are allocated as individual structs
      with the first element being a pointer to the type information (which
      is itself an object).  This scheme follows CPython.  Much more flexible,
      not necessarily slower, uses same heap memory, and can allocate objects
      statically.
      
      Also change name prefix, from py_ to mp_ (mp for Micro Python).
      d99b0528
  23. 17 Dec, 2013 2 commits