gpio.h conflict

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

gpio.h conflict

Postby brp80000 » Thu Nov 22, 2018 3:13 pm

In my program, I get conflict between
1...\esp\esp-idf\components\driver\include\driver\gpio.h
2...\esp\esp-idf\components\esp32\include\rom\gpio.h

gpio_set_direction - described in 1
gpio_matrix_in - described in 2
gpio_pad_select_gpio - described in 2

two of the same header with different content do not work together. Where's my error I don't understand?

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: gpio.h conflict

Postby brp80000 » Thu Nov 22, 2018 3:16 pm

inside
1...\esp\esp-idf\components\driver\include\driver\gpio.h
we have
#include "rom/gpio.h" to
2...\esp\esp-idf\components\esp32\include\rom\gpio.h

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: gpio.h conflict

Postby brp80000 » Fri Nov 23, 2018 6:56 pm

I've been sitting here all day, Eclipse is annoying. Helped "project" > "C/C++ indexes" > rebuild

Who is online

Users browsing this forum: Baidu [Spider] and 115 guests