1. 03 Jul, 2017 1 commit
  2. 20 Mar, 2017 1 commit
    • Damien George's avatar
      stmhal/pendsv: Disable interrupts during a thread switch. · ebbaf7ee
      Damien George authored
      We can actually handle interrupts during a thread switch (because we always
      have a valid stack), but only if those interrupts don't access any of the
      thread state (because the state may not correspond to the stack pointer).
      So to be on the safe side we disable interrupts during the very short
      period of the thread state+stack switch.
  3. 15 Feb, 2017 1 commit
  4. 31 Jan, 2017 2 commits
  5. 15 Dec, 2016 1 commit
  6. 01 Nov, 2015 1 commit
  7. 29 Jul, 2015 1 commit
  8. 23 May, 2015 1 commit
  9. 20 Mar, 2015 1 commit
  10. 07 Jan, 2015 2 commits
  11. 01 Jan, 2015 1 commit
  12. 25 Oct, 2014 1 commit
    • Damien George's avatar
      py: Add mp_pending_exception global variable, for VM soft interrupt. · 124df6f8
      Damien George authored
      This allows to implement KeyboardInterrupt on unix, and a much safer
      ctrl-C in stmhal port.  First ctrl-C is a soft one, with hope that VM
      will notice it; second ctrl-C is a hard one that kills anything (for
      both unix and stmhal).
      One needs to check for a pending exception in the VM only for jump
      opcodes.  Others can't produce an infinite loop (infinite recursion is
      caught by stack check).
  13. 28 Jun, 2014 1 commit
  14. 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/.
  15. 14 Mar, 2014 1 commit
  16. 23 Feb, 2014 1 commit
  17. 01 Feb, 2014 1 commit
    • Damien George's avatar
      stm: Add support for ctrl-C to interrupt running Python. · 01156d51
      Damien George authored
      Using PendSV interrupt at lowest priority, code can now raise an
      exception during an interrupt by calling pendsv_nlr_jump.  The exception
      will be raised when all interrupts are finished.  This is used to trap
      ctrl-C from the USB VCP to break out of running Python code.