From 8af7d7531523e1156f699c1252c30e45bca08057 Mon Sep 17 00:00:00 2001 From: arighi Date: Mon, 20 Sep 2010 15:27:35 +0000 Subject: [PATCH] STM32: USB: remove unnecessary ASSERT() 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/bertos/cpu/cortex-m3/drv/usb_stm32.c b/bertos/cpu/cortex-m3/drv/usb_stm32.c index ef1abda2..be9ba640 100644 --- a/bertos/cpu/cortex-m3/drv/usb_stm32.c +++ b/bertos/cpu/cortex-m3/drv/usb_stm32.c @@ -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) \ -- 2.25.1