diff options
author | Keith Packard <keithp@keithp.com> | 2016-03-02 13:54:58 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-03-02 13:59:21 -0800 |
commit | 05fcb717bfc44aba3c1cfd43281e323505a46402 (patch) | |
tree | a27b543f7a6f65b87fec29e77ca4151e0c1ee59d /src/kernel/ao_usb.h | |
parent | 05354b8fee6a9af05d66bb7f4761f597da038fdd (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/kernel/ao_usb.h')
-rw-r--r-- | src/kernel/ao_usb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/ao_usb.h b/src/kernel/ao_usb.h index 773b5cb7..8f3e7813 100644 --- a/src/kernel/ao_usb.h +++ b/src/kernel/ao_usb.h @@ -105,6 +105,7 @@ extern __code __at (0x00aa) uint8_t ao_usb_descriptors []; #ifndef AO_USB_OUT_EP #define AO_USB_OUT_EP 4 #define AO_USB_IN_EP 5 +#define AO_USB_IN2_EP 6 #endif #ifndef AO_USB_HAS_OUT @@ -119,6 +120,10 @@ extern __code __at (0x00aa) uint8_t ao_usb_descriptors []; #define AO_USB_HAS_INT 1 #endif +#ifndef AO_USB_HAS_IN2 +#define AO_USB_HAS_IN2 0 +#endif + /* * USB bulk packets can only come in 8, 16, 32 and 64 * byte sizes, so we'll use 64 for everything |