Skip to content
Snippets Groups Projects
  1. Jan 22, 2017
  2. Dec 21, 2016
    • Paul Sokolovsky's avatar
      extmod/modutimeq: Refactor into optimized class. · d02f6a99
      Paul Sokolovsky authored
          import utimeq, utime
          # Max queue size, the queue allocated statically on creation
          q = utimeq.utimeq(10)
          q.push(utime.ticks_ms(), data1, data2)
          res = [0, 0, 0]
          # Items in res are filled up with results
          q.pop(res)
      d02f6a99
  3. Nov 20, 2016
  4. Sep 21, 2016
  5. Jun 28, 2016
  6. Jun 14, 2016
  7. May 10, 2016
  8. May 02, 2016
  9. Apr 28, 2016
    • Paul Sokolovsky's avatar
      extmod/modwebrepl: Module to handle WebREPL protocol. · 25d0f7d5
      Paul Sokolovsky authored
      While just a websocket is enough for handling terminal part of WebREPL,
      handling file transfer operations requires demultiplexing and acting
      upon, which is encapsulated in _webrepl class provided by this module,
      which wraps a websocket object.
      25d0f7d5
  10. Apr 12, 2016
  11. Mar 24, 2016
  12. Jan 17, 2016
  13. Dec 12, 2015
  14. Dec 06, 2015
  15. Dec 04, 2015
  16. Nov 29, 2015
  17. Oct 26, 2015
  18. Oct 12, 2015
  19. Oct 06, 2015
  20. May 04, 2015
  21. Apr 16, 2015
    • Damien George's avatar
    • Damien George's avatar
      py: Overhaul and simplify printf/pfenv mechanism. · 7f9d1d6a
      Damien George authored
      Previous to this patch the printing mechanism was a bit of a tangled
      mess.  This patch attempts to consolidate printing into one interface.
      
      All (non-debug) printing now uses the mp_print* family of functions,
      mainly mp_printf.  All these functions take an mp_print_t structure as
      their first argument, and this structure defines the printing backend
      through the "print_strn" function of said structure.
      
      Printing from the uPy core can reach the platform-defined print code via
      two paths: either through mp_sys_stdout_obj (defined pert port) in
      conjunction with mp_stream_write; or through the mp_plat_print structure
      which uses the MP_PLAT_PRINT_STRN macro to define how string are printed
      on the platform.  The former is only used when MICROPY_PY_IO is defined.
      
      With this new scheme printing is generally more efficient (less layers
      to go through, less arguments to pass), and, given an mp_print_t*
      structure, one can call mp_print_str for efficiency instead of
      mp_printf("%s", ...).  Code size is also reduced by around 200 bytes on
      Thumb2 archs.
      7f9d1d6a
  22. Apr 11, 2015
  23. Mar 20, 2015
    • Paul Sokolovsky's avatar
      py: Implement core of OrderedDict type. · 0ef01d0a
      Paul Sokolovsky authored
      Given that there's already support for "fixed table" maps, which are
      essentially ordered maps, the implementation of OrderedDict just extends
      "fixed table" maps by adding an "is ordered" flag and add/remove
      operations, and reuses 95% of objdict code, just making methods tolerant
      to both dict and OrderedDict.
      
      Some things are missing so far, like CPython-compatible repr and comparison.
      
      OrderedDict is Disabled by default; enabled on unix and stmhal ports.
      0ef01d0a
  24. Jan 20, 2015
  25. Jan 07, 2015
  26. Jan 01, 2015
  27. Dec 09, 2014
    • Damien George's avatar
      py: Allow builtins to be overridden. · 78d702c3
      Damien George authored
      This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
      which, when enabled, allows to override all names within the builtins
      module.  A builtins override dict is created the first time the user
      assigns to a name in the builtins model, and then that dict is searched
      first on subsequent lookups.  Note that this implementation doesn't
      allow deleting of names.
      
      This patch also does some refactoring of builtins code, creating the
      modbuiltins.c file.
      
      Addresses issue #959.
      78d702c3
  28. Nov 04, 2014
  29. Sep 08, 2014
  30. May 03, 2014
    • 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
  31. May 02, 2014
  32. Apr 08, 2014
  33. Apr 05, 2014
  34. Mar 30, 2014
    • Damien George's avatar
      Merge map.h into obj.h. · df6567e6
      Damien George authored
      Pretty much everyone needs to include map.h, since it's such an integral
      part of the Micro Python object implementation.  Thus, the definitions
      are now in obj.h instead.  map.h is removed.
      df6567e6
Loading