TI中文支持网
TI专业的中文技术问题搜集分享网站

CCS10编译28388D程序报错

你好,我新建的一个28388D CPU1工程,新建了一个h文件如下:

//###########################################################################
//
// FILE: Project_defines.h
//
// TITLE: #defines used in Project
//
//###########################################################################

#ifndef PROJECT_DEFINES_H
#define PROJECT_DEFINES_H

#ifdef __cplusplus
extern "C" {
#endif

#if (!defined(CPU1) && !defined(CPU2))
#include "driverlib_cm.h"
#include "cm.h"
#else
#include "F28x_Project.h"
#include "driverlib.h"
#include "device.h"

struct CLA1_TASK_BITS
{ // bits description
Uint16 Enable:1; // 0 Task Enable bit
CLA_Trigger TrigSource:8; // 1:14 Task Trigger Source
Uint16 IntCpuEnable:1; // 15 Task Int Cpu Enable bit
Uint16 rsvd:6;
};

#include "sw_prioritized_isr_levels.h"
#endif

#ifdef __cplusplus
}
#endif /* extern "C" */

#endif

//
// End of file
//

添加该h文件之后编译,CCS报错:#20 identifier "CLA_Trigger" is undefined .ccsproject

但是明明已经正确引用了#include "driverlib.h",不知道为啥会报错,请工程师帮我解答一下,谢谢。

Green Deng:

定位到错误处,然后 open delaction可以打开定义的内容吗?

赞(0)
未经允许不得转载:TI中文支持网 » CCS10编译28388D程序报错
分享到: 更多 (0)