ESP8266 Developer Zone The Official ESP8266 Forum 2016-12-12T12:35:17+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=3137 2016-12-12T12:35:17+08:00 2016-12-12T12:35:17+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3137&p=10874#p10874 <![CDATA[Re: Compilation Errors RTOS v1.50 driver_lib]]> When you compile your program, say from the examples directory, by including a header file from driver library, things will compile automatically as the main program makefile will include relevant paths and critical SDK paths.

Statistics: Posted by Guest — Mon Dec 12, 2016 12:35 pm


]]>
2016-12-11T22:04:00+08:00 2016-12-11T22:04:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3137&p=10871#p10871 <![CDATA[Re: Compilation Errors RTOS v1.50 driver_lib]]>
I had to remove i2c_master.c itself to go part this error.... Have posted in a new thread also.

Lets see if someone answers !!!!

Statistics: Posted by dashy81 — Sun Dec 11, 2016 10:04 pm


]]>
2016-11-26T05:25:28+08:00 2016-11-26T05:25:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3137&p=10673#p10673 <![CDATA[Compilation Errors RTOS v1.50 driver_lib]]>
I have just tried to compile the driver lib in the new RTOS v 1.5.0.

cd ~/ESP8266_RTOS_SDK/driver_lib
./make_lib.sh driver

First Error

Code:

In file included from i2c_master.c:13:0:
i2c_master.c: In function 'i2c_master_getDC':
../include/gpio.h:193:66: error: 'BIT0' undeclared (first use in this function)
 #define GPIO_INPUT_GET(gpio_no)     ((gpio_input_get()>>gpio_no)&BIT0)


Second Error

Code:

In file included from ../include/i2c_master.h:4:0,
                 from i2c_master.c:15:
i2c_master.c: In function 'i2c_master_gpio_init':
/home/densha/ESP8266_RTOS_SDK/include/espressif/esp8266/pin_mux_register.h:149:47: error: 'BIT2' undeclared (first use in this function)
         SET_PERI_REG_MASK(PIN_NAME, (((FUNC & BIT2) << 2) | (FUNC & 0x3)) << PERIPHS_IO_MUX_FUNC_S); \


Has anyone successfully been able to compile the driver_lib?

Could you share the updates required to compile the driver lib in RTOS v1.5.0

Thanks

Densha

Statistics: Posted by densha — Sat Nov 26, 2016 5:25 am


]]>