From a22cfb2dee31e437ca43351e705b60e143f169d6 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 27 Jan 2013 12:38:06 +0700 Subject: remove violation MISRA 6.3 on errors --- tinyusb/common/errors.c | 2 +- tinyusb/common/errors.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tinyusb/common') 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 #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 -- cgit v1.3.1