1. 31 Jan, 2017 1 commit
    • Damien George's avatar
      stmhal: Initial implementation of multithreading, currently disabled. · 882ec01e
      Damien George authored
      This patch brings the _thread module to stmhal/pyboard.  There is a very
      simple round-robin thread scheduler, which is disabled if there is only
      one thread (for efficiency when threading is not used).
      The scheduler currently switches threads at a rate of 250Hz using the
      systick timer and the pend-SV interrupt.
      The GIL is disabled so one must be careful to use lock objects to prevent
      concurrent access of objects.
      The threading is disabled by default, one can enabled it with the config
      option MICROPY_PY_THREAD to test it out.
  2. 30 Jan, 2017 1 commit
  3. 29 Jan, 2017 1 commit
    • Paul Sokolovsky's avatar
      extmod/machine_signal: Implement "signal" abstraction for machine module. · 7a7516d4
      Paul Sokolovsky authored
      A signal is like a pin, but ca also be inverted (active low). As such, it
      abstracts properties of various physical devices, like LEDs, buttons,
      relays, buzzers, etc. To instantiate a Signal:
      pin = machine.Pin(...)
      signal = machine.Signal(pin, inverted=True)
      signal has the same .value() and __call__() methods as a pin.
  4. 18 Jun, 2016 1 commit
  5. 12 Apr, 2016 1 commit
  6. 14 Feb, 2016 1 commit
  7. 06 Feb, 2016 1 commit
  8. 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/.
  9. 19 Apr, 2014 1 commit
  10. 22 Mar, 2014 2 commits