summaryrefslogtreecommitdiff
path: root/src/chaoskey-v0.1
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-03-02 13:54:58 -0800
committerKeith Packard <keithp@keithp.com>2016-03-02 13:59:21 -0800
commit05fcb717bfc44aba3c1cfd43281e323505a46402 (patch)
treea27b543f7a6f65b87fec29e77ca4151e0c1ee59d /src/chaoskey-v0.1
parent05354b8fee6a9af05d66bb7f4761f597da038fdd (diff)
altos/chaoskey: Add another USB endpoint to read raw data
This replaces having the single output switch based on a pin value and allows us to box the device and still fetch raw data. For now, this will use a special libusb2 program, ao-chaosread, to pull bits as I haven't figure out how to make linux provide two /dev entries for one USB device. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/chaoskey-v0.1')
-rw-r--r--src/chaoskey-v0.1/ao_pins.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chaoskey-v0.1/ao_pins.h b/src/chaoskey-v0.1/ao_pins.h
index 6ec582a9..73f76307 100644
--- a/src/chaoskey-v0.1/ao_pins.h
+++ b/src/chaoskey-v0.1/ao_pins.h
@@ -50,7 +50,9 @@
#define AO_USB_INTERFACE_CLASS_DATA 0xff
#define AO_USB_HAS_OUT 0
#define AO_USB_HAS_IN 1
+#define AO_USB_HAS_IN2 1
#define AO_USB_HAS_INT 0
+#define USE_USB_STDIO 0
#define AO_USB_SELF_POWER 0
#define AO_USB_DEVICE_ID_SERIAL 1