summaryrefslogtreecommitdiff
path: root/ao-tools/libaltos/libaltos.c
Commit message (Collapse)AuthorAge
* libaltos: use pipe to wake up getchar on close. use mutexesKeith Packard2010-08-23
|
* libaltos: integrate Windows support.Keith Packard2010-08-17
| | | | | | | | | | | This adds Windows support for discovery and I/O. The API to the library is mostly unchanged, except that it now exports product and vendor USB IDs as Win7 doesn't expose the product name anywhere that we've been able to find, so we'll be updating the firmware to use unique idProduct values for each product. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Close serial, join reader thread, free altos_fileKeith Packard2010-07-29
| | | | | | | | | Separating out the close and free actions ensures that the reader thread will not access freed memory or dereference a null pointer while shutting down the connection to the serial device. Otherwise, a race condition exists between the serial close and the thread join. Signed-off-by: Keith Packard <keithp@keithp.com>
* Darwin doesn't have strndup.Keith Packard2010-07-26
| | | | | | This provides a private version of this GNU extension. Signed-off-by: Keith Packard <keithp@keithp.com>
* Re-enable Linux support for altosui.Keith Packard2010-07-26
| | | | | | | This steals code from cc-usbdev for scanning the USB tree and uses the same tty code as on Darwin Signed-off-by: Keith Packard <keithp@keithp.com>
* Add libaltos which talks to USB connected altos devicesKeith Packard2010-07-26