FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/gpf/osl/os_evt.c @ 366:227bc7a1c305
OSL: os_evt.c started
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 29 May 2014 03:48:13 +0000 |
parents | |
children | c72feb362ef1 |
comparison
equal
deleted
inserted
replaced
365:46bdf41cb019 | 366:227bc7a1c305 |
---|---|
1 /* | |
2 * This C module is a reconstruction based on the disassembly of | |
3 * os_evt.obj in frame_na7_db_fl.lib from the Leonardo package. | |
4 */ | |
5 | |
6 /* set of included headers from COFF symtab: */ | |
7 #include <stdio.h> | |
8 #include <string.h> | |
9 #include "gpfconf.h" /* FreeCalypso addition */ | |
10 #include "../../nucleus/nucleus.h" | |
11 #include "typedefs.h" | |
12 #include "os.h" | |
13 #include "gdi.h" | |
14 #include "os_types.h" | |
15 #include "os_glob.h" | |
16 | |
17 extern T_OS_EVTGRP_TABLE_ENTRY EvtGrpTable[]; | |
18 | |
19 GLOBAL LONG | |
20 os_SetEvents(OS_HANDLE evt_grp_handle, unsigned event_flags) | |
21 { | |
22 if (!EvtGrpTable[evt_grp_handle].Name[0]) | |
23 return(OS_ERROR); | |
24 if (NU_Set_Events(&EvtGrpTable[evt_grp_handle].EvtGrp, event_flags, | |
25 NU_OR) == NU_SUCCESS) | |
26 return(OS_OK); | |
27 else | |
28 return(OS_ERROR); | |
29 } |