summaryrefslogtreecommitdiff
path: root/tinyusb/common/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/common/errors.h')
-rw-r--r--tinyusb/common/errors.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tinyusb/common/errors.h b/tinyusb/common/errors.h
index e4a75f0e8..20a797792 100644
--- a/tinyusb/common/errors.h
+++ b/tinyusb/common/errors.h
@@ -35,13 +35,31 @@
* This file is part of the tiny usb stack.
*/
+/** \file
+ * \brief Error Header
+ *
+ * \note TBD
+ */
+
+/** \ingroup Group_Common
+ *
+ * @{
+ */
+
#ifndef _TUSB_ERRORS_H_
#define _TUSB_ERRORS_H_
+enum TUSB_ERROR {
+# define ERROR_ENUM(x) x,
+# include "errors_def"
+# undef ERROR_ENUM
+};
+
#ifdef __cplusplus
extern "C" {
#endif
+extern char const* const TUSB_ErrorStr[];
#ifdef __cplusplus
}