]> www.fi.muni.cz Git - bike-lights.git/commitdiff
gpio: port A/B fix
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 30 Sep 2012 20:21:29 +0000 (22:21 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 30 Sep 2012 20:21:29 +0000 (22:21 +0200)
firmware/gpio.c

index d759b1883f114d2ed9fbae96a8e016ac4b689ca5..d1efaaa0333315ac1a7e5d1e1cac91d6d1b2ff13 100644 (file)
@@ -8,7 +8,7 @@ void gpio_init()
        PORTB &=~ (_BV(PB0) | _BV(PB2));
 
        DDRA |=    _BV(PA3) | _BV(PA4);     // LED6, LED7
-       PORTB &=~ (_BV(PA3) | _BV(PA4));
+       PORTA &=~ (_BV(PA3) | _BV(PA4));
 
        gpio_set(1, 1);
 }