comparison gsm-fw/gpf/osl/os_tim_fl.c @ 481:5639b4fa8672

os_tim_{fl,ir}.c: use TMR_* constant definitions
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 29 Jun 2014 04:06:24 +0000
parents 9cacd09e8ef3
children 9d80090a9e0c
comparison
equal deleted inserted replaced
480:334a3381f569 481:5639b4fa8672
82 next_t_handle = 1; 82 next_t_handle = 1;
83 t_list_access = 0; 83 t_list_access = 0;
84 t_start_ticks = 0; 84 t_start_ticks = 0;
85 p_list[0] = 0; 85 p_list[0] = 0;
86 for (i = 1; i < MaxSimultaneousTimer; i++) { 86 for (i = 1; i < MaxSimultaneousTimer; i++) {
87 TimerTable[i].entry.status = 0; 87 TimerTable[i].entry.status = TMR_FREE;
88 TimerTable[i].entry.next = 0; 88 TimerTable[i].entry.next = 0;
89 TimerTable[i].entry.prev = 0; 89 TimerTable[i].entry.prev = 0;
90 TimerTable[i].next_t_handle = i + 1; 90 TimerTable[i].next_t_handle = i + 1;
91 p_list[i] = 0; 91 p_list[i] = 0;
92 } 92 }
93 TimerTable[MaxSimultaneousTimer].entry.status = 0; 93 TimerTable[MaxSimultaneousTimer].entry.status = TMR_FREE;
94 TimerTable[MaxSimultaneousTimer].next_t_handle = 0; 94 TimerTable[MaxSimultaneousTimer].next_t_handle = 0;
95 t_running = 0; 95 t_running = 0;
96 return(OS_OK); 96 return(OS_OK);
97 } 97 }
98 98