Fix clock for UART, clean code of init clock