X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Flpc%2Fao_exti.h;h=226979bc36c3c83755bb63920adf672bd1b9f065;hb=6aeb000899ad7f22e92b487b5891664554bc4d33;hp=cbe63eaae8c5c9a801af2d63d700a41cb94e3203;hpb=f5218e2544dcb659aec6c3adee50d61cab1bba3a;p=fw%2Faltos diff --git a/src/lpc/ao_exti.h b/src/lpc/ao_exti.h index cbe63eaa..226979bc 100644 --- a/src/lpc/ao_exti.h +++ b/src/lpc/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,15 +26,16 @@ #define AO_EXTI_PRIORITY_LOW 16 #define AO_EXTI_PRIORITY_MED 0 #define AO_EXTI_PRIORITY_HIGH 32 +#define AO_EXTI_PIN_NOCONFIGURE 64 void -ao_exti_setup(uint8_t gpio, uint8_t pin, uint8_t mode, void (*callback)()); +ao_exti_setup(uint8_t gpio, uint8_t pin, uint8_t mode, void (*callback)(void)); void ao_exti_set_mode(uint8_t gpio, uint8_t pin, uint8_t mode); void -ao_exti_set_callback(uint8_t gpio, uint8_t pin, void (*callback)()); +ao_exti_set_callback(uint8_t gpio, uint8_t pin, void (*callback)(void)); void ao_exti_enable(uint8_t gpio, uint8_t pin);