More commenting

This commit is contained in:
Mark Qvist 2014-04-06 20:26:24 +02:00
parent b4de1f73ea
commit 19cca9487a
6 changed files with 66 additions and 26 deletions

View file

@ -1,4 +1,8 @@
//////////////////////////////////////////////////////
// First things first, all the includes we need //
//////////////////////////////////////////////////////
#include <cpu/irq.h> // Interrupt functionality from BertOS
#include <cfg/debug.h> // Debug configuration from BertOS
@ -11,6 +15,11 @@
#include "afsk.h" // Header for AFSK modem
#include "protocol/mp1.h" // Header for MP.1 protocol
//////////////////////////////////////////////////////
// A few definitions //
//////////////////////////////////////////////////////
static Afsk afsk; // Declare a AFSK modem struct
static MP1 mp1; // Declare a protocol struct
static Serial ser; // Declare a serial interface struct
@ -30,6 +39,10 @@ static bool sertx = false; // Flag signifying whether it's time to send da
// Received on the serial port.
//////////////////////////////////////////////////////
// And here comes the actual program :) //
//////////////////////////////////////////////////////
// This is a callback we register with the protocol,
// so we can process each packet as they are decoded.
// Right now it just prints the packet to the serial port.