各位好,我在使用CCS7.1时,在C源文件里使用#pragma DATA_SECTION时,出现unrecognized preprocessing directive的错误,请教如何解决?
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#pragma DATA_SECTION(xtmp, ".pullbuf")
volatile Uint16 xtmp[996];
volatile Uint16 xtmp[996];
HG:
#ifdef __cplusplus
#pragma DATA_SECTION("LedDataRegsFile") /*C++语言格式*/
#else
#pragma DATA_SECTION(LedRegs,"LedDataRegsFile");/*C语言格式*/
#endif
volatile unsigned int LedRegs;
各位好,我在使用CCS7.1时,在C源文件里使用#pragma DATA_SECTION时,出现unrecognized preprocessing directive的错误,请教如何解决?
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#pragma DATA_SECTION(xtmp, ".pullbuf")
volatile Uint16 xtmp[996];
volatile Uint16 xtmp[996];
snap xie:
回复 HG: