demo tweaks ...

This commit is contained in:
2017-10-15 23:30:25 +02:00
parent 8415f15c99
commit 87d1841fc8
6 changed files with 18 additions and 26 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
#define TF_ID_BYTES 1
#define TF_LEN_BYTES 2
#define TF_TYPE_BYTES 1
#define TF_CKSUM_TYPE TF_CKSUM_CRC32
#define TF_CKSUM_TYPE TF_CKSUM_CRC16
#define TF_USE_SOF_BYTE 1
#define TF_SOF_BYTE 0x01
typedef uint16_t TF_TICKS;
+1 -4
View File
@@ -3,9 +3,6 @@
//
#include <stdio.h>
#include <stdlib.h>
#include <zconf.h>
#include "../../TinyFrame.h"
#include "../demo.h"
bool testIdListener(TF_MSG *msg)
@@ -34,5 +31,5 @@ int main(void)
TF_QuerySimple(2, (pu8)"Query!", 6, testIdListener, 0);
while(1) usleep(10);
demo_sleep();
}
+1 -4
View File
@@ -3,9 +3,7 @@
//
#include <stdio.h>
#include "../../TinyFrame.h"
#include "../demo.h"
#include <unistd.h>
#include <memory.h>
bool helloListener(TF_MSG *msg)
@@ -34,6 +32,5 @@ int main(void)
TF_AddTypeListener(2, replyListener);
demo_init(TF_SLAVE);
printf("MAIN PROCESS CONTINUES...\n");
while(1) usleep(10);
demo_sleep();
}