From: Mikko Rasa Date: Wed, 23 Oct 2013 18:06:18 +0000 (+0300) Subject: Move output to a higher priority timer X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=24b07fc36c607d726cce7bfd8574cf2cb66715dc;p=model-railway-devices.git Move output to a higher priority timer --- diff --git a/arducontrol/output.c b/arducontrol/output.c index f961a43..b862ac3 100644 --- a/arducontrol/output.c +++ b/arducontrol/output.c @@ -18,7 +18,7 @@ void output_init(void) DDRD = (DDRD&0xF3)|0x0C; PORTD &= ~BIT(ENABLE); - timer_start_hz(0, 80000, 1); + timer_start_hz(2, 80000, 1); } void clear_packet(void) @@ -106,4 +106,4 @@ static inline void output_tick(void) } } -TIMER_SET_CALLBACK(0, output_tick) +TIMER_SET_CALLBACK(2, output_tick)