From 7ee1703d2d66f89515dc61189f95be2326b38e08 Mon Sep 17 00:00:00 2001 From: Christian Mehlis Date: Tue, 25 Nov 2014 20:20:52 +0100 Subject: [PATCH] spark-core fix UART speed --- boards/spark-core/include/periph_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/spark-core/include/periph_conf.h b/boards/spark-core/include/periph_conf.h index 850f272c7986..6de64b38d8d9 100644 --- a/boards/spark-core/include/periph_conf.h +++ b/boards/spark-core/include/periph_conf.h @@ -88,7 +88,7 @@ #define UART_0_CLKEN() (RCC->APB1ENR |= RCC_APB1ENR_USART2EN) #define UART_0_IRQ USART2_IRQn #define UART_0_ISR isr_usart2 -#define UART_0_BUS_FREQ (72000000/4) +#define UART_0_BUS_FREQ (CLOCK_CORECLOCK/2) /* UART 0 pin configuration */ #define UART_0_PORT GPIOA #define UART_0_PORT_CLKEN() (RCC->APB2ENR |= RCC_APB2ENR_IOPAEN)