1. 26 Aug, 2014 1 commit
  2. 04 Aug, 2014 1 commit
    • Damien George's avatar
      stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. · ccacdf44
      Damien George authored
      Make a clearer distinction between init functions that must be done
      before any scripts can run (xxx_init0) and those that can be safely
      deferred (xxx_init).
      Fix bug initialising USB VCP exception.  Addresses issue #788.
      Re-order some init function to improve reliability of
  3. 02 Aug, 2014 2 commits
  4. 31 Jul, 2014 1 commit
    • Damien George's avatar
      stmhal: Add USB_VCP class/object, for direct USB VCP control. · 3c4db9f9
      Damien George authored
      Before, pyb.stdin/pyb.stdout allowed some kind of access to the USB VCP
      device, but it was basic access.
      This patch adds a proper USB_VCP class and object with much more control
      over the USB VCP device.  Create an object with pyb.USB_VCP(), then use
      this object as if it were a UART object.  It has send, recv, read,
      write, and other methods.  send and recv allow a timeout to be specified.
      Addresses issue 774.
  5. 20 Jul, 2014 1 commit
  6. 14 Jun, 2014 1 commit
  7. 21 May, 2014 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. 12 Apr, 2014 1 commit
  10. 30 Mar, 2014 2 commits
    • Damien George's avatar
      stmhal: Unify naming of HW config; make SD detect configurable. · 09d20778
      Damien George authored
      All board config macros now begin with MICROPY_HW_.
      Renamed PYBv10 to PYBV10, since macros should be all uppercase.
      Made SDCARD_DETECT configurable in mpconfigport.h, so that the SD
      detect pin can be easily configured.
    • Damien George's avatar
      stmhal: Implement selector for USB device mode; improve boot up. · 038df431
      Damien George authored
      Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID.
      Choice is made by an option in boot.py, with default being CDC+MSC.
      HID+MSC is not currently supported, but should be easy to implement.
      Boot up now has ability to change the reset mode: hold down USR switch
      while booting and LEDs will count from 1 to 7 to indicate the boot mode.
      Release USR when correct mode is selected.  Current modes are 1 (normal
      boot), 2 (safe mode), 3 (reset FS mode).
  11. 29 Mar, 2014 1 commit
    • Damien George's avatar
      stmhal: Add CDC+HID USB device. · 64563e39
      Damien George authored
      The HID device must appear before the CDC in order for both to work at
      the same time.
      Whilst the code is working, it's not currently used.
  12. 22 Mar, 2014 2 commits
  13. 21 Mar, 2014 1 commit
  14. 15 Mar, 2014 3 commits
  15. 14 Mar, 2014 1 commit
  16. 24 Feb, 2014 1 commit
  17. 15 Feb, 2014 1 commit
    • Damien George's avatar
      Implement proper exception type hierarchy. · c5966128
      Damien George authored
      Each built-in exception is now a type, with base type BaseException.
      C exceptions are created by passing a pointer to the exception type to
      make an instance of.  When raising an exception from the VM, an
      instance is created automatically if an exception type is raised (as
      opposed to an exception instance).
      Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper.
      Handling of parse error changed to match new exceptions.
      mp_const_type renamed to mp_type_type for consistency.
  18. 01 Feb, 2014 2 commits
    • 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.
    • mux's avatar
      Detect VCP line state. · b2269b61
      mux authored
      * Detect VCP line state, based on SET_CONTROL_LINE_STATE request
  19. 26 Jan, 2014 1 commit
  20. 23 Jan, 2014 1 commit
  21. 22 Jan, 2014 1 commit
  22. 13 Jan, 2014 1 commit
  23. 06 Jan, 2014 2 commits
  24. 25 Oct, 2013 1 commit
  25. 23 Oct, 2013 1 commit
  26. 22 Oct, 2013 2 commits
  27. 21 Oct, 2013 3 commits
  28. 19 Oct, 2013 2 commits
  29. 17 Oct, 2013 1 commit