changeset 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 3b5c3f3646fb
children 85994b210f6a
files nuc-fw/finlink/Makefile nuc-fw/riviera/rvf/rvf_time.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/nuc-fw/finlink/Makefile	Mon Nov 04 23:35:11 2013 +0000
+++ b/nuc-fw/finlink/Makefile	Mon Nov 11 09:56:23 2013 +0000
@@ -9,8 +9,8 @@
 LIBGCC_A=	`${CC} -print-file-name=libgcc.a -mthumb-interwork`
 LIBGCC_T=	`${CC} -print-file-name=libgcc.a -mthumb-interwork -mthumb`
 
-LOCAL_LIBS=	../riviera/librv.a ../sprintf/libsprintf.a \
-		../nucleus/libplus.xip.a ../nucleus/libplus.iram.a
+LOCAL_LIBS=	../riviera/librv.a ../nucleus/libplus.xip.a \
+		../nucleus/libplus.iram.a ../sprintf/libsprintf.a
 
 INT_PIECES=	../bsp/niq32.o
 EXT_PIECES=	../bsp/xipcode.o ../serial/xipcode.o ../sysglue/xipcode.o
--- a/nuc-fw/riviera/rvf/rvf_time.c	Mon Nov 04 23:35:11 2013 +0000
+++ b/nuc-fw/riviera/rvf/rvf_time.c	Mon Nov 11 09:56:23 2013 +0000
@@ -226,7 +226,7 @@
 								_rvf_timer_expire, /* expiration routine to call*/					
 								(task_num * RVF_NUM_TASK_TIMERS) +timer_num,
 								/* unique id which enables to find a specific task and a specific timer*/
-								0,
+								1,
 								0,
 								NU_DISABLE_TIMER);
 		}