Kernel pannic occur for any of input only pins: 34, 35, SENSOR_VP, SENSOR_VN
Code: Select all
gpio_config_t io_conf;
io_conf.pin_bit_mask = (1ULL << PIN_NUM_ADC_DRDY);
io_conf.intr_type = GPIO_INTR_LOW_LEVEL;
io_conf.mode = GPIO_MODE_INPUT;
io_conf.pull_down_en = GPIO_PULLDOWN_DISABLE;
io_conf.pull_up_en = GPIO_PULLUP_ENABLE;
gpio_config(&io_conf);
drdy_semaphore = xSemaphoreCreateBinary();
gpio_install_isr_service(ESP_INTR_FLAG_IRAM);
gpio_isr_handler_add(PIN_NUM_ADC_DRDY, drdy_isr_handler, NULL);