summaryrefslogtreecommitdiff
path: root/libaltos/libaltos.c
Commit message (Collapse)AuthorAge
* libaltos: Add Windows BT support. Split into separate source files.Keith Packard2016-03-20
| | | | | | Add Bluetooth support to Windows. Split libaltos into separate files. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Add unistd.h to get defines for various syscallsKeith Packard2016-03-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Use more SetupDi API to get Windows 7 listing devicesKeith Packard2015-02-06
| | | | | | | | My Windows 7 box doesn't include 'SymbolicName' in the registry, but SetupDiGetDeviceInstanceId *does* return something that includes vid/pid/serial, so use that in preference. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: typo in libaltos broke the buildKeith Packard2014-07-10
| | | | | | When converting this to use dlopen, I mis-typed the name hci_read_remote_name Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Bind to libbluetooth at runtime on demandKeith Packard2014-07-10
| | | | | | This lets us reliably start and run without libbluetooth present. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui/altosuilib/libaltos: Remove trailing whitespaceKeith Packard2014-04-11
| | | | | | Just cleaning up the source code. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: remove usb id filtering from darwin codeKeith Packard2013-12-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: use PurgeComm in Windows altos_close to abort in-progress opsKeith Packard2013-05-17
| | | | | | | | Instead of manually signalling the related events, use PurgeComm which can then abort the operations itself. Also make sure all of the relevant handles are set to INVALID before closing them to avoid race conditions. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Delay after opening bluetooth device on linuxKeith Packard2013-04-20
| | | | | | Writes immediately after the open disappear sometimes. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Try Bluetooth open 5 times on EBUSYKeith Packard2013-04-20
| | | | | | | After closing Bluetooth, it can take a second before the device is up for another connection. Hang around retrying a few times. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Retry Windows serial port open five timesKeith Packard2013-04-12
| | | | | | Maybe this helps? Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Open FTDI serial devices twice on Windows.Keith Packard2013-03-02
| | | | | | | | | | Looks like the Windows FTDI driver has 'issues' and opening it only once doesn't work correctly. Just close and re-open the device and it seems to be perfectly happy. Who knows? Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Need to check for tty/ttyACMx before ttyACMxKeith Packard2013-01-10
| | | | | | | Otherwise, we'll find 'tty' when looking for 'ttyACMx' and no good will come from that Signed-off-by: Keith Packard <keithp@keithp.com>
* Add separate code path for listing FTDI devicesKeith Packard2013-01-05
| | | | | | | This lets the library do different things for FTDI devices, as is required on Windows (for instance) Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Remove a couple of spurious debug printfsKeith Packard2013-01-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* micropeak is code complete now.Keith Packard2013-01-01
| | | | | | Added save and download functionality. Removed 'new' from file menu. Signed-off-by: Keith Packard <keithp@keithp.com>
* Move libaltos to top levelKeith Packard2012-12-25
This will let it be shared by the new MicroPeak gui Signed-off-by: Keith Packard <keithp@keithp.com>