tinyusb
compiler.h
Go to the documentation of this file.
1 /**************************************************************************/
37 /**************************************************************************/
38 
46 #ifndef _TUSB_COMPILER_H_
47 #define _TUSB_COMPILER_H_
48 
49 #ifndef _TEST_
50  #define STATIC_ static
51  #define INLINE_ inline
52  #define ATTR_TEST_WEAK
53 
54  #if TUSB_CFG_DEBUG == 3
55  #define ATTR_ALWAYS_INLINE // no inline for debug = 3
56  #define STATIC_VAR
57  #else
58  #define STATIC_VAR static
59  #endif
60 
61 #else
62  #define ATTR_ALWAYS_INLINE
63  #define STATIC_
64  #define STATIC_VAR
65  #define INLINE_
66 
67 #endif
68 
69 #if defined(__GNUC__)
70  #include "compiler_gcc.h"
71 #elif defined __ICCARM__ // IAR compiler
72  #include "compiler_iar.h"
73 #endif
74 
75 #endif /* _TUSB_COMPILER_H_ */
76 
GCC Header.
IAR Compiler.