USB: make all the read-only descriptors as const
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Sep 2010 10:18:43 +0000 (10:18 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Sep 2010 10:18:43 +0000 (10:18 +0000)
commit6ddebfbb0e36bb5e68c9364cafca25340e0be191
tree653d8378a22c10cbd8850ace6b22017d37482dc2
parent4c7513a948bbc06cc5f208b45724b933a890e241
USB: make all the read-only descriptors as const

NOTE: at the moment only usb_device_descriptor_t can't be made const,
because the attribute bMaxPacketSize0 is automatically filled by the
low-level driver at runtime.

TODO: refactor this part to evaluate bMaxPacketSize0 at compile time and
make usb_device_descriptor_t read-only as well.

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