# HG changeset patch # User Michael Spacefalcon # Date 1403499190 0 # Node ID 6e54a3fb01b9a73a63e657156a93c20266620bee # Parent 2081103418e93af437f69718648e846d9a0de339 os_tim_fl.c: os_TimerInformation() done diff -r 2081103418e9 -r 6e54a3fb01b9 gsm-fw/gpf/osl/os_tim_fl.c --- 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); +}