comparison nuc-fw/riviera/rvf/rvf_time.c @ 137:5fe5559003b7

RV bring-up: RVT "system time" heartbeat messages now get printed every 20 s! The problem was a slight Nucleus API incompatibility between what the RVF code from TCS211 expected and what our FreeNucleus implements: in the TCS211 version of Nucleus it was OK to pass 0 for the initial_time parameter to NU_Create_Timer(), but our version flags such usage as an error. RVF used 0 as the dummy initial_time value when initializing the legacy RV timers with NU_DISABLE_TIMER. Implemented fix: using a dummy value of 1 instead.
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 11 Nov 2013 09:56:23 +0000
parents e7d4ec9c4c32
children
comparison
equal deleted inserted replaced
136:3b5c3f3646fb 137:5fe5559003b7
224 NU_Create_Timer( &(rvf_Timer[task_num][timer_num]),/* TIMER CONTROL BLOCK*/ 224 NU_Create_Timer( &(rvf_Timer[task_num][timer_num]),/* TIMER CONTROL BLOCK*/
225 "", /* timer name */ 225 "", /* timer name */
226 _rvf_timer_expire, /* expiration routine to call*/ 226 _rvf_timer_expire, /* expiration routine to call*/
227 (task_num * RVF_NUM_TASK_TIMERS) +timer_num, 227 (task_num * RVF_NUM_TASK_TIMERS) +timer_num,
228 /* unique id which enables to find a specific task and a specific timer*/ 228 /* unique id which enables to find a specific task and a specific timer*/
229 0, 229 1,
230 0, 230 0,
231 NU_DISABLE_TIMER); 231 NU_DISABLE_TIMER);
232 } 232 }
233 } 233 }
234 } 234 }