changeset 509:a92cf1059894

osx.c: _osx_config() done, module complete
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 01 Jul 2014 20:02:04 +0000
parents e3b597f858ce
children ceae0979e685
files gsm-fw/gpf/osx/osx.c
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osx/osx.c	Tue Jul 01 19:51:51 2014 +0000
+++ b/gsm-fw/gpf/osx/osx.c	Tue Jul 01 20:02:04 2014 +0000
@@ -206,3 +206,21 @@
 	for (i = 0; i < MAX_OSX_QUEUE; i++)
 		_osx_registry[i].queue_handle = -1;
 }
+
+int
+_osx_config(const char *config)
+{
+	if (!strcmp(config, L1S_TRACE_DISABLE)) {
+		osx_config |= 1;
+		return(OSX_OK);
+	}
+	if (!strcmp(config, L1S_TRACE_ENABLE)) {
+		osx_config &= ~1;
+		return(OSX_OK);
+	}
+	if (!strcmp(config, NO_SPECIAL_MPHC_RXLEV_REQ)) {
+		osx_config &= ~2;
+		return(OSX_OK);
+	}
+	return(OSX_ERROR);
+}