diff --git a/Source/main.c b/Source/main.c --- a/Source/main.c +++ b/Source/main.c @@ -8,10 +8,13 @@ #include "system/gpio.h" #include "system/sysclk.h" #include "system/watchdog.h" +#include "system/uart.h" #include "stm32f0xx_hal.h" #include "si446x/si446x.h" #include "aprs/aprs.h" #include "aprs/afsk.h" +#include "gps.h" + int main(void) { @@ -19,8 +22,11 @@ int main(void) sysclock_init(); gpio_init(); + afsk_init(); si446x_init(); + gps_poweron(); + // Software timers uint32_t last_led = HAL_GetTick(); @@ -29,6 +35,7 @@ int main(void) // Blink LEDs if(HAL_GetTick() - last_led > 1500) { + gps_update_data(); aprs_send(); while(afsk_busy());