From: arighi Date: Wed, 9 Feb 2011 09:06:17 +0000 (+0000) Subject: USB: max number of endpoints can be equal to the number of interfaces X-Git-Tag: 2.7.0~277 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6015773ce66e2af9a9f9cc5912d136f31d4fc003;p=bertos.git 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 --- 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 */