mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-15 04:42:15 -04:00
After compression lib experiment
This commit is contained in:
parent
bdbfda626a
commit
434cf6f2e6
8 changed files with 1108 additions and 3 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "afsk.h" // Header for AFSK modem
|
||||
#include "protocol/mp1.h" // Header for MP.1 protocol
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
// A few definitions //
|
||||
//////////////////////////////////////////////////////
|
||||
|
@ -51,6 +52,12 @@ static void mp1Callback(struct MP1Packet *packet) {
|
|||
//kprintf("%.*s\n", packet->dataLength, packet->data);
|
||||
}
|
||||
|
||||
// static int freeRam () {
|
||||
// extern int __heap_start, *__brkval;
|
||||
// int v;
|
||||
// return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
|
||||
// }
|
||||
|
||||
// Simple initialization function.
|
||||
static void init(void)
|
||||
{
|
||||
|
@ -119,6 +126,7 @@ int main(void)
|
|||
// If we should, pass the buffer to the protocol's
|
||||
// send function.
|
||||
mp1Send(&mp1, serialBuffer, serialLen);
|
||||
|
||||
// Reset the transmission flag and length counter
|
||||
sertx = false;
|
||||
serialLen = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue