aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f2
diff options
context:
space:
mode:
authorFergus Noble2011-09-22 14:23:49 -0700
committerFergus Noble2011-09-22 14:23:49 -0700
commit022a18f3143a10dda216fd8c68e6f81a888b6583 (patch)
tree4ed329d78a7e39d811af07d646e901be2a8f4259 /examples/stm32f2
parent25ed4d5af0a31943fcc2d9d73ae4fce64e478bf8 (diff)
Updating the usart example in jobygps to use fixed gpio code.
Diffstat (limited to 'examples/stm32f2')
-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. */