changeset 456:6e54a3fb01b9

os_tim_fl.c: os_TimerInformation() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Jun 2014 04:53:10 +0000
parents 2081103418e9
children 103b06ef644a
files gsm-fw/gpf/osl/os_tim_fl.c
diffstat 1 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_tim_fl.c	Mon Jun 23 04:44:10 2014 +0000
+++ b/gsm-fw/gpf/osl/os_tim_fl.c	Mon Jun 23 04:53:10 2014 +0000
@@ -34,8 +34,6 @@
 NU_SEMAPHORE TimSemCB;
 NU_TIMER os_timer_cb;
 
-static int t_info_read;
-
 GLOBAL LONG
 os_set_tick(int os_system_tick)
 {
@@ -52,3 +50,18 @@
 		return(OS_ERROR);
 	}
 }
+
+GLOBAL LONG
+os_TimerInformation(USHORT Index, char *Buffer)
+{
+	static int t_info_read;
+
+	if (t_info_read) {
+		t_info_read = 0;
+		return(OS_ERROR);
+	}
+	sprintf(Buffer, "Maximum %d of %d available timers running",
+		max_used_timers, MaxSimultaneousTimer);
+	t_info_read = 1;
+	return(OS_OK);
+}