projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
usb: make the maximum number of interfaces and endpoints as configuration parameters
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
usb_stm32.c
diff --git
a/bertos/cpu/cortex-m3/drv/usb_stm32.c
b/bertos/cpu/cortex-m3/drv/usb_stm32.c
index 879b2d6f0a828bd5724fe8dd6839e9c6fbc2cf35..dd1e09dbaa56fba1f9a58846010ba295b425c299 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/usb_stm32.c
+++ b/
bertos/cpu/cortex-m3/drv/usb_stm32.c
@@
-117,7
+117,7
@@
static const UsbEndpointDesc USB_CtrlEpDescr1 =
static UsbCtrlRequest setup_packet;
/* USB device controller: max supported interfaces */
static UsbCtrlRequest setup_packet;
/* USB device controller: max supported interfaces */
-#define USB_MAX_INTERFACE
1
+#define USB_MAX_INTERFACE
CONFIG_USB_INTERFACE_MAX
/* USB device controller features */
#define STM32_UDC_FEATURE_SELFPOWERED BV(0)
/* USB device controller features */
#define STM32_UDC_FEATURE_SELFPOWERED BV(0)