你好,我新建的一个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",不知道为啥会报错,请工程师帮我解答一下,谢谢。