微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI无线射频设计 > 调用了系统的timer1的配置函数,结果提示出错

调用了系统的timer1的配置函数,结果提示出错

时间:12-22 整理:3721RD 点击:

求问各位老大,我准备用hal_timer.h中的函数配置定时器1,结果报出如下错误。
#include "hal_timer.h"

HalTimerConfig(HAL_TIMER_1,HAL_TIMER_MODE_CTC,HAL_T1_CH1,HAL_TIMER1_CH0_CMP_MODE_SET_ON_COMP_CLR_ON_0,true,0);

Error[e46]: Undefined external "HalTimerConfig::?relay" referred in ...

是不是因为找不到函数实现的地方?怎么解决?

/*********************************************************************
NOTE: Z-Stack and TIMAC no longer use CC2530 Timer 1, Timer 3, and
Timer 4. The supporting timer driver module is removed and left
for the users to implement their own application timer
functions.
*********************************************************************/

是这个原因吗?太郁闷了!能否提供removed之前的文件参考一下呢?

如下附件,请确认。

Since cc253x timers part supposed to be the same as in cc254x I think you might

find it useful. However, keep in mind, there may be bugs in this code and I strongly

recommend you to use it for writing your own module (something to be based on,

not use it as is).

只是参照一下timer1的配置,谢谢大侠!

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top