From 52cbd2f1a1557002f46355e0095400a09c267ff9 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 19 Jul 2010 00:24:31 -0400 Subject: working serialUSB with timeout as a temporary workaround for the fact that SerialUSB is often blocking, this crude implementation makes the low-level C usbSendBytes function non-blocking (with a return code of bytes sent) and implements a 2ms timeout in the wirish write() function. also adds begin(), end(), getDTR(), getRTS(), pending(). device is still initialized the old fashioned way during init() so that, eg, autoreset will work. includes a simple multi-test program. --- notes/usb.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'notes') diff --git a/notes/usb.txt b/notes/usb.txt index ade35cf..5e00354 100644 --- a/notes/usb.txt +++ b/notes/usb.txt @@ -1,3 +1,5 @@ +[NOTE: this is a long term proposal. The current implementation just does a +2ms TIMEOUT] SerialUSB Implementation ------------------------------------------------------------------------------- -- cgit v1.2.3