FreeCalypso > hg > freecalypso-sw
changeset 453:d2b93cfe8e4c
OSL: os_sem_ir.c done
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 23 Jun 2014 03:26:30 +0000 |
parents | d461c532c76d |
children | 8d5a9f254dfc |
files | gsm-fw/gpf/osl/os_sem_ir.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_sem_ir.c Mon Jun 23 03:22:41 2014 +0000 +++ b/gsm-fw/gpf/osl/os_sem_ir.c Mon Jun 23 03:26:30 2014 +0000 @@ -82,3 +82,11 @@ } } } + +GLOBAL LONG +os_ObtainSemaphore(OS_HANDLE TaskHandle, OS_HANDLE SemHandle, ULONG Timeout) +{ + if (SemHandle > MaxSemaphores) + return(OS_ERROR); + return ObtainSemaphoreCB(&SemTable[SemHandle].SemCB, Timeout, 0); +}