FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/gpf/osl/os_tim_fl.c @ 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 |
comparison
equal
deleted
inserted
replaced
455:2081103418e9 | 456:6e54a3fb01b9 |
---|---|
32 int t_list_access; | 32 int t_list_access; |
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; | |
38 | |
39 GLOBAL LONG | 37 GLOBAL LONG |
40 os_set_tick(int os_system_tick) | 38 os_set_tick(int os_system_tick) |
41 { | 39 { |
42 switch (os_system_tick) { | 40 switch (os_system_tick) { |
43 case SYSTEM_TICK_TDMA_FRAME: | 41 case SYSTEM_TICK_TDMA_FRAME: |
50 return(OS_OK); | 48 return(OS_OK); |
51 default: | 49 default: |
52 return(OS_ERROR); | 50 return(OS_ERROR); |
53 } | 51 } |
54 } | 52 } |
53 | |
54 GLOBAL LONG | |
55 os_TimerInformation(USHORT Index, char *Buffer) | |
56 { | |
57 static int t_info_read; | |
58 | |
59 if (t_info_read) { | |
60 t_info_read = 0; | |
61 return(OS_ERROR); | |
62 } | |
63 sprintf(Buffer, "Maximum %d of %d available timers running", | |
64 max_used_timers, MaxSimultaneousTimer); | |
65 t_info_read = 1; | |
66 return(OS_OK); | |
67 } |