summaryrefslogtreecommitdiff
path: root/tinyusb/common/errors.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-12-20 16:56:19 +0700
committerhathach <[email protected]>2012-12-20 16:56:19 +0700
commit00b3f485194a491b9da7420f3358c4117292319e (patch)
tree1820c1455e10335e25bd5ce866e2a77fc7bea733 /tinyusb/common/errors.h
parentec4a3f60488fbd9eaf51c12b1cce79f0a7d3064f (diff)
rename a bunch of configure macros
Diffstat (limited to 'tinyusb/common/errors.h')
-rw-r--r--tinyusb/common/errors.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tinyusb/common/errors.h b/tinyusb/common/errors.h
index 22db0721a..53c9379c3 100644
--- a/tinyusb/common/errors.h
+++ b/tinyusb/common/errors.h
@@ -49,6 +49,8 @@
#ifndef _TUSB_ERRORS_H_
#define _TUSB_ERRORS_H_
+#include "../tusb_cfg.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -64,8 +66,10 @@ typedef enum {
ERROR_COUNT
}TUSB_Error_t;
-/// Enum to String for debugging purposes. Only available if \ref CFG_TUSB_DEBUG_LEVEL > 0
+#if TUSB_CFG_DEBUG == 3
+/// Enum to String for debugging purposes. Only available if \ref TUSB_CFG_DEBUG > 0
extern char const* const TUSB_ErrorStr[];
+#endif
#ifdef __cplusplus
}