diff --git a/Libraries/Si446x/si446x.c b/Libraries/Si446x/si446x.c --- a/Libraries/Si446x/si446x.c +++ b/Libraries/Si446x/si446x.c @@ -1,6 +1,24 @@ -// -// Si446x: Initializes and configures a Si446x transceiver over SPI -// +/* + * 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" 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(); diff --git a/Source/system/gpio.c b/Source/system/gpio.c --- a/Source/system/gpio.c +++ b/Source/system/gpio.c @@ -1,6 +1,24 @@ -// -// GPIO: Configure and initialize GPIOs -// +/* + * 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 "config.h" #include "system/gpio.h" diff --git a/Source/system/uart.c b/Source/system/uart.c --- a/Source/system/uart.c +++ b/Source/system/uart.c @@ -1,3 +1,7 @@ +// +// uart: configure and initialize GPS uart +// + #include "stm32f0xx_hal.h" #include "system/uart.h"