aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32f2/jobygps/usart_printf/usart_printf.c3
1 files changed, 1 insertions, 2 deletions
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. */