From 4dfc42565c2d1f5b900d8d725126bfde886a8423 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 20 Aug 2016 23:04:53 +0100 Subject: tidy --- app/main.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'app/main.c') diff --git a/app/main.c b/app/main.c index 00dbc85..e225f26 100644 --- a/app/main.c +++ b/app/main.c @@ -19,7 +19,7 @@ main (void) rcc_periph_clock_enable (RCC_GPIOB); rcc_periph_clock_enable (RCC_GPIOC); rcc_periph_clock_enable (RCC_AFIO); -rcc_periph_clock_enable(RCC_TIM1); + rcc_periph_clock_enable (RCC_TIM1); nvic_set_priority (NVIC_USART1_IRQ, 0x40); nvic_set_priority (NVIC_USART2_IRQ, 0x40); @@ -28,12 +28,12 @@ rcc_periph_clock_enable(RCC_TIM1); ticker_init (); led_init (); - usart_init(); + usart_init (); - gpio_init(); - buzzer_init(); + gpio_init (); + buzzer_init (); - modem_init(); + modem_init (); @@ -44,17 +44,18 @@ rcc_periph_clock_enable(RCC_TIM1); //usb_init (); - /*Reset the GSM module*/ - gpio_clear(GPIOA,GPIO1); - delay_ms(100); - gpio_set(GPIOA,GPIO1); + /*Reset the GSM module */ + gpio_clear (GPIOA, GPIO1); + delay_ms (100); + gpio_set (GPIOA, GPIO1); //usb_run (); - for (;;) { - serial_poll(); - } + for (;;) + { + serial_poll (); + } return 0; } -- cgit v1.2.3