This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541 定时器配置问题

Other Parts Discussed in Thread: CC2541

CC2541范例代码中,hal_timer.h定义了几个函数,我该如何调用他呢?

首先,该程序相应hal_timer.c文件为空文件,无法了解这几个函数的定义?

还有,该头文件定义

#define HAL_TIMER_0     0x00 // 8bit timer
#define HAL_TIMER_1     0x01 // 16bit Mac timer
#define HAL_TIMER_2     0x02 // 8bit timer
#define HAL_TIMER_3     0x03 // 16bit timer

我查阅用户手册,定时器1和2为16位的,定时器3、4为8位的,这里定义是否有误?

分频定义同样有这种情况,定时器1分频为1/8/32/128,定时器3、4分频为1/2/4/8/16/32/64/128,可文件定义出现了256、1024等分频。