aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFergus Noble2011-09-22 14:23:49 -0700
committerStephen Caudle2011-10-12 22:18:44 -0400
commitc4c9d6ca112b104301152fcdea3a487ed0e42bb9 (patch)
treedfb8ea4aa0c1028ed969f2bf28a514f422576412 /examples
parent53f1c75c53f856af7a46cebc3e68a68c0a89036d (diff)
Updating the usart example in jobygps to use fixed gpio code.
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. */