diff options
author | Keith Packard <keithp@keithp.com> | 2016-02-07 00:10:57 +1100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-02-07 15:42:28 -0800 |
commit | 2ad756bd1b63a2c8450edd7001628b92279fd1b8 (patch) | |
tree | 15da3d1dfd077d6e9157d366e18150a459a303fe /src/kernel/ao_usb.h | |
parent | a5607aad694c01c01c48229172b289f005a1b6bb (diff) |
altos: Allow USB drivers to skip CDC-ACM -specific descriptors
For devices not providing the standard CDC-ACM interface, let them
skip the various descriptors and interfaces to provide a more limited
set of capabilities.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_usb.h')
-rw-r--r-- | src/kernel/ao_usb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/kernel/ao_usb.h b/src/kernel/ao_usb.h index 1ce4f82f..773b5cb7 100644 --- a/src/kernel/ao_usb.h +++ b/src/kernel/ao_usb.h @@ -107,6 +107,18 @@ extern __code __at (0x00aa) uint8_t ao_usb_descriptors []; #define AO_USB_IN_EP 5 #endif +#ifndef AO_USB_HAS_OUT +#define AO_USB_HAS_OUT 1 +#endif + +#ifndef AO_USB_HAS_IN +#define AO_USB_HAS_IN 1 +#endif + +#ifndef AO_USB_HAS_INT +#define AO_USB_HAS_INT 1 +#endif + /* * USB bulk packets can only come in 8, 16, 32 and 64 * byte sizes, so we'll use 64 for everything |