]> git.tdb.fi Git - model-railway-devices.git/commitdiff
Move output to a higher priority timer
authorMikko Rasa <tdb@tdb.fi>
Wed, 23 Oct 2013 18:06:18 +0000 (21:06 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 23 Oct 2013 18:06:18 +0000 (21:06 +0300)
arducontrol/output.c

index f961a436b99c2d24bf9d73255fe0a951d30df37c..b862ac3f75520c9051fddb90961c511436448e61 100644 (file)
@@ -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)