USB: compile-time endpoints allocation
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 30 Sep 2010 10:47:06 +0000 (10:47 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 30 Sep 2010 10:47:06 +0000 (10:47 +0000)
commit46a1dfc5b039beb4495945e534c746bcce91edae
tree8e7ee70543589b1c5d808172e2bb4367a912fd89
parent6275379e68eb45eb5b6a1b28d83edf45b39f8abc
USB: compile-time endpoints allocation

If we want to use many USB device drivers at the same time, we need to
properly allocate the endpoints among different drivers to avoid
conflicts (different drivers using the same endpoint).

Perform this allocation at compile-time according to the drivers enabled
in the project's configuration.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4377 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/cfg/cfg_usbkbd.h
bertos/cfg/cfg_usbmouse.h
bertos/cfg/cfg_usbser.h
bertos/cpu/cortex-m3/drv/usb_stm32.c
bertos/drv/usb_endpoint.h [new file with mode: 0644]
bertos/drv/usbkbd.c
bertos/drv/usbmouse.c
bertos/drv/usbser.c