chiark / gitweb /
6ce1ddcf0e2c62b7c3763c77612a2ce7471b0c24
[cura.git] / Cura / avr_isp / chipDB.py
1 __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
2
3 avrChipDB = {
4         'ATMega1280': {
5                 'signature': [0x1E, 0x97, 0x03],
6                 'pageSize': 128,
7                 'pageCount': 512,
8         },
9         'ATMega2560': {
10                 'signature': [0x1E, 0x98, 0x01],
11                 'pageSize': 128,
12                 'pageCount': 1024,
13         },
14 }
15
16 def getChipFromDB(sig):
17         for chip in avrChipDB.values():
18                 if chip['signature'] == sig:
19                         return chip
20         return False
21