# HG changeset patch # User Michael Spacefalcon # Date 1401335293 0 # Node ID 227bc7a1c30551c91ba052164fa26428ff25715e # Parent 46bdf41cb019586b29ca3ea1174dbfba824f5094 OSL: os_evt.c started diff -r 46bdf41cb019 -r 227bc7a1c305 gsm-fw/gpf/osl/Makefile --- 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} diff -r 46bdf41cb019 -r 227bc7a1c305 gsm-fw/gpf/osl/os_evt.c --- /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 +#include +#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); +}