I'm having troubles using timer. I wrote something like this
command result_t StdControl.init() { call Leds.init(); return SUCCESS; } command result_t StdControl.start() { outp(0x00, TCCR3A); // no waveform or output toggle outp(0x20, TCCR3B); // clk / 8 --> 1 tick = 1usec outp(0x00, TCNT3); // initial value outp(0xC3, OCR3AH); // 0xC350 = 50000 ticks = 50ms outp(0x50, OCR3AL); sbi(ETIMSK,OCIE3A); // enable output compare timer return SUCCESS; } command result_t StdControl.stop() { return SUCCESS; } TOSH_INTERRUPT(SIG_OUTPUT_COMPARE3A) { call Leds.redOn(); // some code } but I can't see the timer switching on the red led. where is the problem ? thanbks
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help