summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-27 12:38:06 +0700
committerhathach <[email protected]>2013-01-27 12:38:06 +0700
commita22cfb2dee31e437ca43351e705b60e143f169d6 (patch)
tree7ebe0afa4dfd1699ce8389fc33c352dfd59c26cc /tinyusb/common
parent5feb1c90b41b2da4667b9e1f1fde069b6e1bfdcc (diff)
remove violation MISRA 6.3 on errors
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/errors.c2
-rw-r--r--tinyusb/common/errors.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/tinyusb/common/errors.c b/tinyusb/common/errors.c
index 0b36a6c8b..53e10d763 100644
--- a/tinyusb/common/errors.c
+++ b/tinyusb/common/errors.c
@@ -39,7 +39,7 @@
#if TUSB_CFG_DEBUG == 3
-unsigned char const* const TUSB_ErrorStr[] =
+uint8_t const* const TUSB_ErrorStr[] =
{
ERROR_TABLE(ERROR_STRING)
0
diff --git a/tinyusb/common/errors.h b/tinyusb/common/errors.h
index 3b37154d3..e55ab3f4e 100644
--- a/tinyusb/common/errors.h
+++ b/tinyusb/common/errors.h
@@ -49,6 +49,7 @@
#ifndef _TUSB_ERRORS_H_
#define _TUSB_ERRORS_H_
+#include <stdint.h>
#include "../tusb_option.h"
#ifdef __cplusplus
@@ -77,7 +78,7 @@ typedef enum {
#if TUSB_CFG_DEBUG == 3
/// Enum to String for debugging purposes. Only available if \ref TUSB_CFG_DEBUG > 0
-extern unsigned char const* const TUSB_ErrorStr[];
+extern uint8_t const* const TUSB_ErrorStr[];
#endif
#ifdef __cplusplus