diff options
author | Keith Packard <keithp@keithp.com> | 2013-05-16 18:58:24 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-17 03:50:07 -0700 |
commit | 185e6d15bcda229949a984910d7394203d301db9 (patch) | |
tree | de2af29f4f16e013eb08a6e51d18c3120152ad9c /src | |
parent | 6c35e21a86ab32bc91eb10a60c071b702fc0f963 (diff) |
altos: Allow target-specific USB endpoint specifications
The LPC has only a small number of endpoints, and those are not
configurable. Let the LPC USB driver pick the IN and OUT endpoints by itself.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ao_usb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ao_usb.h b/src/core/ao_usb.h index 6bc77608..35e64e65 100644 --- a/src/core/ao_usb.h +++ b/src/core/ao_usb.h @@ -102,8 +102,11 @@ extern __code __at (0x00aa) uint8_t ao_usb_descriptors []; #define AO_USB_INT_EP 1 #define AO_USB_INT_SIZE 8 +#ifndef AO_USB_OUT_EP #define AO_USB_OUT_EP 4 #define AO_USB_IN_EP 5 +#endif + /* * USB bulk packets can only come in 8, 16, 32 and 64 * byte sizes, so we'll use 64 for everything |