mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
remove violation MISRA 6.3 on errors
This commit is contained in:
parent
5feb1c90b4
commit
a22cfb2dee
@ -88,7 +88,7 @@ uint8_t tusbh_hid_keyboard_no_instances(tusb_handle_device_t const device_hdl)
|
||||
//--------------------------------------------------------------------+
|
||||
// CLASS-USBD API
|
||||
//--------------------------------------------------------------------+
|
||||
tusb_error_t class_hid_keyboard_init(void)
|
||||
void class_hid_keyboard_init(void)
|
||||
{
|
||||
memset(&keyboard_info_pool, 0, sizeof(class_hid_keyboard_info_t)*TUSB_CFG_HOST_DEVICE_MAX);
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ typedef struct {
|
||||
keyboard_interface_t instance[TUSB_CFG_HOST_HID_KEYBOARD_NO_INSTANCES_PER_DEVICE];
|
||||
} class_hid_keyboard_info_t;
|
||||
|
||||
tusb_error_t class_hid_keyboard_init(void);
|
||||
void class_hid_keyboard_init(void);
|
||||
tusb_error_t class_hid_keyboard_install(uint8_t const dev_addr, uint8_t const *descriptor);
|
||||
|
||||
#endif
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user