X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fattiny%2Fao_exti.c;h=076cecc1f54d0939ce12be191f98129c257d6e05;hb=5bdb250a43c9e87185f3ddedbd8364f24306bbfd;hp=0ca10ca4385b54976387f2d80e795a9193488c01;hpb=5a55501660ebab3b858a48483c5df1cfb4e858e4;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); }