Configuration of UART mode is realized by an internal function which is also used by UART initialization function.