comparison gsm-fw/gpf/osl/os_tim_fl.c @ 455:2081103418e9

os_tim_fl.c: os_set_tick() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Jun 2014 04:44:10 +0000
parents 8d5a9f254dfc
children 6e54a3fb01b9
comparison
equal deleted inserted replaced
454:8d5a9f254dfc 455:2081103418e9
33 int max_used_timers; 33 int max_used_timers;
34 NU_SEMAPHORE TimSemCB; 34 NU_SEMAPHORE TimSemCB;
35 NU_TIMER os_timer_cb; 35 NU_TIMER os_timer_cb;
36 36
37 static int t_info_read; 37 static int t_info_read;
38
39 GLOBAL LONG
40 os_set_tick(int os_system_tick)
41 {
42 switch (os_system_tick) {
43 case SYSTEM_TICK_TDMA_FRAME:
44 os_time_to_tick_multiplier = TIME_TO_TICK_TDMA_FRAME_MULTIPLIER;
45 os_tick_to_time_multiplier = TICK_TO_TIME_TDMA_FRAME_MULTIPLIER;
46 return(OS_OK);
47 case SYSTEM_TICK_10_MS:
48 os_time_to_tick_multiplier = TIME_TO_TICK_10MS_MULTIPLIER;
49 os_tick_to_time_multiplier = TICK_TO_TIME_10MS_MULTIPLIER;
50 return(OS_OK);
51 default:
52 return(OS_ERROR);
53 }
54 }