mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-15 04:42:15 -04:00
More commenting
This commit is contained in:
parent
b4de1f73ea
commit
19cca9487a
6 changed files with 66 additions and 26 deletions
13
Modem/main.c
13
Modem/main.c
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue