From 63b776f7cf3bb7fe64c2f3b3e383a90b2c50683f Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 24 Sep 2013 15:05:11 +0700 Subject: add some tests support for msc host refractor msch buffer for getting inital scsi like inquiry, read capacity adding support for resovling stall on control pipe --- tinyusb/common/compiler/compiler.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tinyusb/common') diff --git a/tinyusb/common/compiler/compiler.h b/tinyusb/common/compiler/compiler.h index e1f06b307..683237b54 100644 --- a/tinyusb/common/compiler/compiler.h +++ b/tinyusb/common/compiler/compiler.h @@ -52,12 +52,7 @@ #ifndef _TUSB_COMPILER_H_ #define _TUSB_COMPILER_H_ -#ifdef _TEST_ - #define ATTR_ALWAYS_INLINE - #define STATIC_ - #define STATIC_VAR - #define INLINE_ -#else +#ifndef _TEST_ #define STATIC_ static #define INLINE_ inline @@ -67,9 +62,14 @@ #else #define STATIC_VAR static #endif + #define ATTR_TEST_WEAK +#else + #define ATTR_ALWAYS_INLINE + #define STATIC_ + #define STATIC_VAR + #define INLINE_ #endif -// TODO refractor ATTR_PACKED(x) #if defined(__GNUC__) #include "compiler_gcc.h" #elif defined __ICCARM__ // IAR compiler -- cgit v1.3.1