f28035 的高分辨率捕捉口HRcapture 的中断 配置出现警告是为什么?

2019-03-24 11:55发布

我看了TI的Example_2803xHRCap_Capture_HRPwm的例程,然后根据上面的步骤逐渐对应给自己的程序中配置HRCAP1,当检测到下降沿的时候进入HRCAP1——ISR中断函数进行处理,我在DSP2803x_GlobalVariableDefs.c(原来没有如下代码)中加入如下代码时:

//----------------------------------------
#ifdef __cplusplus
#pragma DATA_SECTION("HRCap1RegsFile")
#else
#pragma DATA_SECTION(HRCap1Regs,"HRCap1RegsFile");
#endif
volatile struct HRCAP_REGS HRCap1Regs;

//----------------------------------------
#ifdef __cplusplus
#pragma DATA_SECTION("HRCap2RegsFile")
#else
#pragma DATA_SECTION(HRCap2Regs,"HRCap2RegsFile");
#endif
volatile struct HRCAP_REGS HRCap2Regs;

//----------------------------------------

我编译程序就出现以下警告

[Linking...] "C:CCStudio_v3.3PLAC2000cgtoolsincl2000" -@"Debug.lkf"
<Linking>
warning: creating output section "HRCap1RegsFile" without a SECTIONS
   specification
warning: creating output section "HRCap2RegsFile" without a SECTIONS
   specification

求大神帮忙解答这是为什么,具体怎样解决,谢谢!
此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
5条回答
506977544
2019-03-24 19:36
 精彩回答 2  元偷偷看……0人看过

一周热门 更多>

相关问题

    相关文章