,when I come to compile it with CMake it gives me the following error:
I have defined the INCLUDE_DIRS "." in IDF component register in CMakeLists.txt and added button_funcs.c to SRCS if that matters.c:/coding/esp32/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(main.c.obj):(.literal.displayRoutine+0x4c): undefined reference to `TimerTickQ'
What am I doing wrong? isn't that how you suppose to use extern variables? how'd one make it work?