Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error with digitalPinCanOutput(pin) After Update from 2.0.14 to 3.0.3 #10049

Closed
1 task done
sepp89117 opened this issue Jul 19, 2024 · 0 comments · Fixed by #10070
Closed
1 task done

Compilation Error with digitalPinCanOutput(pin) After Update from 2.0.14 to 3.0.3 #10049

sepp89117 opened this issue Jul 19, 2024 · 0 comments · Fixed by #10070
Assignees
Labels
Area: Peripherals API Relates to peripheral's APIs. Status: In Progress Issue is in progress

Comments

@sepp89117
Copy link

sepp89117 commented Jul 19, 2024

Board

OLIMEX ESP32-PoE-ISO

Device Description

irrelevant

Hardware Configuration

irrelevant

Version

v3.0.3

IDE Name

Arduino IDE 2.3.2

Operating System

Windows 10

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

921600

Description

Hello,

After updating from version 2.0.14 to 3.0.3 of the Arduino-ESP32 library, I encountered a compilation error when using the function digitalPinCanOutput(pin).

The error message is as follows:


...\Arduino15\packages\esp32\hardware\esp32\3.0.3\cores\esp32/esp32-hal-gpio.h:68:34: error: 'GPIO_IS_VALID_OUTPUT_GPIO' was not declared in this scope
   68 | #define digitalPinCanOutput(pin) GPIO_IS_VALID_OUTPUT_GPIO(pin)
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~

It appears that GPIO_IS_VALID_OUTPUT_GPIO is not declared in the scope, which causes the compilation to fail.

Sketch

bool canOutput = digitalPinCanOutput(0);

Debug Message

irrelevant

Other Steps to Reproduce

It still worked with version 2.0.14.

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

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

Edit

I was able to get around the problem by including "driver/gpio.h" in the first line of my sketch.

@sepp89117 sepp89117 added the Status: Awaiting triage Issue is waiting for triage label Jul 19, 2024
@P-R-O-C-H-Y P-R-O-C-H-Y added Status: In Progress Issue is in progress Area: Peripherals API Relates to peripheral's APIs. and removed Status: Awaiting triage Issue is waiting for triage labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Peripherals API Relates to peripheral's APIs. Status: In Progress Issue is in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants