1. 21 May, 2017 1 commit
  2. 19 May, 2017 1 commit
  3. 16 May, 2017 1 commit
  4. 13 May, 2017 1 commit
  5. 12 May, 2017 5 commits
  6. 10 May, 2017 1 commit
  7. 05 May, 2017 1 commit
  8. 13 Apr, 2017 2 commits
  9. 10 Apr, 2017 1 commit
    • Paul Sokolovsky's avatar
      extmod/machine_signal: Support all Pin's arguments to the constructor. · 605ff91e
      Paul Sokolovsky authored
      This implements the orginal idea is that Signal is a subclass of Pin, and
      thus can accept all the same argument as Pin, and additionally, "inverted"
      param. On the practical side, it allows to avoid many enclosed parenses for
      a typical declararion, e.g. for Zephyr:
      
      Signal(Pin(("GPIO_0", 1))).
      
      Of course, passing a Pin to Signal constructor is still supported and is the
      most generic form (e.g. Unix port will only support such form, as it doesn't
      have "builtin" Pins), what's introduces here is just practical readability
      optimization.
      
      "value" kwarg is treated as applying to a Signal (i.e. accounts for possible
      inversion).
      605ff91e
  10. 03 Apr, 2017 1 commit
  11. 01 Apr, 2017 1 commit
  12. 31 Mar, 2017 1 commit
  13. 29 Mar, 2017 2 commits
  14. 27 Mar, 2017 1 commit
  15. 26 Mar, 2017 1 commit
  16. 24 Mar, 2017 1 commit
    • Damien George's avatar
      py/modbuiltins: For round() builtin use nearbyint instead of round. · 125eae1b
      Damien George authored
      The C nearbyint function has exactly the semantics that Python's round()
      requires, whereas C's round() requires extra steps to handle rounding of
      numbers half way between integers.  So using nearbyint reduces code size
      and potentially eliminates any source of errors in the handling of half-way
      numbers.
      
      Also, bare-metal implementations of nearbyint can be more efficient than
      round, so further code size is saved (and efficiency improved).
      
      nearbyint is provided in the C99 standard so it should be available on all
      supported platforms.
      125eae1b
  17. 23 Mar, 2017 1 commit
  18. 21 Mar, 2017 2 commits
  19. 20 Mar, 2017 4 commits
  20. 14 Mar, 2017 2 commits
  21. 24 Feb, 2017 1 commit
  22. 16 Feb, 2017 1 commit
    • Damien George's avatar
      py: Add iter_buf to getiter type method. · ae8d8675
      Damien George authored
      Allows to iterate over the following without allocating on the heap:
      - tuple
      - list
      - string, bytes
      - bytearray, array
      - dict (not dict.keys, dict.values, dict.items)
      - set, frozenset
      
      Allows to call the following without heap memory:
      - all, any, min, max, sum
      
      TODO: still need to allocate stack memory in bytecode for iter_buf.
      ae8d8675
  23. 13 Feb, 2017 1 commit
  24. 03 Feb, 2017 1 commit
  25. 30 Jan, 2017 2 commits
  26. 29 Jan, 2017 2 commits
  27. 27 Jan, 2017 1 commit