From e25a6bd58a7bd78f337d6ed3a500e497411d8cd5 Mon Sep 17 00:00:00 2001 From: Vincent Barrilliot Date: Sun, 29 Jan 2023 21:55:08 +0100 Subject: [PATCH] Disable A2560U-specific code for the UART's init. The default works ok it seems. --- src/dev/uart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dev/uart.c b/src/dev/uart.c index fbf9019..5ce8f36 100644 --- a/src/dev/uart.c +++ b/src/dev/uart.c @@ -79,13 +79,13 @@ void uart_init(short uart) { volatile unsigned char * uart_base = uart_get_base(uart); if (uart_base) { - /* Default to 9600 bps */ - uart_setbps(uart, UART_9600); + /* Default default speed */ + uart_setbps(uart, UART_115200); /* Set: no parity, 1 stop bit, 8 data bits */ uart_setlcr(uart, LCR_PARITY_NONE | LCR_STOPBIT_1 | LCR_DATABITS_8); -#if MODEL == MODEL_FOENIX_A2560U || MODEL == MODEL_FOENIX_A2560U_PLUS +#if 0 && (MODEL == MODEL_FOENIX_A2560U || MODEL == MODEL_FOENIX_A2560U_PLUS) // TODO Fix ? /* The A2560U has a 16750 rather than 16550 uart_base[UART_FCR] = 39; uart_base[UART_IER] = 0;