It seems there is no NmiTimSetFunc(func).
Kindly look the bellow error and let me know of header files which I need to point NmiTimSetFunc.
I am getting bellow error
Code: Select all
CLEAN SUCCESSFUL (total time: 4s)
C+ app/application.cpp
C+ app/hw_timer.cpp
In file included from c:/tools/Sming/Sming/system/include/esp_systemapi.h:6:0,
from include/user_config.h:29,
from app/hw_timer.cpp:1:
app/hw_timer.cpp: In function 'void hw_timer_init(FRC1_TIMER_SOURCE_TYPE, u8)':
c:/Espressif/ESP8266_SDK/include/ets_sys.h:55:20: error: 'NmiTimSetFunc' was not declared in this scope
NmiTimSetFunc(func)
^
app/hw_timer.cpp:65:9: note: in expansion of macro 'ETS_FRC_TIMER1_NMI_INTR_ATTACH'
ETS_FRC_TIMER1_NMI_INTR_ATTACH(hw_timer_isr_cb);
^
c:/Espressif/ESP8266_SDK/include/ets_sys.h:52:62: error: invalid conversion from 'void (*)()' to 'void*' [-fpermissive]
ets_isr_attach(ETS_FRC_TIMER1_INUM, (func), (void *)(arg))
^
app/hw_timer.cpp:67:9: note: in expansion of macro 'ETS_FRC_TIMER1_INTR_ATTACH'
ETS_FRC_TIMER1_INTR_ATTACH(hw_timer_isr_cb, NULL);
^
In file included from include/user_config.h:29:0,
from app/hw_timer.cpp:1:
c:/tools/Sming/Sming/system/include/esp_systemapi.h:46:13: error: initializing argument 2 of 'void ets_isr_attach(int, void*, void*)' [-fpermissive]
extern void ets_isr_attach(int intr, void *handler, void *arg);
^
make.exe": *** [out/build/app/hw_timer.o] Error 1
BUILD FAILED (exit value 2, total time: 9s)