# HG changeset patch # User Michael Spacefalcon # Date 1403492122 0 # Node ID 8768b9f2807336980ee8cba0b19a8954d20d90e7 # Parent 03b6377d61db822569f96d3e87f84223bccfede0 OSL: os_sem_ir.c started diff -r 03b6377d61db -r 8768b9f28073 gsm-fw/gpf/osl/Makefile --- a/gsm-fw/gpf/osl/Makefile Mon Jun 23 02:36:51 2014 +0000 +++ b/gsm-fw/gpf/osl/Makefile Mon Jun 23 02:55:22 2014 +0000 @@ -3,7 +3,7 @@ IOPTS= -DRUN_INT_RAM XOPTS= -DRUN_FLASH -mthumb -IOBJS= os_com_ir.o os_mem_ir.o os_mis_ir.o os_pro_ir.o +IOBJS= os_com_ir.o os_mem_ir.o os_mis_ir.o os_pro_ir.o os_sem_ir.o XOBJS= os_com_fl.o os_drv.o os_isr.o os_mem_fl.o os_pro_fl.o os_sem_fl.o all: ${IOBJS} ${XOBJS} diff -r 03b6377d61db -r 8768b9f28073 gsm-fw/gpf/osl/os_sem_ir.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gsm-fw/gpf/osl/os_sem_ir.c Mon Jun 23 02:55:22 2014 +0000 @@ -0,0 +1,34 @@ +/* + * This C module is a reconstruction based on the disassembly of + * os_sem.obj in frame_na7_db_ir.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_SEM_TABLE_ENTRY SemTable[]; +extern unsigned os_time_to_tick_multiplier; + +int +ReleaseSemaphoreCB(NU_SEMAPHORE *SemCB) +{ + if (NU_Release_Semaphore(SemCB) == NU_SUCCESS) + return(OS_OK); + else + return(OS_ERROR); +} + +int +ObtainSemaphoreCB(NU_SEMAPHORE *SemCB, ULONG Timeout, USHORT wait_check) +{ + + +}