Page 1 of 1

GPIO error

Posted: Mon Aug 06, 2018 1:24 pm
by awaisahmed
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 ?

Re: GPIO error

Posted: Tue Aug 07, 2018 3:29 am
by ESP_Sprite
That is defined in rom/gpio.h; did you #include that file (or driver/gpio.h, which includes it as well)?