⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utilities.h

📁 在嵌入式系统中对Lattice CPLD软件升级时所需的VME文件生成所需源代码。将一个链上的不同厂家的CPLD产生的SVF文件转换成VME文件
💻 H
字号:

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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -