X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fattiny%2Fao_exti.h;h=1d1426e9d9bac47fa67da04bbb886ef6e9346f3c;hb=28c389c08a37010fdbb26e9923d16c3204862e67;hp=85bb2fbabc939eb39b3ad0e31205f287668a6dff;hpb=27e9b93f3d35890a49575b2ead1983ce3c2fc213;p=fw%2Faltos diff --git a/src/attiny/ao_exti.h b/src/attiny/ao_exti.h index 85bb2fba..1d1426e9 100644 --- a/src/attiny/ao_exti.h +++ b/src/attiny/ao_exti.h @@ -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 @@ -25,7 +26,7 @@ ao_exti_setup_port(uint8_t pin, uint8_t mode, void (*callback)(void)); #define ao_exti_enable(gpio, pin) (PCMSK |= (1 << (pin))) -#define ao_exti_disable(gpio, pin) (PCMSK &= ~(1 << (pin))) +#define ao_exti_disable(gpio, pin) (PCMSK &= (uint8_t) ~(1 << (pin))) #define ao_exti_init()