TI中文支持网
TI专业的中文技术问题搜集分享网站

cpintc的库是哪个?

1.我参考sysbios的帮助文档,用了  CpIntc_enableHostInt(0, 32);这样的函数,也在工程属性,Linker中加入了ae66这样的lib,但是编译结果如下:

提示找不到函数的二进制实现,是我加的库不对么?

2。下面程序是帮助文档中的例程

Int eventId;Hwi_Params params;Error_Block eb;// Initialize the error blockError_init(&eb);CpIntc_mapSysIntToHostInt(0, 15, 32);问题:这个地方的8是指核0-7的124个直接输入的中断输入编号还是cic0中的通道影射,比如我在核0执行程序中,
在cic0中将system int 15影射到32通道,然后固定的通道映射到host int 21.
这个语句是写成CpIntc_mapSysIntToHostInt(0, 15, 32);还是CpIntc_mapSysIntToHostInt(0, 15, 21);
CpIntc_dispatchPlug(15, &myEvent15Fxn, 15, TRUE);CpIntc_enableHostInt(0, 21);//按上面例子,应写成 CpIntc_enableHostInt(0,32)还是CpIntc_enableHostInt(0,21)
 eventId = CpIntc_getEventId(32);//这个是得到核中断输入124个中断号中的一个?
Hwi_Params_init(&params);params.eventId = eventId;params.arg = 32;params.enableInt = TRUE;Hwi_create(7, &CpIntc_dispatch, &params, &eb);
本来自己尝试也可以知道这个问题答案了,但是编译不通过,只好一次都问了,谢谢!
Shine:

请问是否有参考过下面的wiki网站?

http://processors.wiki.ti.com/index.php/Configuring_Interrupts_on_Keystone_Devices

long bangqiang:

回复 Shine:

参考过,但是没看到通道怎么映射到host int的。

另外,编译不通过,感觉lib文件不对,还是没有解决啊

赞(0)
未经允许不得转载:TI中文支持网 » cpintc的库是哪个?
分享到: 更多 (0)