📄 jflash.h
字号:
/******************************************************************************
** FILENAME: Jflash.h
**
** PURPOSE: General header for the Jflash utility
**
** LAST MODIFIED: 2003.06.03
******************************************************************************/
#ifdef XHYPER255A
#define VERSION "2003.06.03 - HyBus - XHYPER255A"
#endif
#ifdef XHYPER255B
#define VERSION "2003.06.03 - HyBus - XHYPER255B"
#endif
#define LPT1 0x3bc // hardware base address for parallel port
#define LPT2 0x378 // the search order is LPT1 then 2 then 3
#define LPT3 0x278 // first valid address found is used (re-order if needed for multiple ports)
#define COTULLAID "**** 1001001001100100 00000001001 1" // JTAG ID-codes for the Cotulla
#define READ 0 // Flags used to modify the SA-1110 JTAG chain data depending on
#define WRITE 1 // the access mode of the Flash Memory
#define SETUP 2
#define HOLD 3
#define RS 4
#define ENABLE 1
#define DISABLE 0
#define DRIVE 0
#define HIZ 1 // high Z (impedance)
#define IGNORE_PORT 0 // Flag used when accessing the parallel port
#define READ_PORT 1 // READ_PORT = 'read port', IGNORE_PORT = 'ignore port',
// using IGNORE_PORT will speed access
#define IP IGNORE_PORT
#define RP READ_PORT
#define CONTINUE 0 // not the last instruction
#define TERMINATE 1 // this is the last instruction, so go to EXIT-1 IR
#define MAX_IN_LENGTH 100 // max length for user input strings
#define STATUS_UPDATE 2 // time between updates of program/verify status in seconds
/*
*******************************************************************************
Command codes for the flash
*******************************************************************************
*/
#ifdef XHYPER255B
#define F_READ_ARRAY 0x00FF00FFL
#define F_READ_IDCODES 0x00900090L
#define F_READ_QUERY 0x00980098L
#define F_READ_STATUS 0x00700070L
#define F_CLEAR_STATUS 0x00500050L
#define F_WRITE_BUFFER 0x00E800E8L
#define F_WORDBYTE_PROG 0x00400040L
#define F_BLOCK_ERASE 0x00200020L
#define F_BLOCK_ERASE_2ND 0x00D000D0L
#define F_BLK_ERASE_PS 0x00B000B0L
#define F_BLK_ERASE_PR 0x00D000D0L
#define F_CONFIGURATION 0x00B800B8L
#define F_SET_READ_CFG 0x00600060L
#define F_READ_CONFIG_2ND 0x00030003L
#define F_SET_BLOCK_LOCK 0x00600060L
#define F_SET_BLOCK_LOCK_2ND 0x00010001L
#define F_CLEAR_BLOCK_LOCK 0x00600060L
#define F_CLEAR_BLOCK_LOCK_2ND 0x00D000D0L
#define F_PROTECTION 0x00C000C0L
#define F_ATTR_Q 0x00510051L
#define F_ATTR_R 0x00520052L
#define F_ATTR_Y 0x00590059L
#define F_BLOCK_LOCKED 0x00010001L
#define F_STATUS_READY 0x00800080L
#define BUS_GRAIN DWORD
#define access_rom access_rom_32
#else
//XHYPER255A
#define F_READ_ARRAY 0x00FFL
#define F_READ_IDCODES 0x0090L
#define F_READ_QUERY 0x0098L
#define F_READ_STATUS 0x0070L
#define F_CLEAR_STATUS 0x0050L
#define F_WRITE_BUFFER 0x00E8L
#define F_WORDBYTE_PROG 0x0040L
#define F_BLOCK_ERASE 0x0020L
#define F_BLOCK_ERASE_2ND 0x00D0L
#define F_BLK_ERASE_PS 0x00B0L
#define F_BLK_ERASE_PR 0x00D0L
#define F_CONFIGURATION 0x00B8L
#define F_SET_READ_CFG 0x0060L
#define F_READ_CONFIG_2ND 0x0003L
#define F_SET_BLOCK_LOCK 0x0060L
#define F_SET_BLOCK_LOCK_2ND 0x0001L
#define F_CLEAR_BLOCK_LOCK 0x0060L
#define F_CLEAR_BLOCK_LOCK_2ND 0x00D0L
#define F_PROTECTION 0x00C0L
#define F_ATTR_Q 0x0051L
#define F_ATTR_R 0x0052L
#define F_ATTR_Y 0x0059L
#define F_BLOCK_LOCKED 0x0001L
#define F_STATUS_READY 0x0080L
#define BUS_GRAIN WORD
#define access_rom access_rom_16
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -