diff options
Diffstat (limited to 'src/helper/jep106.h')
-rw-r--r-- | src/helper/jep106.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/helper/jep106.h b/src/helper/jep106.h index 0844580..61b177a 100644 --- a/src/helper/jep106.h +++ b/src/helper/jep106.h @@ -27,6 +27,11 @@ * manufacturer associated with bank and id, or one of the strings * "<invalid>" and "<unknown>". */ -const char *jep106_manufacturer(unsigned bank, unsigned id); +const char *jep106_table_manufacturer(unsigned int bank, unsigned int id); + +static inline const char *jep106_manufacturer(unsigned int manufacturer) +{ + return jep106_table_manufacturer(manufacturer >> 7, manufacturer & 0x7f); +} #endif /* OPENOCD_HELPER_JEP106_H */ |