Using c_lflag and c_cc in USART config. Using tcdrain() function. Not checked