What does UART_Timer function?

hi to all,

I not understanding the function of UART_Timer() in peripheral server uart sample code ??

You need to provide info about your application: what processor, what IDE, what package are you using?

In that sample project, the data from the UART is collected into a buffer until the timer expires. As long as timerFlag is 0, UART_EmptyRXBuffer() simply collects data received from the UART in a buffer and returns 0. Once the timer expires timerFlag is set, UART_EmptyRXBuffer() returns the contents of the buffer so that it can be transmitted.