请问,初始化C6657的程序在哪能够找见,不是.gel文件,是C6657芯片初始化的.c文件
Shine:
把gel文件里的初始化移到.c文件就可以了。
lili ye:
回复 Shine:
.gel文件中,函数的命名都不带返回值类型,如prog_pll1_values(unsigned int pll_multiplier, unsigned int pll_divider, unsigned int odiv)
还有这种命名的,如:hotmenu Init_mainPLL()
这里的hotmenu 是什么意思?
Shine:
回复 lili ye:
1. 参考GEL文件中各个寄存器的配置值,不是直接把gel文件中的function复制到.c代码中。毕竟GEL文件的语法和c语言还是不一样的。GEL函数常用的函数见下面的文档说明。http://www.ti.com/lit/an/spraa74a/spraa74a.pdf
2. GEL文件里定义的快捷菜单,在CCS->Scripts里可以直接选择运行。具体可以参考CCS的Help文件。
The hotmenu Keyword
Use the hotmenu keyword to add a GEL function to the GEL menu that is executed immediately when selected. The syntax is as follows:
hotmenu funcName() { statements }
This keyword is used for GEL functions that have no Parameters to be passed.
menuitem "My Functions"; hotmenu InitTarget() { *waitState = 0x11; } hotmenu LoadMyProg() { GEL_Load("c:\\mydir\\myfile.out"); }
This example adds the following sub-selections under the Scripts menu.
When you choose the InitTarget command, it is immediately executed. To call GEL functions that require Parameters to be passed, use the dialog keyword.