Use preprocessor in uart_init