Postby htjgdw » Thu Feb 04, 2016 4:30 pm
Hi,
I add driver line in Makefile follow your advice, and copy driver folder(copy from driver_lib/) into projet_template/, and copy driver header file into project_template/include/
Currently, a new error occur as following.
hw_timer.c: In function 'hw_timer_init':
hw_timer.c:79:5: error: passing argument 2 of '_xt_isr_attach' from incompatible pointer type [-Werror]
_xt_isr_attach(ETS_FRC_TIMER1_INUM, hw_timer_isr_cb, NULL);
^
In file included from /home/hw/esp_8266/ESP8266_RTOS_SDK_1.3.0/include/freertos/portable.h:318:0,
from /home/hw/esp_8266/ESP8266_RTOS_SDK_1.3.0/include/freertos/FreeRTOS.h:87,
from /home/hw/esp_8266/ESP8266_RTOS_SDK_1.3.0/include/spiffs/spiffs_config.h:18,
from /home/hw/esp_8266/ESP8266_RTOS_SDK_1.3.0/include/spiffs/spiffs.h:16,
from /home/hw/esp_8266/ESP8266_RTOS_SDK_1.3.0/include/espressif/esp_spiffs.h:28,
from /home/hw/esp_8266/ESP8266_RTOS_SDK_1.3.0/include/espressif/esp_common.h:102,
from hw_timer.c:25:
/home/hw/esp_8266/ESP8266_RTOS_SDK_1.3.0/include/freertos/portmacro.h:186:13: note: expected '_xt_isr' but argument is of type 'void (*)(void)'
void _xt_isr_attach (uint8 i, _xt_isr func, void *arg);
^
cc1: all warnings being treated as errors
make[1]: *** [.output/eagle/debug/obj/hw_timer.o] 错误 1
make[1]:正在离开目录 `/home/hw/esp_8266/ESP8266_RTOS_SDK_1.3.0/examples/project_template/driver'
make: *** [.subdirs] 错误 2