diff options
| author | hathach <[email protected]> | 2023-02-22 11:47:09 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-02-22 11:47:09 +0700 |
| commit | 03ec49450d2109a0e6ede3672e95426fd87aa48f (patch) | |
| tree | ac0a78722a421177931ebd8ccc04034893f929b1 /src/common | |
| parent | 18c3095346159a4f5c3db9775b4f7c6aebca77c2 (diff) | |
rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_compiler.h | 6 | ||||
| -rw-r--r-- | src/common/tusb_debug.h | 2 | ||||
| -rw-r--r-- | src/common/tusb_types.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h index 6a02959ca..c1a321a40 100644 --- a/src/common/tusb_compiler.h +++ b/src/common/tusb_compiler.h @@ -62,10 +62,10 @@ #endif /* --------------------- Fuzzing types -------------------------------------- */ -#ifdef FUZZ - #define TU_STATIC __thread static +#ifdef _FUZZ + #define _fuzz_thread __thread #else - #define TU_STATIC static + #define _fuzz_thread #endif // for declaration of reserved field, make use of _TU_COUNTER_ diff --git a/src/common/tusb_debug.h b/src/common/tusb_debug.h index 8587b6771..e5f718f79 100644 --- a/src/common/tusb_debug.h +++ b/src/common/tusb_debug.h @@ -114,7 +114,7 @@ typedef struct static inline const char* tu_lookup_find(tu_lookup_table_t const* p_table, uint32_t key) { - TU_STATIC char not_found[11]; + static _fuzz_thread char not_found[11]; for(uint16_t i=0; i<p_table->count; i++) { diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 56f782ca3..c4e131134 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -529,13 +529,13 @@ TU_ATTR_ALWAYS_INLINE static inline uint16_t tu_edpt_packet_size(tusb_desc_endpo #if CFG_TUSB_DEBUG TU_ATTR_ALWAYS_INLINE static inline const char *tu_edpt_dir_str(tusb_dir_t dir) { - TU_STATIC const char *str[] = {"out", "in"}; + static _fuzz_thread const char *str[] = {"out", "in"}; return str[dir]; } TU_ATTR_ALWAYS_INLINE static inline const char *tu_edpt_type_str(tusb_xfer_type_t t) { - TU_STATIC const char *str[] = {"control", "isochronous", "bulk", "interrupt"}; + static _fuzz_thread const char *str[] = {"control", "isochronous", "bulk", "interrupt"}; return str[t]; } #endif |
