Files
@ 0f04af7169be
Branch filter:
Location: windsonde/Source/main.c - annotation
0f04af7169be
805 B
text/plain
Initial import: aprs transmit / radio functional
0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be | //
// mBuoy Depth Select Firmware
// Copyright 2015 SeaLandAire Technologies
//
#include "config.h"
#include "error.h"
#include "system/gpio.h"
#include "system/sysclk.h"
#include "system/watchdog.h"
#include "stm32f0xx_hal.h"
#include "si446x/si446x.h"
#include "aprs/aprs.h"
#include "aprs/afsk.h"
int main(void)
{
hal_init();
sysclock_init();
gpio_init();
afsk_init();
si446x_init();
// Software timers
uint32_t last_led = HAL_GetTick();
while (1)
{
// Blink LEDs
if(HAL_GetTick() - last_led > 1500)
{
aprs_send();
while(afsk_busy());
last_led = HAL_GetTick();
}
if(afsk_request_cwoff())
si446x_cw_off();
// High-frequency function calls
// gpio_process_shutdown();
// watchdog_feed();
}
}
|