1. 15 Dec, 2016 1 commit
  2. 29 Jan, 2016 1 commit
    • Damien George's avatar
      stmhal: Make USB CDC driver use SOF instead of TIM3 for outgoing data. · d3631339
      Damien George authored
      Previous to this patch the USB CDC driver used TIM3 to trigger the
      sending of outgoing data over USB serial.  This patch changes the
      behaviour so that the USB SOF interrupt is used to trigger the processing
      of the sending.  This reduces latency and increases bandwidth of outgoing
      data.
      
      Thanks to Martin Fischer, aka @hoihu, for the idea and initial prototype.
      
      See PR #1713.
      d3631339
  3. 20 Mar, 2015 1 commit
  4. 31 Oct, 2014 1 commit
    • Damien George's avatar
      stmhal: Add ioctl to USB_VCP object, so it works with select. · 9a41b32b
      Damien George authored
      This patch also enables non-blocking streams on stmhal port.
      
      One can now make a USB-UART pass-through function:
      
      def pass_through(usb, uart):
          while True:
              select.select([usb, uart], [], [])
              if usb.any():
                  uart.write(usb.read(256))
              if uart.any():
                  usb.write(uart.read(256))
      
      pass_through(pyb.USB_VCP(), pyb.UART(1, 9600))
      9a41b32b
  5. 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
  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. 02 Apr, 2014 1 commit
  8. 22 Mar, 2014 3 commits
  9. 15 Mar, 2014 3 commits
  10. 14 Mar, 2014 1 commit