All USB devices support endpoint 0 (EP0) when powered up. This endpoint
is the target of the default pipe. After the attachment of a device has
been detected, the USB software uses endpoint 0 to initialise the
device, perform generic (i.e., non device-specific) configuration, and
obtain information about the other endpoints provided by the device.
The descriptor of EP0 is hard-coded into the low-level device driver of
each target platform, and cannot be re-defined by the user to implement
a custom USB device. So, expose the maximum packet size of this special
endpoint as a configurable parameter into the wizard.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4699
38d2e660-2303-0410-9eaa-
f027e97ec537
*/
#define CONFIG_USB_EP_MAX 0
+/**
+ * Maximum packet size of the control endpoint 0 [bytes].
+ * $WIZ$ type = "int"
+ * $WIZ$ min = 8
+ */
+#define CONFIG_EP0_MAX_SIZE 8
+
#endif /* CFG_USB_H */
#define USB_DP_PIN (1 << 12)
#define USB_DISC_PIN (1 << 11)
-#define USB_EP0_MAX_SIZE 8
+#define USB_EP0_MAX_SIZE CONFIG_EP0_MAX_SIZE
#define USB_XFER_MAX_SIZE 64
#define EP_MAX_SLOTS USB_EP_MAX
*/
#define CONFIG_USB_EP_MAX 0
+/**
+ * Maximum packet size of the control endpoint 0 [bytes].
+ * $WIZ$ type = "int"
+ * $WIZ$ min = 8
+ */
+#define CONFIG_EP0_MAX_SIZE 8
+
#endif /* CFG_USB_H */
*/
#define CONFIG_USB_EP_MAX 0
+/**
+ * Maximum packet size of the control endpoint 0 [bytes].
+ * $WIZ$ type = "int"
+ * $WIZ$ min = 8
+ */
+#define CONFIG_EP0_MAX_SIZE 8
+
#endif /* CFG_USB_H */
*/
#define CONFIG_USB_EP_MAX 0
+/**
+ * Maximum packet size of the control endpoint 0 [bytes].
+ * $WIZ$ type = "int"
+ * $WIZ$ min = 8
+ */
+#define CONFIG_EP0_MAX_SIZE 8
+
#endif /* CFG_USB_H */