不知道是不是我没找对文档,在TMS320C6000 Chip Support Library API Reference Guide上没有找到详细的TIMER_Config()函数的配置,就只有以下一些内容:
TIMER_Config Structure used to setup timer device
Structure TIMER_Config
Members
Uint32 ctl Control register value
Uint32 prd Period register value
Uint32 cnt Count register value
Description
This is the TIMER configuration structure used to set up a timer device. You create and initialize this structure and then pass its address to the TIMER_config() function. You can use literal values or the _RMK macros to create the structure member values.
Example
TIMER_Config MyConfig = {
0x000002C0, /* ctl */
0x00010000, /* prd */
0x00000000 /* cnt */
};
…
TIMER_config(hTimer,&MyConfig);
在例子:
Example TIMER_Config MyConfig = {
0x000002C0, /* ctl */
0x00010000, /* prd */
0x00000000 /* cnt */
};
之中,没有ctl ,prd,cnt 的详细说明啊,文档所说的literal values和_RMK macros的介绍在什么地方呢?
此帖出自
小平头技术问答
一周热门 更多>