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.

2640 UART Queue

Other Parts Discussed in Thread: SYSBIOS

processors.wiki.ti.com/.../CC2640_NPI_UART_ECHO_EXAMPLE

依上面地址添加串口,工作正常。

先需要添加一个接收缓冲队列,

在npi_task.c ->NPITask_inititializeTask函数中有:

// create a Tx Queue instance
npiTxQueue = Queue_create(NULL, NULL);
// create an Rx Queue instance
npiRxQueue = Queue_create(NULL, NULL);

但是Queue的其他操作看不到函数原型,只有.h文件的声明:

#define Queue_insert ti_sysbios_knl_Queue_insert
#define Queue_next ti_sysbios_knl_Queue_next
#define Queue_prev ti_sysbios_knl_Queue_prev
#define Queue_remove ti_sysbios_knl_Queue_remove
#define Queue_isQueued ti_sysbios_knl_Queue_isQueued
#define Queue_dequeue ti_sysbios_knl_Queue_dequeue

请问TI工程师,这个Queue的操作可以开放么(或者有使用例子也可以),还是我需要自己实现?

谢谢

x 出现错误。请重试或与管理员联系。