changeset 460:9cacd09e8ef3

OSL: os_tim_fl.c done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Jun 2014 07:03:19 +0000
parents 38afaeb194ea
children 7017da4978bb
files gsm-fw/gpf/osl/os_tim_fl.c
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_tim_fl.c	Mon Jun 23 06:54:40 2014 +0000
+++ b/gsm-fw/gpf/osl/os_tim_fl.c	Mon Jun 23 07:03:19 2014 +0000
@@ -153,3 +153,21 @@
 	t_list_access = 0;
 	return(OS_OK);
 }
+
+GLOBAL LONG
+os_InactivityTicks(int *next_event, OS_TICK *next_event_ticks)
+{
+	*next_event = 1;
+	switch (TMD_Timer_State) {
+	case TM_ACTIVE:
+		*next_event_ticks = TMD_Timer;
+		return(OS_OK);
+	case TM_NOT_ACTIVE:
+		*next_event_ticks = 0;
+		*next_event = 0;
+		return(OS_OK);
+	default:
+		*next_event_ticks = 0;
+		return(OS_OK);
+	}
+}