forked from g3gg0/flipper-swd_probe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjep106.c
26 lines (19 loc) · 792 Bytes
/
jep106.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* https://github.com/openocd-org/openocd/blob/master/src/helper/ */
// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2015 Andreas Fritiofson *
***************************************************************************/
#include "jep106.h"
static const char* const jep106[][126] = {
#include "jep106.inc"
};
const char* jep106_table_manufacturer(unsigned int bank, unsigned int id) {
if(id < 1 || id > 126) {
return "<invalid>";
}
/* index is zero based */
id--;
if(bank >= 14 || jep106[bank][id] == 0) return "<unknown>";
return jep106[bank][id];
}