STM32: USB: define descriptors only for the allocated endpoints
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 30 Sep 2010 13:17:03 +0000 (13:17 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 30 Sep 2010 13:17:03 +0000 (13:17 +0000)
commit45b784ed8ed1b37ccd1fa56258fb9d082de55216
treeff9d09d5fb93cbc1e3a8514c80149d61bb670d90
parenta44d704c7107582a746b905397c941777e32043d
STM32: USB: define descriptors only for the allocated endpoints

There is no need to define descriptors for all the supported hardware
endpoints, but just for the ones that are actually used.

Also check the validity of the endpoint addresses considering the
allocated endpoints.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4383 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/cpu/cortex-m3/drv/usb_stm32.c
bertos/cpu/cortex-m3/drv/usb_stm32.h