FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/gpf/osl/os_mis_ir.c @ 701:615fb8847d3f
top level README: typo fix
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 02 Oct 2014 18:48:12 +0000 |
parents | 631d273bb65e |
children |
rev | line source |
---|---|
440
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /* |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 * This C module is a reconstruction based on the disassembly of |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 * os_mis.obj in frame_na7_db_ir.lib from the Leonardo package. |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 */ |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 /* subset of included headers from COFF symtab: */ |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 #include "gpfconf.h" /* FreeCalypso addition */ |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 #include "../../nucleus/nucleus.h" |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 #include "typedefs.h" |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 #include "os.h" |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 #include "gdi.h" |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 #include "os_types.h" |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 #include "os_glob.h" |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 extern unsigned os_tick_to_time_multiplier; |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 GLOBAL LONG |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 os_GetTime(OS_HANDLE Caller, OS_TIME *Time) |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 { |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 UNSIGNED Value; |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 Value = NU_Retrieve_Clock(); |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 *Time = SYSTEM_TICKS_TO_TIME(Value); |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 return(OS_OK); |
631d273bb65e
OSL: os_mis_ir.c done
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 } |