Skip to content

Arduino 3.0.0 alpha1 missing entries for gpio_intr_enable and gpio_intr_disable #8737

Closed
@tonhuisman

Description

@tonhuisman

Board

ESP32 any

Device Description

Any ESP32 build using Arduino 3.0.0 aplha1 framework that uses gpio_intr_enable and/or gpio_intr_disable entries.

Hardware Configuration

d/c

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Windows 11

Flash frequency

default

PSRAM enabled

yes

Upload speed

115200

Description

Trying to update the IRremoteESP8266 library to use Arduino 3.0/IDF 5.1, but this doesn't compile for missing the entries gpio_intr_enable and gpio_intr_disable.
These entries are still available in the Arduino 2.0.14 release, and I'd expect them to be in the 3.0 release too. Or a properly documented alternative (though that's less desirable).

It is suggested to use esp_intr_enable and esp_intr_disable as an alternative, but that has a different signature, so not really usable.

Sketch

#if defined(ESP32)
  gpio_intr_disable((gpio_num_t)params.recvpin);
#endif  // ESP32

Debug Message

src/IRrecv.cpp:434:3: error: 'gpio_intr_disable' was not declared in this scope; did you mean 'esp_intr_disable'?
  434 |   gpio_intr_disable((gpio_num_t)params.recvpin);
      |   ^~~~~~~~~~~~~~~~~
      |   esp_intr_disable

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0 migrationissue relates to migration from 2.X to 3.X versionType: QuestionOnly question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions