GPIO error

awaisahmed
Posts: 20
Joined: Sat May 12, 2018 5:02 pm

GPIO error

Postby awaisahmed » Mon Aug 06, 2018 1:24 pm

Hi,

code:
gpio_config_t gpio_conf = {
// disable interrupt
.intr_type = GPIO_PIN_INTR_DISABLE,
//set as output mode
.mode = GPIO_MODE_OUTPUT,
//bit mask of the pins that you want to set,e.g.GPIO18/19
.pin_bit_mask = (1 << GPIO_OUTPUT),
//disable pull-down mode
.pull_down_en = 0,
//disable pull-up mode
.pull_up_en = 0
};

i am facing the following error

Symbol 'GPIO_PIN_INTR_DISABLE' could not be resolved fft.c /esp32-fft/main line 40 Semantic Error

does anyone knows how to resolve it ?

ESP_Sprite
Posts: 9050
Joined: Thu Nov 26, 2015 4:08 am

Re: GPIO error

Postby ESP_Sprite » Tue Aug 07, 2018 3:29 am

That is defined in rom/gpio.h; did you #include that file (or driver/gpio.h, which includes it as well)?

Who is online

Users browsing this forum: No registered users and 224 guests