]>
Commit | Line | Data |
---|---|---|
77adad94 | 1 | ## |
50bd5d25 | 2 | ## This file is part of the libsigrokdecode project. |
77adad94 UH |
3 | ## |
4 | ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> | |
5 | ## | |
6 | ## This program is free software; you can redistribute it and/or modify | |
7 | ## it under the terms of the GNU General Public License as published by | |
8 | ## the Free Software Foundation; either version 2 of the License, or | |
9 | ## (at your option) any later version. | |
10 | ## | |
11 | ## This program is distributed in the hope that it will be useful, | |
12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ## GNU General Public License for more details. | |
15 | ## | |
16 | ## You should have received a copy of the GNU General Public License | |
4539e9ca | 17 | ## along with this program; if not, see <http://www.gnu.org/licenses/>. |
77adad94 UH |
18 | ## |
19 | ||
20 | # Device code addresses: | |
21 | # 0x00: vendor code, 0x01: part family + flash size, 0x02: part number | |
22 | ||
23 | # Vendor code | |
24 | vendor_code = { | |
25 | 0x1e: 'Atmel', | |
26 | 0x00: 'Device locked', | |
27 | } | |
28 | ||
29 | # (Part family + flash size, part number) | |
30 | part = { | |
31 | (0x90, 0x01): 'AT90S1200', | |
32 | (0x91, 0x01): 'AT90S2313', | |
33 | (0x92, 0x01): 'AT90S4414', | |
34 | (0x92, 0x05): 'ATmega48', # 4kB flash | |
35 | (0x93, 0x01): 'AT90S8515', | |
36 | (0x93, 0x0a): 'ATmega88', # 8kB flash | |
37 | (0x94, 0x06): 'ATmega168', # 16kB flash | |
38 | (0xff, 0xff): 'Device code erased, or target missing', | |
39 | (0x01, 0x02): 'Device locked', | |
40 | # TODO: Lots more entries. | |
41 | } |