From 022a18f3143a10dda216fd8c68e6f81a888b6583 Mon Sep 17 00:00:00 2001 From: Fergus Noble Date: Thu, 22 Sep 2011 14:23:49 -0700 Subject: [PATCH] Updating the usart example in jobygps to use fixed gpio code. --- examples/stm32f2/jobygps/usart_printf/usart_printf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/stm32f2/jobygps/usart_printf/usart_printf.c b/examples/stm32f2/jobygps/usart_printf/usart_printf.c index b03b842e..f5a4cf58 100644 --- a/examples/stm32f2/jobygps/usart_printf/usart_printf.c +++ b/examples/stm32f2/jobygps/usart_printf/usart_printf.c @@ -43,8 +43,7 @@ void clock_setup(void) void usart_setup(void) { - //gpio_mode_setup(GPIOA, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, GPIO9); - GPIO_MODER(GPIOA) |= GPIO_MODE(9, GPIO_MODE_AF); + gpio_mode_setup(GPIOA, GPIO_MODE_AF, GPIO_PUPD_NONE, GPIO9); gpio_set_af(GPIOA, GPIO_AF7, GPIO9|GPIO10); /* Setup UART parameters. */