changeset 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
files gsm-fw/gpf/osl/os_tim_fl.c
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_tim_fl.c	Mon Jun 23 04:20:09 2014 +0000
+++ b/gsm-fw/gpf/osl/os_tim_fl.c	Mon Jun 23 04:44:10 2014 +0000
@@ -35,3 +35,20 @@
 NU_TIMER os_timer_cb;
 
 static int t_info_read;
+
+GLOBAL LONG
+os_set_tick(int os_system_tick)
+{
+	switch (os_system_tick) {
+	case SYSTEM_TICK_TDMA_FRAME:
+		os_time_to_tick_multiplier = TIME_TO_TICK_TDMA_FRAME_MULTIPLIER;
+		os_tick_to_time_multiplier = TICK_TO_TIME_TDMA_FRAME_MULTIPLIER;
+		return(OS_OK);
+	case SYSTEM_TICK_10_MS:
+		os_time_to_tick_multiplier = TIME_TO_TICK_10MS_MULTIPLIER;
+		os_tick_to_time_multiplier = TICK_TO_TIME_10MS_MULTIPLIER;
+		return(OS_OK);
+	default:
+		return(OS_ERROR);
+	}
+}