From: arighi Date: Wed, 9 Feb 2011 09:06:21 +0000 (+0000) Subject: USB: define the new options CONFIG_USB_EP_MAX and CONFIG_USB_INTERFACE_MAX in the... X-Git-Tag: 2.7.0~276 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cc09f32ae0c39abdf4ffd0d387907279a0704ab7;p=bertos.git USB: define the new options CONFIG_USB_EP_MAX and CONFIG_USB_INTERFACE_MAX in the example projects git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4690 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/stm32-p103/examples/usbkeyboard/cfg/cfg_usb.h b/boards/stm32-p103/examples/usbkeyboard/cfg/cfg_usb.h index e5a282b1..d1c724c9 100644 --- a/boards/stm32-p103/examples/usbkeyboard/cfg/cfg_usb.h +++ b/boards/stm32-p103/examples/usbkeyboard/cfg/cfg_usb.h @@ -61,4 +61,18 @@ */ #define CONFIG_USB_BUFSIZE 64 +/** + * Maximum number of USB device interfaces (default = 1). + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_USB_INTERFACE_MAX 1 + +/** + * Maximum number of allocated endpoints (0 = auto). + * $WIZ$ type = "int" + * $WIZ$ min = 0 + */ +#define CONFIG_USB_EP_MAX 0 + #endif /* CFG_USB_H */ diff --git a/boards/stm32-p103/examples/usbmouse/cfg/cfg_usb.h b/boards/stm32-p103/examples/usbmouse/cfg/cfg_usb.h index e5a282b1..d1c724c9 100644 --- a/boards/stm32-p103/examples/usbmouse/cfg/cfg_usb.h +++ b/boards/stm32-p103/examples/usbmouse/cfg/cfg_usb.h @@ -61,4 +61,18 @@ */ #define CONFIG_USB_BUFSIZE 64 +/** + * Maximum number of USB device interfaces (default = 1). + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_USB_INTERFACE_MAX 1 + +/** + * Maximum number of allocated endpoints (0 = auto). + * $WIZ$ type = "int" + * $WIZ$ min = 0 + */ +#define CONFIG_USB_EP_MAX 0 + #endif /* CFG_USB_H */ diff --git a/boards/stm32-p103/examples/usbserial/cfg/cfg_usb.h b/boards/stm32-p103/examples/usbserial/cfg/cfg_usb.h index e5a282b1..d1c724c9 100644 --- a/boards/stm32-p103/examples/usbserial/cfg/cfg_usb.h +++ b/boards/stm32-p103/examples/usbserial/cfg/cfg_usb.h @@ -61,4 +61,18 @@ */ #define CONFIG_USB_BUFSIZE 64 +/** + * Maximum number of USB device interfaces (default = 1). + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_USB_INTERFACE_MAX 1 + +/** + * Maximum number of allocated endpoints (0 = auto). + * $WIZ$ type = "int" + * $WIZ$ min = 0 + */ +#define CONFIG_USB_EP_MAX 0 + #endif /* CFG_USB_H */