ESP8266 Developer Zone The Official ESP8266 Forum 2016-03-24T17:17:03+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1271 2016-03-24T17:17:03+08:00 2016-03-24T17:17:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1271&p=6209#p6209 <![CDATA[Re: hw_timer.c does not compile]]>
Please download it from github again, we have already updated it https://github.com/espressif/ESP8266_RTOS_SDK.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Thu Mar 24, 2016 5:17 pm


]]>
2016-03-24T11:42:27+08:00 2016-03-24T11:42:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1271&p=6205#p6205 <![CDATA[Re: hw_timer.c does not compile]]>
Below is my patch for this issue.

1. copy driver and header files into project_template folder.

Code:

$ cd ~/project_template
$ cp -raf <ESP8266_RTOS_SDK_V1.4.0>/examples/driver_lib/driver .
$ cp -raf <ESP8266_RTOS_SDK_V1.4.0>/examples/driver_lib/include/* .

2. add driver to be compiled in Makefile

Code:

--- project_template/Makefile   2016-03-24 11:05:24.547352907 +0800
+++ ESP8266_RTOS_SDK_V1.4.0/examples/project_template/Makefile   2016-02-29 18:50:38.000000000 +0800
@@ -23,7 +23,6 @@
 SPECIAL_MKTARGETS=$(APP_MKTARGETS)
 SUBDIRS=    \
    user    \
-   driver   \
    sample_lib
 
 endif # } PDIR
@@ -48,7 +47,6 @@
 
 COMPONENTS_eagle.app.v6 = \
    user/libuser.a  \
-   driver/libdriver.a   \
    sample_lib/libsample.a
 
 LINKFLAGS_eagle.app.v6 = \

3. fix compile error issue according to following patch

Code:

diff -ruNa a/examples/driver_lib/driver/hw_timer.c b/examples/driver_lib/driver/hw_timer.c
--- a/examples/driver_lib/driver/hw_timer.c   2016-03-24 11:00:17.040841331 +0800
+++ b/examples/driver_lib/driver/hw_timer.c   2016-02-29 18:50:38.000000000 +0800
@@ -76,7 +76,7 @@
                       DIVDED_BY_16 | FRC1_ENABLE_TIMER | TM_EDGE_INT);
     }
 
-    _xt_isr_attach(ETS_FRC_TIMER1_INUM, (void *)hw_timer_isr_cb, NULL);
+    _xt_isr_attach(ETS_FRC_TIMER1_INUM, hw_timer_isr_cb, NULL);
 
     TM1_EDGE_INT_ENABLE();
     _xt_isr_unmask(1 << ETS_FRC_TIMER1_INUM);
diff -ruNa a/examples/driver_lib/driver/uart.c b/examples/driver_lib/driver/uart.c
--- a/examples/driver_lib/driver/uart.c       2016-03-24 11:02:23.664113631 +0800
+++ b/examples/driver_lib/driver/uart.c       2016-02-29 18:50:38.000000000 +0800
@@ -421,7 +421,7 @@
     UART_IntrConfig(UART0, &uart_intr);
 
     UART_SetPrintPort(UART0);
-    UART_intr_handler_register(uart0_rx_intr_handler, NULL);
+    UART_intr_handler_register(uart0_rx_intr_handler);
     ETS_UART_INTR_ENABLE();
 
     /*


ESP8266_RTOS_SDK is not professional, not any framework as a SDK, and it's hard to use...maybe you need some experts about embedded software.

Statistics: Posted by lorinliu — Thu Mar 24, 2016 11:42 am


]]>
2015-10-28T10:44:11+08:00 2015-10-28T10:44:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1271&p=4329#p4329 <![CDATA[Re: hw_timer.c does not compile]]>
I tried to compile the hw_timer.c in ESP8266_NONOS_SDK, it can compile successfully.

Could you provide your test code, and we will have a try ?

Statistics: Posted by ESP_Faye — Wed Oct 28, 2015 10:44 am


]]>
2015-10-27T20:00:59+08:00 2015-10-27T20:00:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1271&p=4313#p4313 <![CDATA[Re: hw_timer.c does not compile]]> Statistics: Posted by dmarkey — Tue Oct 27, 2015 8:00 pm


]]>
2015-10-26T15:20:01+08:00 2015-10-26T15:20:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1271&p=4269#p4269 <![CDATA[Re: hw_timer.c does not compile]]>
Could you provide your test code ?

We will have a try.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Mon Oct 26, 2015 3:20 pm


]]>
2015-10-23T06:32:04+08:00 2015-10-23T06:32:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1271&p=4244#p4244 <![CDATA[hw_timer.c does not compile]]> NmiTimSetFunc(func)
^
app/application.cpp:93:9: note: in expansion of macro 'ETS_FRC_TIMER1_NMI_INTR_ATTACH'
ETS_FRC_TIMER1_NMI_INTR_ATTACH(hw_timer_isr_cb);
^
/Volumes/esp-open-sdk/esp-open-sdk/sdk/include/ets_sys.h:52:62: error: invalid conversion from 'void (*)()' to 'void*' [-fpermissive]

Statistics: Posted by dmarkey — Fri Oct 23, 2015 6:32 am


]]>