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

CC1310串口的缓存阀值中断问题

串口配置里

const UARTCC26XX_HWAttrsV2 uartCC26XXHWAttrs[CC1310_LAUNCHXL_UARTCOUNT] = {{.baseAddr= UART0_BASE,.powerMngrId= PowerCC26XX_PERIPH_UART0,.intNum= INT_UART0_COMB,.intPriority= ~0,.swiPriority= 0,.txPin= CC1310_LAUNCHXL_UART_TX,.rxPin= CC1310_LAUNCHXL_UART_RX,.ctsPin= PIN_UNASSIGNED,.rtsPin= PIN_UNASSIGNED,.ringBufPtr= uartCC26XXRingBuffer[CC1310_LAUNCHXL_UART0],.ringBufSize= sizeof(uartCC26XXRingBuffer[CC1310_LAUNCHXL_UART0]),.txIntFifoThr= UARTCC26XX_FIFO_THRESHOLD_1_8,.rxIntFifoThr= UARTCC26XX_FIFO_THRESHOLD_4_8,.errorFxn= NULL}
};

这里的rxIntFifoThr 或者txIntFifoThr,设置了阀值,怎么我的callback里没收到,是不是要通过另外种方式

Alvin Chen:

UART TX/RX interrupt FIFO threshold select.

Defined FIFO thresholds for generation of both TX interrupt and RX interrupt. The default value (UARTCC26XX_FIFO_THRESHOLD_DEFAULT) is defined for backward compatibility handling.

Enumerator
UARTCC26XX_FIFO_THRESHOLD_DEFAULT
Default value forces FIFO threshold of 1/8 for TX interrupt and 4/8 for RX interrupt

UARTCC26XX_FIFO_THRESHOLD_1_8
FIFO threshold of 1/8 full

UARTCC26XX_FIFO_THRESHOLD_2_8
FIFO threshold of 2/8 full

UARTCC26XX_FIFO_THRESHOLD_4_8
FIFO threshold of 4/8 full

UARTCC26XX_FIFO_THRESHOLD_6_8
FIFO threshold of 6/8 full

UARTCC26XX_FIFO_THRESHOLD_7_8
FIFO threshold of 7/8 full

如何使用callback 模式请看:
dev.ti.com/…/_u_a_r_t_c_c26_x_x_8h.html

user5289985:

回复 Alvin Chen:

这个阀值设置有什么用,是不是缓存到了这个阀值后会产生什么中断之类的?

Alvin Chen:

回复 user5289985:

Defined FIFO thresholds for generation of both TX interrupt and RX interrupt.

赞(0)
未经允许不得转载:TI中文支持网 » CC1310串口的缓存阀值中断问题
分享到: 更多 (0)