1. 02 Aug, 2014 1 commit
  2. 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.
      3c4db9f9
  3. 20 Jul, 2014 1 commit
  4. 14 Jun, 2014 1 commit
  5. 21 May, 2014 1 commit
  6. 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/.
      04b9147e
  7. 12 Apr, 2014 1 commit
  8. 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.
      09d20778
    • 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).
      038df431
  9. 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.
      64563e39
  10. 22 Mar, 2014 2 commits
  11. 21 Mar, 2014 1 commit
  12. 15 Mar, 2014 3 commits
  13. 14 Mar, 2014 1 commit
  14. 24 Feb, 2014 1 commit
  15. 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.
      c5966128
  16. 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.
      01156d51
    • mux's avatar
      Detect VCP line state. · b2269b61
      mux authored
      * Detect VCP line state, based on SET_CONTROL_LINE_STATE request
      b2269b61
  17. 26 Jan, 2014 1 commit
  18. 23 Jan, 2014 1 commit
  19. 22 Jan, 2014 1 commit
  20. 13 Jan, 2014 1 commit
  21. 06 Jan, 2014 2 commits
  22. 25 Oct, 2013 1 commit
  23. 23 Oct, 2013 1 commit
  24. 22 Oct, 2013 2 commits
  25. 21 Oct, 2013 3 commits
  26. 19 Oct, 2013 2 commits
  27. 17 Oct, 2013 1 commit
  28. 13 Oct, 2013 1 commit
  29. 12 Oct, 2013 1 commit