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.

AM5726: (PROCESSOR-SDK-AM572X) UART Hardware Flow Control Driver Support In TI-RTOS

Part Number: AM5726

Hallo TI Community,

I am working on an TI-RTOS application where I need to use the hardware flow control functionality of my UART serial interfaces. The problem is that I didn't find any information (neither API functions nor parameters) says that UART.h API supports hardware flow control (CTS/RTS), however my AM5726 technical reference manual states that it supports UART HW flow control (CTS/RTS). I found other implemented drivers with HW flow control which are developed for other platforms like (UARTCC26XX.h, UARTTiva.h,..) but not for AM5726.

  • Is there any implemented UART driver in TI-RTOS that supports HW control for AM5726?

Thanks,

Ziad

  • Hi Zaid,

    Sorry, I did not get the question here? Are you looking a way to control CTS and RTS signals from software?

    Regards,
    Parth

  • Yes, to control both signals with the help of a function or a parameter like the of UARTTiva driver here 

    unsigned char uartTivaRingBuffer[2][32];
    2 
    3 const UARTTiva_HWAttrs uartTivaHWAttrs[] = {
    4  {
    5  .baseAddr = UART0_BASE,
    6  .intNum = INT_UART0,
    7  .intPriority = (~0),
    8  .flowControl = UART_FLOWCONTROL_NONE,
    9  .ringBufPtr = uartTivaRingBuffer[0],
    10  .ringBufSize = sizeof(uartTivaRingBuffer[0])
    11  },
    12  {
    13  .baseAddr = UART1_BASE,
    14  .intNum = INT_UART1,
    15  .intPriority = (~0),
    16  .flowControl = UART_FLOWCONTROL_NONE, (Here you can see it has a parameter to control HW flow control)
    17  .ringBufPtr = uartTivaRingBuffer[1],
    18  .ringBufSize = sizeof(uartTivaRingBuffer[1])
    19  }
    20 };
    I want to inform the peripheral that I can't receive more data at the moment becuase my buffer is full with the help of HW flow control, when my buffer is again empty or it has some space then I will tell it to start sending again. 
  • Hi Zaid,

    This feature is not supported in the SDK.

    Regards,
    Parth

  • Hey Parth,

    Thanks! I was able to activate the auto RTS/CTS Hardware Flow Control via this function (UARTAutoRTSAutoCTSControl) from the API provided by uart.h.

    Kind Regards,

    Ziad