changeset 353:ee4eb0eacfaf

OSL: os_com_fl.c done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 12 May 2014 00:14:39 +0000
parents 39b5b18e26b2
children 92742d8f3e56
files gsm-fw/gpf/osl/os_com_fl.c
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_com_fl.c	Mon May 12 00:04:13 2014 +0000
+++ b/gsm-fw/gpf/osl/os_com_fl.c	Mon May 12 00:14:39 2014 +0000
@@ -288,3 +288,22 @@
 		NU_Release_Semaphore(&ComSemCB);
 	return(OS_OK);
 }
+
+GLOBAL LONG
+os_ComInit(void)
+{
+	USHORT i;
+
+	if (NU_Create_Semaphore(&ComSemCB, "COMSEM", 1, NU_PRIORITY)
+			!= NU_SUCCESS)
+		return(OS_ERROR);
+	for (i = 1; i <= MaxCommunications; i++)
+		bzero(&ComTable[i], sizeof(T_OS_COM_TABLE_ENTRY));
+	return(OS_OK);
+}
+
+GLOBAL LONG
+os_CloseQueue(OS_HANDLE TaskHandle, OS_HANDLE ComHandle)
+{
+	return(OS_OK);
+}