请教:谁能帮我解释下文件htc.h?为什么要定义那些变量?从那些内容来看,可以从外部来定义,若是这样的,具体该如何定义?谢过了~~
|
||||
---|---|---|---|---|
新會員
|
為什麼要定義那些變數?從那些內容來看,可以從外部來定義,若是這樣的,具體該如何定義?謝過了~~
#ifndef _HTC_H_ #define _HTC_H_ /* Definitions for _HTC_EDITION_ values */ #define __LITE__ 0 #define __STD__ 1 #define __PRO__ 2 /* common definitions */ #define ___mkstr1(x) #x #define ___mkstr(x) ___mkstr1(x) /* HI-TECH PICC / PICC-Lite compiler */ #if defined(__PICC__) || defined(__PICCLITE__) #include <pic.h> #endif /* HI-TECH PICC-18 compiler */ #if defined(__PICC18__) #include <pic18.h> #endif /* HI-TECH dsPICC compiler */ #if defined(__DSPICC__) #include <dspic.h> #endif /* HI-TECH HTKC compiler for Holtek MCUs */ #if defined(_HTKC_) #include <htk.h> #endif /* HI-TECH C for 8051 */ #if defined(__HTC8051__) #include <8051.h> #endif /* HI-TECH C for MSP430 */ #if defined(__MSP430C__) #include <msp430.h> #endif /* HI-TECH C for ARM */ #if defined(__ARMC__) #include <arm.h> #endif /* HI-TECH HTFSC compiler for Fortune MCUs */ #if defined(__HTFSC__) || defined(_HTFSC_) #include <htfsc.h> #endif #endif
發表於: 2007/5/8 23:15
|
|||
|