aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f2/jobygps/usart_printf/usart_printf.c
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2011-11-16 18:16:48 -0800
committerPiotr Esden-Tempski2011-11-16 18:41:48 -0800
commit2bc1025bc51ac30b4022d078cb5565920e6985c1 (patch)
treeb55e4ccff7dc5ca51b339a9c1ba4737043921d44 /examples/stm32/f2/jobygps/usart_printf/usart_printf.c
parent8af809a12a26c1c4670627b92807eabb970209c6 (diff)
Updated all examples to use the new/old usart_set_baudrate api.
Diffstat (limited to 'examples/stm32/f2/jobygps/usart_printf/usart_printf.c')
-rw-r--r--examples/stm32/f2/jobygps/usart_printf/usart_printf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/stm32/f2/jobygps/usart_printf/usart_printf.c b/examples/stm32/f2/jobygps/usart_printf/usart_printf.c
index de1c739..eeeb118 100644
--- a/examples/stm32/f2/jobygps/usart_printf/usart_printf.c
+++ b/examples/stm32/f2/jobygps/usart_printf/usart_printf.c
@@ -28,6 +28,9 @@
void clock_setup(void)
{
+
+#warning "This code has to call some kind of rcc clock setup function!!!"
+
//rcc_clock_setup_in_hse_8mhz_out_72mhz();
/* Enable GPIOA clock (for LED GPIOs). */
@@ -46,7 +49,7 @@ void usart_setup(void)
gpio_set_af(GPIOA, GPIO_AF7, GPIO9 | GPIO10);
/* Setup UART parameters. */
- usart_set_baudrate(USART1, 9600, 16000000);
+ usart_set_baudrate(USART1, 9600);
usart_set_databits(USART1, 8);
usart_set_stopbits(USART1, USART_STOPBITS_1);
usart_set_parity(USART1, USART_PARITY_NONE);