summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-09-24 15:05:11 +0700
committerhathach <[email protected]>2013-09-24 15:21:16 +0700
commit63b776f7cf3bb7fe64c2f3b3e383a90b2c50683f (patch)
tree1df33c2d8b80310eb7da613e56830181b0cf2fca /tinyusb/common
parentc4fef827b1f6cb33b9cc336687bd4ff791f8eec9 (diff)
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
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/compiler/compiler.h14
1 files changed, 7 insertions, 7 deletions
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