I´m using the NONOS_SDK 3.0. When I want to register a ISR for GPIO interrups, I get this error message:
###############################
user_main.c: In function 'user_init':
user_main.c:124:2: error: passing argument 2 of 'ets_isr_attach' from incompatible pointer type [-Werror]
ETS_GPIO_INTR_ATTACH(I2C_Slave_ISR, NULL);
^
In file included from ../../include/os_type.h:28:0,
from ../../include/osapi.h:29,
from user_main.c:26:
../../include/ets_sys.h:67:6: note: expected 'ets_isr_t' but argument is of type 'void (*)(void)'
void ets_isr_attach(int i, ets_isr_t func, void *arg);
^
cc1: all warnings being treated as errors
make[1]: *** [.output/eagle/debug/obj/user_main.o] Error 1
make[1]: Leaving directory `/mnt/Share/ESP8266_NONOS_SDK-3.0/he_i2c_slave/user'
make: *** [.subdirs] Error 2
###############################
What could be wrong? What else must be done, that the compiler can recognize the expected 'ets_isr_t' in "etc_sys.h"?
Thank you for your support
Henry