?? eeprom.c.dist
字號:
#ifndef _EEPROM_CONTENT#define _EEPROM_CONTENT 1//-----------------------------------------------------------------------------// "EEPROM" Content// If you want to simulate the EEPROM attached to the FT245BM in the// other hardware variant of usbjtag, put something meaningful in here.// If you make changes to the "EEPROM", you also need to update the checksum at// its end; eecks.c can compute it for you. The data here must match the data// in dscr.a51. Actually it would be nice not to have the same info duplicated// in the code, but assemble the "EEPROM" content from the dscr.a51 data.//-----------------------------------------------------------------------------// Copyright (C) 2005,2006 Kolja Waschk, ixo.de//-----------------------------------------------------------------------------// This code is part of usbjtag. usbjtag is free software; you can redistribute// it and/or modify it under the terms of the GNU General Public License as// published by the Free Software Foundation; either version 2 of the License,// or (at your option) any later version. usbjtag is distributed in the hope// that it will be useful, but WITHOUT ANY WARRANTY; without even the implied// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details. You should have received a// copy of the GNU General Public License along with this program in the file// COPYING; if not, write to the Free Software Foundation, Inc., 51 Franklin// St, Fifth Floor, Boston, MA 02110-1301 USA//-----------------------------------------------------------------------------const BYTE xdata PROM[128] = { 0,0, 0x66,0x66, /* Prototype Vendor ID may NOT be used for a production product! */ 0x06,0x20, /* Product ID 0x2006 */ 0x00,0x04, /* 0x400 indicates FTDI *BM device */ 0x80, /* No remote wakeup, not self-powered */ 0x4B, /* Need 2*75 mA max. */ 0x1C,0x00, /* Set USB version, use version string, enable suspend pulldowns */ 0x10,0x01, /* Support USB version 1.10 */ 0x94,0x0E, /* Offset of the "Vendor" string (0x14) + 0x80, and length (14) */ 0xA2,0x18, /* Offset of the "USB-JTAG-IF" string (0x22) + 0x80, and length (24) */ 0xBA,0x12, /* Offset of the "00000000" serial string (0x3A) + 0x80, and length (18) */ 0x0E,0x03,'V',0,'e',0,'n',0,'d',0,'o',0,'r',0, /* 14 Bytes: "Vendor" */ 0x18,0x03,'U',0,'S',0,'B',0,'-',0,'J',0,'T',0,'A',0,'G',0,'-',0,'I',0,'F',0, /* "USB-JTAG-IF" */ 0x12,0x03,'0',0,'0',0,'0',0,'0',0,'0',0,'0',0,'0',0,'0',0, /* 18 Bytes: "00000000" */ 1,2,3,1,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0x7C,0xDC /* Checksum */};#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -