projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c35e21
)
altos: Allow target-specific USB endpoint specifications
author
Keith Packard
<keithp@keithp.com>
Fri, 17 May 2013 01:58:24 +0000
(18:58 -0700)
committer
Keith Packard
<keithp@keithp.com>
Fri, 17 May 2013 10:50:07 +0000
(
03:50
-0700)
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>
src/core/ao_usb.h
patch
|
blob
|
history
diff --git
a/src/core/ao_usb.h
b/src/core/ao_usb.h
index 6bc77608ef331a8782b6be051c948deab9cdcc52..35e64e655d92297c72fd36b070c59fb351621621 100644
(file)
--- 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