diff options
| author | hathach <[email protected]> | 2022-03-09 16:42:51 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-03-09 16:44:19 +0700 |
| commit | 708f05668d681439e521379e281d087d1910a0f3 (patch) | |
| tree | b0b51e6b369ad9e1544b27fe7a5e7a166c6353e3 /src/tusb.c | |
| parent | 2f593e767c28ac5b789a5def2221620c1a2e58b8 (diff) | |
add tusb_debug.h remove tusb_error.h
move debug utils to new header
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/tusb.c b/src/tusb.c index a30221059..c6c04262c 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -161,9 +161,27 @@ uint16_t tu_desc_get_interface_total_len(tusb_desc_interface_t const* desc_itf, #if CFG_TUSB_DEBUG #include <ctype.h> -char const* const tusb_strerr[TUSB_ERROR_COUNT] = { ERROR_TABLE(ERROR_STRING) }; +#if CFG_TUSB_DEBUG >= 2 -char const* const tusb_speed_str[] = { "Full", "Low", "High" }; +char const* const tu_str_speed[] = { "Full", "Low", "High" }; +char const* const tu_str_std_request[] = +{ + "Get Status" , + "Clear Feature" , + "Reserved" , + "Set Feature" , + "Reserved" , + "Set Address" , + "Get Descriptor" , + "Set Descriptor" , + "Get Configuration" , + "Set Configuration" , + "Get Interface" , + "Set Interface" , + "Synch Frame" +}; + +#endif static void dump_str_line(uint8_t const* buf, uint16_t count) { |
