utilities.h

来自「在嵌入式系统中对Lattice CPLD软件升级时所需的VME文件生成所需源代码」· C头文件 代码 · 共 52 行

H
52
字号

void TrimRight( char * a_pszLine );
void TrimLeft( char * a_pszLine );
int stricmp( const char * a_szFirst, const char * a_szSecond );

/* Constants */
#define VERSION_NUMBER "2.1.1"
#ifndef _C_UNIX__
#define FILE_SEP	   "\\"
#define FILE_SEP_CHAR  '\\'
#else
#define FILE_SEP	   "/"
#define FILE_SEP_CHAR  '/'
#endif
#define strmax 1028      
#define NoSave   0x00
#define Store    0x01
#define Minimize 0x02
#define SSave    0x03
#define StableStateMax 4
#define ChainMax   200           /* Maximum number of devices in a chain */
#define ScanMax    64000         /* Maximum number of bits per scan in/out of devices */

#define    false                        0
#define    true                         1
#define     SYNCHRONIZE_SVF				4
#define     MISSING_IDCODE_COMMENTS     3
#define		MISSING_UES_COMMENTS		2
#define		OK_SHOW_HELP				1
#define	    NUL                         0
#define		OK          				0
#define		OUT_OF_MEMORY              -1
#define		UNKNOWN                    -2
#define		ABORT                      -3
#define		INVALID_CHIP               -4
#define		CABLE_NOT_FOUND            -5
#define		POWER_OFF                  -6
#define		CHIPS_NOT_FOUND            -7
#define		FILE_NOT_FOUND             -8
#define		FILE_NOT_VALID             -9
#define		FILE_TOO_BIG              -10
#define		VALIDATION_ERROR          -11
#define		NO_VERIFY_SEC_FUSE_SET    -12
#define		NON_ISP_PART              -13
#define		UNKNOWN_FUNCTION          -14
#define		TOO_MANY_CHIPS            -15
#define		UNKNOWN_CHIP              -16
#define		FILE_NOT_JEDEC            -17
#define		FILE_ERROR                -18
#define		FILE_UES_INVALID          -19
#define		ERR_COMMAND_LINE_SYNTAX	  -20
#define     ERR_NON_EPV_SVF			  -21

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?