Changeset - db6685a2165e
[Not reviewed]
default
0 2 0
ethanzonca@CL-SEC241-08.cedarville.edu - 13 years ago 2012-10-29 19:53:54
ethanzonca@CL-SEC241-08.cedarville.edu
Added afsk code, which is tested and works on the micro
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
master/master/lib/serparser.c
Show inline comments
 
/*
 
* serparser.c
 
*
 
* Created: 10/25/2012 8:11:43 PM
 
*  Author: ethanzonca
 
*/
 
 
 
// ************* Macros ***************
 
#define SERIAL_RX_HASBYTES UCSR0A & _BV(RXC)
 
#define SERIAL_RX_HASBYTES UCSR0A & _BV(RXC0)
 
#define MAX_CMD_LEN 16
 
#define BROADCAST_ADDR 0 //public address
 
#include <avr/io.h>
 
#include "../config.h"
 
 
//#define DEBUG
 
 
// ************* Command Definitions ***************
 
 
// Serial Commands
 
enum cmd // CMD ID#
 
{
master/master/master.c
Show inline comments
 
@@ -4,25 +4,25 @@
 
 * Created: 10/25/2012 2:48:04 PM
 
 *  Author: mkanning
 
 */ 
 
 
 
#include "config.h"
 
 
#include <avr/io.h>
 
#include <util/delay.h>
 
 
#include "lib/serial.h"
 
#include "lib/afsk.h"
 
 
#include "lib/led.h"
 
 
void micro_setup() {
 
	// Generic microcontroller config options
 
}
 
 
int main(void)
 
{
 
	// Initialize
 
	micro_setup();
 
	led_setup();
 
	serial_setup(); // Config serial ports
 
	afsk_setup();
0 comments (0 inline, 0 general)