diff --git a/Source/main.c b/Source/main.c --- a/Source/main.c +++ b/Source/main.c @@ -1,21 +1,41 @@ -// -// mBuoy Depth Select Firmware -// Copyright 2015 SeaLandAire Technologies -// +/* + * FeatherHAB + * + * This file is part of FeatherHAB. + * + * FeatherHab is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * FeatherHab is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with FeatherHAB. If not, see . + * + * Ethan Zonca + * + */ + +#include "stm32f0xx_hal.h" #include "config.h" #include "error.h" +#include "pressure.h" +#include "gps.h" + #include "system/gpio.h" #include "system/sysclk.h" #include "system/watchdog.h" #include "system/uart.h" #include "system/adc.h" -#include "stm32f0xx_hal.h" + #include "si446x/si446x.h" #include "aprs/aprs.h" #include "aprs/afsk.h" -#include "pressure.h" -#include "gps.h" int main(void) @@ -24,18 +44,13 @@ int main(void) sysclock_init(); gpio_init(); - HAL_Delay(100); - adc_init(); afsk_init(); si446x_init(); si446x_init(); - HAL_Delay(100); - gps_poweron(); - HAL_Delay(100); pressure_init();