From: arighi Date: Thu, 30 Sep 2010 14:15:18 +0000 (+0000) Subject: STM32: USB: remove duplicated macros X-Git-Tag: 2.6.0~13 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cc18d7edf8243c0acfbbbd3ecfc9148d0a4c0719;p=bertos.git STM32: USB: remove duplicated macros git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4388 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/drv/usb_stm32.c b/bertos/cpu/cortex-m3/drv/usb_stm32.c index 924f86d2..a1a50b3b 100644 --- a/bertos/cpu/cortex-m3/drv/usb_stm32.c +++ b/bertos/cpu/cortex-m3/drv/usb_stm32.c @@ -58,13 +58,7 @@ #include "usb_stm32.h" -/* XXX: consider to move this to cfg/compiler.h */ -#define ALIGNED(x) __attribute__ ((__aligned__(x))) - /* XXX: consider to move this to cfg/macros.h */ -#define ALIGN_UP(value, align) (((value) & ((align) - 1)) ? \ - (((value) + ((align) - 1)) & ~((align) - 1)) : \ - (value)) /* XXX: redefine this to make it usable within C expression */ #define _MIN(a,b) (((a) < (b)) ? (a) : (b))