diff options
| author | Ha Thach <[email protected]> | 2020-08-01 12:31:48 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-01 12:31:48 +0700 |
| commit | 310797a58073dbd6d56eb4c85afd354949ce6630 (patch) | |
| tree | ef3c17689067b9a80b587bce04163515c70bbc5c /src/common | |
| parent | 16fe590b71a9a5449d50aba7210e305595b15681 (diff) | |
| parent | 9bf2b3336610044dfb0187311797c5324eeec0ea (diff) | |
Merge pull request #477 from hathach/fix-nrf-unplugg-isr-event
correct isr context for nrf DCD_EVENT_UNPLUGGED
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++) { |
