Hi ! I've used the following two components: Alarm32khz32C() (as Alarm32k) AlarmToTimerC(T32khz) (as AlarmToTimer) You need these interfaces: Timer<T32khz> InitAnd wirings: ExampleC.Timer -> AlarmToTimer;ExampleC.Init -> Alarm32k;AlarmToTimer.Alarm -> Alarm32k;To start the alarm (and consequently the timer) you can use "call Init.init();" Afterwards, you can use e.g. "call Timer.startPeriodic(3000U);"
----- Mensaje original ----- De: ranal fernando <[email protected]> Fecha: Jueves, Agosto 19, 2010 10:58 pm Asunto: [Tinyos-help] Timer A: [email protected] > > hi all, > > is there a way to use Timer interface with T32khz > precision? i tried it with TMilliC it gave some > errors. i think TMilliC is only for TMilli precision > > is there another component that i need to wire to use > T32khz precision? used VirtualizeTimerC but did not work. > > thanks > > > ranal > ╔══════════════════════════════════════╗ ║ José A. Tarifa Galisteo ║ ║ Estudiante Ingeniería de Telecomunicación ║ Escuela Superior de Ingenieros - U. Sevilla ║ http://alumno.us.es/j/jostargal/ ╚══════════════════════════════════════╝
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
