2010-06-07 11:45:35 +00:00
|
|
|
/* hadie - High Altitude Balloon flight software */
|
|
|
|
/*============================================================*/
|
|
|
|
/* Copyright (C)2010 Philip Heron <phil@sanslogic.co.uk> */
|
|
|
|
/* */
|
|
|
|
/* This program is distributed under the terms of the GNU */
|
|
|
|
/* General Public License, version 2. You may use, modify, */
|
|
|
|
/* and redistribute it under the terms of this license. A */
|
|
|
|
/* copy should be included with this source. */
|
|
|
|
|
2010-06-07 12:10:32 +00:00
|
|
|
#include "config.h"
|
2010-06-08 10:45:12 +00:00
|
|
|
#include <util/delay.h>
|
2010-06-09 15:32:22 +00:00
|
|
|
#include <util/crc16.h>
|
2010-06-07 11:45:35 +00:00
|
|
|
#include <avr/interrupt.h>
|
2010-06-08 10:19:37 +00:00
|
|
|
#include "rtty.h"
|
2010-06-07 11:45:35 +00:00
|
|
|
#include "rs8.h"
|
|
|
|
|
2010-06-09 15:32:22 +00:00
|
|
|
uint16_t gps_CRC16_checksum(char *s)
|
|
|
|
{
|
|
|
|
uint16_t x;
|
|
|
|
|
|
|
|
for(x = 0xFFFF; *s; s++)
|
|
|
|
x = _crc_xmodem_update(x, (uint8_t) *s);
|
|
|
|
|
|
|
|
return(x);
|
|
|
|
}
|
|
|
|
|
2010-06-07 11:45:35 +00:00
|
|
|
int main(void)
|
|
|
|
{
|
2010-06-08 10:45:12 +00:00
|
|
|
/* Initalise the radio, and let it settle */
|
2010-06-08 10:19:37 +00:00
|
|
|
rtx_init();
|
2010-06-08 10:45:12 +00:00
|
|
|
_delay_ms(2000);
|
|
|
|
|
2010-06-07 11:45:35 +00:00
|
|
|
/* Start interrupts and enter main loop */
|
|
|
|
sei();
|
2010-06-08 10:45:12 +00:00
|
|
|
|
2010-06-07 11:45:35 +00:00
|
|
|
while(1)
|
|
|
|
{
|
2010-06-16 20:56:34 +00:00
|
|
|
rtx_string_P(PSTR("Hello, World!\n"));
|
2010-06-07 11:45:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return(0);
|
|
|
|
}
|
|
|
|
|