Hello.
I'm trying to get the current time in  a TmoteSky mote.  I 'm  using the
following code in TinyOS2. I just can 't get it to compile; it gives me the
error below;  any ideas?:

In component `TestLocalAppC':
TestLocalAppC.nc:16: no match
make: *** [exe0] Error 1

My two short files:


TestLocalC.nc
------------------------

#include "Timer.h"

module TestLocalC {
        uses {
                interface Boot;
                interface Timer<TMilli> as Timer0;
                interface LocalTime<TMicro> as LocalTime;
        }
}

implementation {
        uint32_t a;
        event void Boot.booted() {
                call Timer0.startPeriodic(100);
        }

        event void Timer0.fired(){
                a= call LocalTime.get();
        }


TestLocalAppC.nc
-----------------------------

#include "Timer.h"

configuration TestLocalAppC {
}


implementation {
        components MainC;
        components TestLocalC as App;

        components new TimerMilliC() as Timer0;
        components new CounterToLocalTimeC(TMicro) as CounterLocal;
        components Msp430CounterMicroC;

        App.LocalTime -> CounterLocal;
        CounterLocal.Counter -> Msp430CounterMicroC; //Line 16
        App.Boot -> MainC;
        App.Timer0 -> Timer0;
}


Thank you for the input!

-
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to