diff options
| author | hathach <[email protected]> | 2020-08-01 12:02:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-08-01 12:02:59 +0700 |
| commit | 9bf2b3336610044dfb0187311797c5324eeec0ea (patch) | |
| tree | 1198ef501bff6591c80c9e3a04b4acab3ee0ef1f /src/common | |
| parent | 22100b252fc2eb8f51ed407949645653c4880fd9 (diff) | |
correct isr context for nrf DCD_EVENT_UNPLUGGED
also rename debug lookup to prevent conflict
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index 1dba6c914..d95c0ffc4 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -251,16 +251,16 @@ void tu_print_var(uint8_t const* buf, uint32_t bufsize) typedef struct { uint32_t key; - char const * data; -}lookup_entry_t; + const char* data; +} tu_lookup_entry_t; typedef struct { uint16_t count; - lookup_entry_t const* items; -} lookup_table_t; + tu_lookup_entry_t const* items; +} tu_lookup_table_t; -static inline char const* lookup_find(lookup_table_t const* p_table, uint32_t key) +static inline const char* tu_lookup_find(tu_lookup_table_t const* p_table, uint32_t key) { for(uint16_t i=0; i<p_table->count; i++) { |
