请问,初始化C6657的程序在哪能够找见,不是.gel文件,是C6657芯片初始化的.c文件
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.
1. 参考GEL文件中各个寄存器的配置值,不是直接把gel文件中的function复制到.c代码中。毕竟GEL文件的语法和c语言还是不一样的。GEL函数常用的函数见下面的文档说明。
http://www.ti.com/lit/an/spraa74a/spraa74a.pdf
2. GEL文件里定义的快捷菜单,在CCS->Scripts里可以直接选择运行。具体可以参考CCS的Help文件。
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.