Pre-Processor
Purpose:
This directive defines the ID word to be programmed into the part. This
directive does not affect the compilation but the information is put in the output
file.
The first syntax will take a 16 -bit number and put one nibble in each of the
four ID words in the traditional manner. The second syntax specifies the exact
value to be used in each of the four ID words .
When a filename is specified the ID is read from the file. The format must be
simple text with a CR/LF at the end. The keyword CHECKSUM indicates the
device checksum should be saved as the ID.
Examples:
#id
#id
#id
0x1234
"serial.num"
CHECKSUM
Example Files: ex_cust.c
Also See:
None
#IF exp #ELSE #ELIF #ENDIF
Syntax:
#if expr
code
#elif expr
code
#else
code
#endif
//Optional, any number may be used
//Optional
Elements:
Purpose:
expr is an expression with constants, standard operators and/or preprocessor
identifiers. Code is any standard c source code.
The pre-processor evaluates the constant expression and if it is non-zero will
process the lines up to the optional #ELSE or the #ENDIF.
Note: you may NOT use C variables in the #IF. Only preprocessor identifiers
created via #define can be used.
The preprocessor expression DEFINED(id) may be used to return 1 if the id is
defined and 0 if it is not.
== and != operators now accept a constant string as both operands. This
allows for compile time comparisons and can be used with GETENV() when it
returns a string result.
95
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY