Part Number: CC3220
Tool/software: TI-RTOS
I have a question about how to use the CC3220 Simplelink SDK UART DMA driver to accomplish a specific task. In my application I need to enable the UART1 RX path and check it every 100mS while a remote device sends bytes to CC3220. The amount of data sent by the remote host in a 100ms interval may be different each time (e.g 20 bytes this time, 1024 bytes next time). I want to use DMA for this so that the buffering doesn't interfere with the timing of the other threads and so that buffering is never interrupted by other threads. The ring buffer seems perfect for this, but I'm not sure if a ring buffer is available when the UART driver is used in DMA mode (--define=TI_DRIVERS_UART_DMA=1)
. I have the following questions about the UART DMA driver:
- Is it possible to accomplish the functionality described above with the SimpleLink SDK UART driver?
- How do I configure the size of buffer used by the UART driver in DMA mode?
- Is the UART driver ring buffer functionality available when DMA is used (
--define=TI_DRIVERS_UART_DMA=1
)? - Is there any other documentation available for the SimpleLink SDK UART driver besides the API reference?
Also, occasionally I need to update the UART baudrate for this application. From the documentation it looks like I need to call UART_close/UART_open each time I need to reconfigure the baud. Is this correct or is there another better way to update the baud rate at run-time?
Thanks,
Ruben