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.

cpintc的库是哪个?

Other Parts Discussed in Thread: SYSBIOS

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

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

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

Int eventId;
  Hwi_Params params;
  Error_Block eb;
  // Initialize the error block
  Error_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);
本来自己尝试也可以知道这个问题答案了,但是编译不通过,只好一次都问了,谢谢!