ZDBMS/header_drv/ISP.h

41 lines
825 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __ISP_H
#define __ISP_H
#define STATE_OK 0x5a
#define STATE_ERROR 0xff
#define UART_ERASE 0xfe
#define UART_PROGRAM 0xfd
#define UART_BLANK_CHECK 0xfc
#define UART_CHECKSUM_CHECK 0xfb
#define UART_READ 0xfa
#define UART_READ4B 0xf9
#define UART_SOFT_RESET 0xf8
#define CODE_SECTOR 1 //512Bytes
#define CODE_SIZE 122 //64KBytes = 512byte*128最后2Kbyte用于ISP程序预留4K EEPROM
#define E2P_SECTOR 1 //512Bytes(EEPROM One Sector Size单位为512Bytes)
#define E2P_SIZE 8 //8KBytes(EEPROM all Sector Size单位为512Bytes)
#define PROGRAM_LENGTH 64
extern U8 xdata ucUartBuf[];
extern U8 xdata ucUartBufPT;
extern U8 xdata ucUartSndLength;
//extern void ISPProcess(void);
#endif