From 6015773ce66e2af9a9f9cc5912d136f31d4fc003 Mon Sep 17 00:00:00 2001 From: arighi Date: Wed, 9 Feb 2011 09:06:17 +0000 Subject: [PATCH] USB: max number of endpoints can be equal to the number of interfaces When only the endpoint 0 is used for a USB device, the number of endpoints can be equal to the number of interfaces. This also fixes the following bug in the nightly test build: bertos/drv/usb_endpoint.h:77: error: size of array 'STATIC_ASSERTION_FAILED__' is negative git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4689 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/usb_endpoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/drv/usb_endpoint.h b/bertos/drv/usb_endpoint.h index 1376f327..63c49bd5 100644 --- a/bertos/drv/usb_endpoint.h +++ b/bertos/drv/usb_endpoint.h @@ -74,6 +74,6 @@ enum { * special endpoint 0. In conclusion, the number of endpoints must be always * greater than the number of interfaces. */ -STATIC_ASSERT(USB_EP_MAX > CONFIG_USB_INTERFACE_MAX); +STATIC_ASSERT(USB_EP_MAX >= CONFIG_USB_INTERFACE_MAX); #endif /* USB_ENDPOINT_H */ -- 2.25.1