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 uart移植使用

Part Number: CC2640R2F

在sdk里面发现有npi方式封装的uart的使用,将sdk npi文件夹移到应用Application里面使用,main.c中添加了NPITask_createTask(ICALL_SERVICE_CLASS_BLE);,调用npi_task里面创建线程的接口,调用之后,在需要通过串口发送的地方,使用下面封装的接口进行发送:

void app_uart_WriteTransport(char *buf, uint16_t len)
npiPkt_t *pNpiPkt = (npiPkt_t *)ICall_allocMsg(sizeof(npiPkt_t) + len);

if (pNpiPkt)
pNpiPkt->hdr.event = buf[0]; //Has the event status code in first byte of payload
pNpiPkt->hdr.status = 0xFF;
pNpiPkt->pktLen = len;
pNpiPkt->pData = (uint8 *)(pNpiPkt + 1);

memcpy(pNpiPkt->pData, buf, len);

// Send to NPI
// Note: there is no need to free this packet. NPI will do that itself.
NPITask_sendToHost((uint8_t *)pNpiPkt);


并且POWER_SAVING也没有屏蔽,请问还有别的地方需要配置吗?或者请问npi uart方式,有文档或者demo介绍吗?