Statistics: Posted by ESP_Faye — Thu Mar 24, 2016 5:17 pm
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/* .
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 = \
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();
/*
Statistics: Posted by lorinliu — Thu Mar 24, 2016 11:42 am
Statistics: Posted by ESP_Faye — Wed Oct 28, 2015 10:44 am
Statistics: Posted by ESP_Faye — Mon Oct 26, 2015 3:20 pm
Statistics: Posted by dmarkey — Fri Oct 23, 2015 6:32 am