在帮助里面找C55x Chip Support Library中的GPT Module,里面有GPT_Config的结构说明:
Structure
GPT_Config
Members
Uint16 gptemu //Emulation management register
Uint16 gptgpint //GPIO interrupt control register
Uint16 gptgpen //GPIO enable register
Uint16 gptgpdir //GPIO direction register
Uint16 gptgpdat //GPIO data register
Uint16 gptprd1 //Timer period register 1
Uint16 gptprd2 //Timer period register 2
Uint16 gptprd3 //Timer period register 3
Uint16 gptprd4 //Timer period register 4
Uint16 gptctl1 //Timer control register 1
Uint16 gptctl2 //Timer control register 2
Uint16 gptgctl1 //Global timer control register
Description
This is the GPT configuration structure used to configure a GPT device. The user should create and initalize this structure before passing its address to the GPT_config function.
看这个结构,都是寄存器的设置,因此如果你要找相应的寄存器的说明的话,就要找相应的文档:
TMS320VC5501/5502 DSP Timers Reference Guide。
详情回复
发表于 2007-10-26 05:45
在帮助里面找C55x Chip Support Library中的GPT Module,里面有GPT_Config的结构说明:
Structure
GPT_Config
Members
Uint16 gptemu //Emulation management register
Uint16 gptgpint //GPIO interrupt control register
Uint16 gptgpen //GPIO enable register
Uint16 gptgpdir //GPIO direction register
Uint16 gptgpdat //GPIO data register
Uint16 gptprd1 //Timer period register 1
Uint16 gptprd2 //Timer period register 2
Uint16 gptprd3 //Timer period register 3
Uint16 gptprd4 //Timer period register 4
Uint16 gptctl1 //Timer control register 1
Uint16 gptctl2 //Timer control register 2
Uint16 gptgctl1 //Global timer control register
Description
This is the GPT configuration structure used to configure a GPT device. The user should create and initalize this structure before passing its address to the GPT_config function.