summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-04-10 14:31:11 +0700
committerhathach <[email protected]>2018-04-10 14:31:11 +0700
commit3c2467196070eeedd4171e183db04fb815677246 (patch)
tree742e3f277776b025ee0f90ab63ef2f70a3b3d03a /tinyusb/common
parent3473c71a6a7cb22cb45f368dba4edda49ed8f7af (diff)
mass rename TUSB_CFG to CFG_TUSB
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/tusb_compiler.h2
-rw-r--r--tinyusb/common/tusb_error.h4
-rw-r--r--tinyusb/common/tusb_fifo.h2
-rw-r--r--tinyusb/common/tusb_verify.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/tinyusb/common/tusb_compiler.h b/tinyusb/common/tusb_compiler.h
index 8c0e75029..369c3121a 100644
--- a/tinyusb/common/tusb_compiler.h
+++ b/tinyusb/common/tusb_compiler.h
@@ -65,7 +65,7 @@
#endif
// allow debugger to watch any module-wide variables anywhere
-#if TUSB_CFG_DEBUG
+#if CFG_TUSB_DEBUG
#define STATIC_VAR
#else
#define STATIC_VAR static
diff --git a/tinyusb/common/tusb_error.h b/tinyusb/common/tusb_error.h
index 96684ef5f..339f6ced1 100644
--- a/tinyusb/common/tusb_error.h
+++ b/tinyusb/common/tusb_error.h
@@ -100,8 +100,8 @@ typedef enum
TUSB_ERROR_COUNT
}tusb_error_t;
-#if TUSB_CFG_DEBUG
-/// Enum to String for debugging purposes. Only available if \ref TUSB_CFG_DEBUG > 0
+#if CFG_TUSB_DEBUG
+/// Enum to String for debugging purposes. Only available if \ref CFG_TUSB_DEBUG > 0
extern char const* const tusb_strerr[TUSB_ERROR_COUNT];
#endif
diff --git a/tinyusb/common/tusb_fifo.h b/tinyusb/common/tusb_fifo.h
index 8054f315c..217781c9c 100644
--- a/tinyusb/common/tusb_fifo.h
+++ b/tinyusb/common/tusb_fifo.h
@@ -57,7 +57,7 @@
#include "osal/osal.h"
-#if TUSB_CFG_OS == TUSB_OS_NONE
+#if CFG_TUSB_OS == TUSB_OS_NONE
// Since all fifo read/write is done in thread mode, there should be
// no conflict except for osal queue which will be address seperatedly.
// Therefore there may be no need for mutex with internal use of fifo
diff --git a/tinyusb/common/tusb_verify.h b/tinyusb/common/tusb_verify.h
index 516a30a75..4a9ac2d36 100644
--- a/tinyusb/common/tusb_verify.h
+++ b/tinyusb/common/tusb_verify.h
@@ -60,7 +60,7 @@
//--------------------------------------------------------------------+
// VERIFY Helper
//--------------------------------------------------------------------+
-#if TUSB_CFG_DEBUG >= 1
+#if CFG_TUSB_DEBUG >= 1
#define _MESS_ERR(_err) printf("%s: %d: failed, error = %s\n", __PRETTY_FUNCTION__, __LINE__, tusb_strerr[_err])
#define _MESS_FAILED() printf("%s: %d: failed\n", __PRETTY_FUNCTION__, __LINE__)
#else