changeset 366:227bc7a1c305

OSL: os_evt.c started
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 29 May 2014 03:48:13 +0000
parents 46bdf41cb019
children c72feb362ef1
files gsm-fw/gpf/osl/Makefile gsm-fw/gpf/osl/os_evt.c
diffstat 2 files changed, 30 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/Makefile	Thu May 29 01:18:38 2014 +0000
+++ b/gsm-fw/gpf/osl/Makefile	Thu May 29 03:48:13 2014 +0000
@@ -4,7 +4,7 @@
 XOPTS=	-DRUN_FLASH -mthumb
 
 IOBJS=	os_com_ir.o os_pro_ir.o
-XOBJS=	os_com_fl.o os_drv.o os_isr.o os_pro_fl.o
+XOBJS=	os_com_fl.o os_drv.o os_evt.o os_isr.o os_pro_fl.o
 
 all:	${IOBJS} ${XOBJS}
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/gpf/osl/os_evt.c	Thu May 29 03:48:13 2014 +0000
@@ -0,0 +1,29 @@
+/*
+ * This C module is a reconstruction based on the disassembly of
+ * os_evt.obj in frame_na7_db_fl.lib from the Leonardo package.
+ */
+
+/* set of included headers from COFF symtab: */
+#include <stdio.h>
+#include <string.h>
+#include "gpfconf.h"	/* FreeCalypso addition */
+#include "../../nucleus/nucleus.h"
+#include "typedefs.h"
+#include "os.h"
+#include "gdi.h"
+#include "os_types.h"
+#include "os_glob.h"
+
+extern T_OS_EVTGRP_TABLE_ENTRY EvtGrpTable[];
+
+GLOBAL LONG
+os_SetEvents(OS_HANDLE evt_grp_handle, unsigned event_flags)
+{
+	if (!EvtGrpTable[evt_grp_handle].Name[0])
+		return(OS_ERROR);
+	if (NU_Set_Events(&EvtGrpTable[evt_grp_handle].EvtGrp, event_flags,
+				NU_OR) == NU_SUCCESS)
+		return(OS_OK);
+	else
+		return(OS_ERROR);
+}