FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/gpf/osl/os_com_fl.c @ 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 |
comparison
equal
deleted
inserted
replaced
352:39b5b18e26b2 | 353:ee4eb0eacfaf |
---|---|
286 ComTable[i].MaxUsed = 0; | 286 ComTable[i].MaxUsed = 0; |
287 if (sts == NU_SUCCESS) | 287 if (sts == NU_SUCCESS) |
288 NU_Release_Semaphore(&ComSemCB); | 288 NU_Release_Semaphore(&ComSemCB); |
289 return(OS_OK); | 289 return(OS_OK); |
290 } | 290 } |
291 | |
292 GLOBAL LONG | |
293 os_ComInit(void) | |
294 { | |
295 USHORT i; | |
296 | |
297 if (NU_Create_Semaphore(&ComSemCB, "COMSEM", 1, NU_PRIORITY) | |
298 != NU_SUCCESS) | |
299 return(OS_ERROR); | |
300 for (i = 1; i <= MaxCommunications; i++) | |
301 bzero(&ComTable[i], sizeof(T_OS_COM_TABLE_ENTRY)); | |
302 return(OS_OK); | |
303 } | |
304 | |
305 GLOBAL LONG | |
306 os_CloseQueue(OS_HANDLE TaskHandle, OS_HANDLE ComHandle) | |
307 { | |
308 return(OS_OK); | |
309 } |