From c4c9d6ca112b104301152fcdea3a487ed0e42bb9 Mon Sep 17 00:00:00 2001 From: Fergus Noble Date: Thu, 22 Sep 2011 14:23:49 -0700 Subject: 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(-) (limited to 'examples/stm32f2') diff --git a/examples/stm32f2/jobygps/usart_printf/usart_printf.c b/examples/stm32f2/jobygps/usart_printf/usart_printf.c index b03b842..f5a4cf5 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. */ -- cgit v1.2.3