1. 12 Apr, 2014 1 commit
  2. 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
  3. 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
  4. 22 Mar, 2014 2 commits
  5. 21 Mar, 2014 1 commit
  6. 15 Mar, 2014 3 commits
  7. 14 Mar, 2014 1 commit
  8. 24 Feb, 2014 1 commit
  9. 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
  10. 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
  11. 26 Jan, 2014 1 commit
  12. 23 Jan, 2014 1 commit
  13. 22 Jan, 2014 1 commit
  14. 13 Jan, 2014 1 commit
  15. 06 Jan, 2014 2 commits
  16. 25 Oct, 2013 1 commit
  17. 23 Oct, 2013 1 commit
  18. 22 Oct, 2013 2 commits
  19. 21 Oct, 2013 3 commits
  20. 19 Oct, 2013 2 commits
  21. 17 Oct, 2013 1 commit
  22. 13 Oct, 2013 1 commit
  23. 12 Oct, 2013 1 commit