STM32: USB: remove unnecessary ASSERT()
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Sep 2010 15:27:35 +0000 (15:27 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Sep 2010 15:27:35 +0000 (15:27 +0000)
USB internal read/write buffer does not need to be 4-bytes aligned.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4242 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/drv/usb_stm32.c

index ef1abda2aec54ad33d3fb1d220b7fefe41d021be..be9ba64014f72033156e788657913d6a61fd000e 100644 (file)
@@ -611,9 +611,6 @@ static void __usb_ep_io(int EP)
        cpu_flags_t flags;                                              \
        stm32_usb_io_status_t ret;                                      \
                                                                        \
-       /* NOTE: buffer must be 4-bytes aligned */                      \
-       ASSERT(!((size_t)__buf & 0x03));                                \
-                                                                       \
        /* Fill EP descriptor */                                        \
        IRQ_SAVE_DISABLE(flags);                                        \
        if (__size < 0)                                                 \