FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/gpf/osl/os_tim_fl.c @ 454:8d5a9f254dfc
OSL: os_tim_fl.c started
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 23 Jun 2014 04:20:09 +0000 |
parents | |
children | 2081103418e9 |
comparison
equal
deleted
inserted
replaced
453:d2b93cfe8e4c | 454:8d5a9f254dfc |
---|---|
1 /* | |
2 * This C module is a reconstruction based on the disassembly of | |
3 * os_tim.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 "gpfconf.h" /* FreeCalypso addition */ | |
9 #include "../../nucleus/nucleus.h" | |
10 #include "typedefs.h" | |
11 #include "os.h" | |
12 #include "gdi.h" | |
13 #include "os_types.h" | |
14 #include "os_glob.h" | |
15 | |
16 extern UNSIGNED TMD_Timer; | |
17 extern INT TMD_Timer_State; | |
18 | |
19 extern T_OS_TIMER_ENTRY TimerTable[]; | |
20 extern T_OS_TIMER_TABLE_ENTRY *p_list[]; | |
21 | |
22 extern void os_Timeout(unsigned t_handle); | |
23 extern void timer_error(int err); | |
24 | |
25 unsigned os_time_to_tick_multiplier = TIME_TO_TICK_TDMA_FRAME_MULTIPLIER; | |
26 unsigned os_tick_to_time_multiplier = TICK_TO_TIME_TDMA_FRAME_MULTIPLIER; | |
27 | |
28 unsigned t_start_ticks; | |
29 T_OS_TIMER_TABLE_ENTRY *t_running; | |
30 int used_timers; | |
31 int next_t_handle; | |
32 int t_list_access; | |
33 int max_used_timers; | |
34 NU_SEMAPHORE TimSemCB; | |
35 NU_TIMER os_timer_cb; | |
36 | |
37 static int t_info_read; |