From 6944827ad2c1936cbf424014da72f680d415f4c1 Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 19 Feb 2024 18:37:18 +0800 Subject: monitor demo: provide header files provide uart api based on termios provide demo IPC protocol provide makefile that would generate a static lib Change-Id: I1d454d90cde7a5d829af3f410320e1e6412e0359 Signed-off-by: Yan --- include/proto.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/proto.h (limited to 'include/proto.h') diff --git a/include/proto.h b/include/proto.h new file mode 100644 index 0000000..a9307f0 --- /dev/null +++ b/include/proto.h @@ -0,0 +1,28 @@ +/* + * File Name: proto.h + * Description: demo communication protocal + */ + +#ifndef __DEMO_PROTOCOL__ +#define __DEMO_PROTOCOL__ + +/* demo message queue struct */ +typedef struct demo_mq_struct { + long mtype; + _Bool tswitch; +} MQ_STRUCT; + +/* demo shared memory struct */ +typedef struct zigbee_th_struct { + unsigned short tempNow; + unsigned short humiNow; +} SHM_STRUCT; + +/* resources child threads need */ +typedef struct thread_resource_struct { + int rw_fd; + int shm_id; + int mq_id; +} ARG_STRUCT; + +#endif -- cgit 1.2.3-korg