Compilation Errors RTOS v1.50 driver_lib

densha
Posts: 1
Joined: Sat Nov 26, 2016 5:17 am

Compilation Errors RTOS v1.50 driver_lib

Postby densha » Sat Nov 26, 2016 5:25 am

Hi Forum,

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: Select all

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: Select all

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

dashy81
Posts: 2
Joined: Fri Dec 02, 2016 2:46 pm

Re: Compilation Errors RTOS v1.50 driver_lib

Postby dashy81 » Sun Dec 11, 2016 10:04 pm

I too am getting the same error after 1 month... looks like no one paying attention to this error.

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 !!!!

pratik

Re: Compilation Errors RTOS v1.50 driver_lib

Postby pratik » Mon Dec 12, 2016 12:35 pm

May I know why you are interested in independently compiling the driver library?
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.

Who is online

Users browsing this forum: No registered users and 4 guests