Pre-Processor
Examples:
Also See:
__ TIME __
#task(rate=1s, max=20ms, queue=5)
#USE RTOS
Syntax:
Elements:
Purpose:
Examples:
Example
Files:
Also See:
#TYPE
Syntax:
__TIME__
None
This pre-processor identifier is replaced at compile time with the time of the
compile in the form: "hh:mm:ss"
printf("Software was compiled on ");
printf(__TIME__);
None
None
#TYPE standard - type = size
#TYPE default=area
#TYPE unsigned
#TYPE signed
Elements: standard-type is one of the C keywords short, int, long, or default
size is 1,8,16, or 32
area is a memory region defined before the #TYPE using the addressmod directive
Purpose:
By default the compiler treats SHORT as one bit , INT as 8 bits, and LONG as 16
bits. The traditional C convention is to have INT defined as the most efficient size
for the target processor. This is why it is 8 bits on the PIC ? . In order to help with
code compatibility a #TYPE directive may be used to allow these types to be
changed. #TYPE can redefine these keywords.
Note that the commas are optional. Since #TYPE may render some sizes
inaccessible (like a one bit int in the above) four keywords representing the four ints
may always be used: INT1, INT8, INT16, and INT32.
Be warned CCS example
programs and include files may not work right if you use #TYPE in your program.
This directive may also be used to change the default RAM area used for variable
storage. This is done by specifying default=area where area is a addressmod
119
相关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