aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f2/jobygps/usart_printf/usart_printf.c
diff options
context:
space:
mode:
authorUwe Hermann2012-02-06 23:39:06 +0100
committerUwe Hermann2012-02-06 23:39:06 +0100
commit9532195e65edcec7d2f55dbb71f00bb18a04dac8 (patch)
treec9cb7485967037537c2a88ac791598c49018edc2 /examples/stm32/f2/jobygps/usart_printf/usart_printf.c
parent5f82f28d014d86846a3f5e60876c4ff2bd63e9f1 (diff)
More coding-style and cosmetic fixes.
Diffstat (limited to 'examples/stm32/f2/jobygps/usart_printf/usart_printf.c')
-rw-r--r--examples/stm32/f2/jobygps/usart_printf/usart_printf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/stm32/f2/jobygps/usart_printf/usart_printf.c b/examples/stm32/f2/jobygps/usart_printf/usart_printf.c
index 30957a3..26bd007 100644
--- a/examples/stm32/f2/jobygps/usart_printf/usart_printf.c
+++ b/examples/stm32/f2/jobygps/usart_printf/usart_printf.c
@@ -18,19 +18,19 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stdio.h>
+#include <errno.h>
#include <libopencm3/stm32/f2/gpio.h>
#include <libopencm3/stm32/usart.h>
#include <libopencm3/stm32/nvic.h>
#include <libopencm3/stm32/f2/rcc.h>
-#include <stdio.h>
-#include <errno.h>
-
void clock_setup(void)
{
- /* Enable clocks on all the peripherals we are going to use. */
+ /* Enable clocks on all the peripherals we are going to use. */
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_USART1EN);
- rcc_peripheral_enable_clock(&RCC_AHB1ENR, RCC_AHB1ENR_IOPCEN | RCC_AHB1ENR_IOPAEN);
+ rcc_peripheral_enable_clock(&RCC_AHB1ENR,
+ RCC_AHB1ENR_IOPCEN | RCC_AHB1ENR_IOPAEN);
}
void usart_setup(void)