summaryrefslogtreecommitdiff
path: root/tinyusb/common/assertion.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-28 15:03:18 +0700
committerhathach <[email protected]>2013-02-28 15:06:31 +0700
commitd6548d00636577a7dff4d00470d5cc9c15322ab6 (patch)
treea9f4acc166390250cbddc3224d307b71050b98a3 /tinyusb/common/assertion.h
parentf56f6b67499b3ca2a0b2c18cfba7399a4eea6276 (diff)
strengthen include policy. Only limited headers are allowed to included from a header file. Missing needed to be included in *.c
Diffstat (limited to 'tinyusb/common/assertion.h')
-rw-r--r--tinyusb/common/assertion.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tinyusb/common/assertion.h b/tinyusb/common/assertion.h
index 67aeb90b9..180d046aa 100644
--- a/tinyusb/common/assertion.h
+++ b/tinyusb/common/assertion.h
@@ -62,12 +62,13 @@ extern "C"
// Compile-time Assert
//--------------------------------------------------------------------+
#ifdef __COUNTER__
-#define STATIC_ASSSERT(const_expr) enum { XSTRING_CONCAT(static_assert_, __COUNTER__) = 1/(!!(const_expr)) }
+ #define STATIC_ASSSERT(const_expr) enum { XSTRING_CONCAT(static_assert_, __COUNTER__) = 1/(!!(const_expr)) }
#else
-#define STATIC_ASSSERT(const_expr) enum { XSTRING_CONCAT(static_assert_, __LINE__) = 1/(!!(const_expr)) }
+ #define STATIC_ASSSERT(const_expr) enum { XSTRING_CONCAT(static_assert_, __LINE__) = 1/(!!(const_expr)) }
#endif
+
//#if ( defined CFG_PRINTF_UART || defined CFG_PRINTF_USBCDC || defined CFG_PRINTF_DEBUG )
-#if TUSB_CFG_DEBUG
+#if TUSB_CFG_DEBUG == 3
#define _PRINTF(...) printf(__VA_ARGS__)
#else
#define _PRINTF(...)