changeset 877:cd04c43187cd

gsm-fw/riviera/rvt: support AT and EXTUI MUX channels
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sat, 30 May 2015 08:10:36 +0000
parents c9f353b5d70c
children 89c70b89dca5
files gsm-fw/riviera/rvt/rvt_def_i.h gsm-fw/riviera/rvt/rvt_gen.h gsm-fw/riviera/rvt/rvt_task.c
diffstat 3 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/riviera/rvt/rvt_def_i.h	Sat May 30 07:50:05 2015 +0000
+++ b/gsm-fw/riviera/rvt/rvt_def_i.h	Sat May 30 08:10:36 2015 +0000
@@ -39,6 +39,8 @@
 	{"PROF",	RVT_PROF_HEADER,	NULL}, \
 	{"GTTBACK",	RVT_GTTBACK_HEADER,	NULL}, \
 	{"OTHER",	RVT_OTHER_HEADER,	NULL}, \
+	{"AT",		RVT_AT_HEADER,		NULL}, \
+	{"EXTUI",	RVT_EXTUI_HEADER,	NULL}, \
 	RVT_END_OF_TABLE \
 }
 
--- a/gsm-fw/riviera/rvt/rvt_gen.h	Sat May 30 07:50:05 2015 +0000
+++ b/gsm-fw/riviera/rvt/rvt_gen.h	Sat May 30 08:10:36 2015 +0000
@@ -80,6 +80,8 @@
 #define RVT_PROF_HEADER      0x16
 #define RVT_GTTBACK_HEADER   0x17
 #define RVT_OTHER_HEADER     0x18
+#define RVT_AT_HEADER        0x1A	/* FreeCalypso addition */
+#define RVT_EXTUI_HEADER     0x1B	/* ditto */
 #define RVT_INVALID_HEADER   0xFF
 
 typedef void (*RVT_CALLBACK_FUNC)(T_RVT_BUFFER, UINT16);
--- a/gsm-fw/riviera/rvt/rvt_task.c	Sat May 30 07:50:05 2015 +0000
+++ b/gsm-fw/riviera/rvt/rvt_task.c	Sat May 30 08:10:36 2015 +0000
@@ -448,14 +448,8 @@
 		(bytesRead) && \
 		!(total_bytesRead))
 	    {
-		if ((inBuffer[0] == RVT_RV_HEADER) || \
-		    (inBuffer[0] == RVT_L1_HEADER) || \
-		    (inBuffer[0] == RVT_L23_HEADER) || \
-		    (inBuffer[0] == RVT_TM_HEADER) || \
-		    (inBuffer[0] == RVT_RNET_HEADER) || \
-		    (inBuffer[0] == RVT_PROF_HEADER) || \
-		    (inBuffer[0] == RVT_GTTBACK_HEADER) || \
-		    (inBuffer[0] == RVT_OTHER_HEADER))
+		if ((inBuffer[0] >= RVT_RV_HEADER) &&
+		    (inBuffer[0] <= RVT_EXTUI_HEADER))
 		{
 		    UINT8  idtab = 0;