/* Reconfigure UART console for changed MCK and baudrate.  */
static void reconfigure_console(uint32_t ul_mck, uint32_t ul_baudrate)
/* Reconfigure UART console for changed MCK and baudrate.  */
static void reconfigure_console(uint32_t ul_mck, uint32_t ul_baudrate)
{
	const sam_uart_opt_t uart_console_settings =
			{ ul_mck, ul_baudrate, UART_MR_PAR_NO };
	pmc_enable_periph_clk(CONSOLE_UART_ID);
	pio_configure_pin_group(PINS_UART_PIO, PINS_UART_PORT,
			PINS_UART_FLAGS);
	uart_init(CONF_UART, &uart_console_settings);
}