From 2bc1025bc51ac30b4022d078cb5565920e6985c1 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Wed, 16 Nov 2011 18:16:48 -0800 Subject: Updated all examples to use the new/old usart_set_baudrate api. --- examples/stm32/f1/stm32-h103/usart_printf/usart_printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/stm32/f1/stm32-h103/usart_printf') diff --git a/examples/stm32/f1/stm32-h103/usart_printf/usart_printf.c b/examples/stm32/f1/stm32-h103/usart_printf/usart_printf.c index e5693f1..e4de549 100644 --- a/examples/stm32/f1/stm32-h103/usart_printf/usart_printf.c +++ b/examples/stm32/f1/stm32-h103/usart_printf/usart_printf.c @@ -44,7 +44,7 @@ void usart_setup(void) GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO_USART1_TX); /* Setup UART parameters. */ - usart_set_baudrate(USART1, 230400, rcc_ppre2_frequency); + usart_set_baudrate(USART1, 230400); usart_set_databits(USART1, 8); usart_set_stopbits(USART1, USART_STOPBITS_1); usart_set_parity(USART1, USART_PARITY_NONE); -- cgit v1.2.3