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.

RTOS/LAUNCHXL-CC1350: UART Clean Buffer

Part Number: LAUNCHXL-CC1350
Other Parts Discussed in Thread: CC1350

Tool/software: TI-RTOS

Hello All,

I am getting difficulties in flushing the Rx buffer of UART. Can anyone help me with this? How can i clean the rx buffer of uart?

  • Shubham Jindal said:
    I am getting difficulties in flushing the Rx buffer of UART. Can anyone help me with this? How can i clean the rx buffer of uart?

    Have you called UART_open()?

    Are you using UART_control(uartHandle, UARTCC26XX_CMD_RX_FIFO_FLUSH, 0)?

    If so, please provide more details on the difficulties you're experiencing.

    Regards,

    - Rob

  • Hello Sir,
    Yes, i have called UART_open() function. But I am not using this UART_control Function. Thanks for helping me with this.
  • Hello Sir,
    How can i flush the Tx buffer of Uart. Can you please tell me about this and where can i Find all this syntax and information about cc1350 launchpad.
    Thanks
  • The Tx buffer is shifted out according to the baud rate, and the TI-RTOS UART driver contains a timer that expires after a time period that is calculated according to the size of the buffer and the configured baud rate of the UART. You can register a callback for UART writes that will be called when a write has completed being output on the UART.

    There are sets of documents in the TI-RTOS product, in the doc subdirectory. You will find a set of documents for the TI drivers, including UART, within the doc subtree.

    Regards,

    - Rob