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.

CC2640R2F,NPI-USART模块程序改写,ICall_enrollService的作用

Other Parts Discussed in Thread: CC2640R2F, CC2640

芯片:CC2640R2F

工程:simplePeripheral

问题:在simplePeripheral例程中加入了一路串口,想例用NPI模块的程序直接调用,现在要做NPI模块代码的简代工作,不然占用flash太多了。

在改写过程中发现初始化任务时有

ICall_enrollService ( ICALL_SERVICE_CLASS_NPI, NULL, &npiAppEntityID,
&syncEvent );

语句;同时事件处理中也有

if (ICall_fetchServiceMsg(&stackid, &dest, (void * *) &pMsg)
== ICALL_ERRNO_SUCCESS)
{
NPITask_processICallMsgEvent( pMsg, stackid, dest );
}

想问下,1.ICALL服务是做什么的?

2.如果我仅仅是做一路串口收发的任务,是否可以直接删除这些代码?删除过程中需要注意什么?

3.保留初始化ICall_enrollService 函数的话,是否必须在事件处理中加入ICall_fetchServiceMsg处理消息?

谢谢。