X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fattiny%2Fao_exti.c;h=076cecc1f54d0939ce12be191f98129c257d6e05;hb=05839dccf5afa431d93ae6124ab8b76f09bf6b54;hp=0ca10ca4385b54976387f2d80e795a9193488c01;hpb=64500ab11ab76d2309608f8e02a1dd9658963b3e;p=fw%2Faltos diff --git a/src/attiny/ao_exti.c b/src/attiny/ao_exti.c index 0ca10ca4..076cecc1 100644 --- a/src/attiny/ao_exti.c +++ b/src/attiny/ao_exti.c @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -30,8 +31,9 @@ ISR(PCINT0_vect) void ao_exti_setup_port(uint8_t pin, uint8_t mode, void (*callback)(void)) { + (void) mode; pcint_callback = callback; - pcint_mask = (1 << pin); + pcint_mask = (uint8_t) (1 << pin); ao_exti_disable(PORTB, pin); GIMSK |= (1 << PCIE); }