esp-iot-solution icon indicating copy to clipboard operation
esp-iot-solution copied to clipboard

EK79007 driver chained designators not compatible with C++ (AEGHB-956)

Open sssata opened this issue 10 months ago • 1 comments

Answers checklist.

  • [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • [X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.3.1

Espressif SoC revision.

ESP32-P4

Operating System used.

macOS

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Development Kit.

ESP32-P4-Function-EV-Board

Steps to reproduce.

  1. Create project from example
  2. Change project main file to .cpp
  3. Include the espressif/esp_lcd_ek79007 idf dependancy
  4. Add code from the example in the dependancy
  5. Build

The build fails when invoking EK79007_1024_600_PANEL_60HZ_CONFIG(). Should be fixable by un-nesting this line.

Build Logs.

No response

More Information.

No response

sssata avatar Jan 15 '25 19:01 sssata

Hi, @sssata . C++ does not fully support this C-specific initialisation syntax. You can follow follow this EK79007_1024_600_PANEL_60HZ_CONFIG to expand initialise each item in esp_lcd_dpi_panel_config_t separately.

YanKE01 avatar Jan 23 '25 06:01 YanKE01