Skip to content

Missing definition of XTOS_DISABLE_ALL_INTERRUPTS for ESP32 C3 #6552

@hallard

Description

@hallard

Board

ESP32 C3

Device Description

Lolin ESP32 C3 Mini

Hardware Configuration

No

Version

latest master

IDE Name

PlatformIO

Operating System

Mac OS

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

921600

Description

When compiling missing some definition of XTOS_DISABLE_ALL_INTERRUPTS or XTOS_RESTORE_INTLEVEL

it's defined for ESP32, ESP32-S2 and ESP32-S3 in xtruntime.h but can't find them for C3

Sketch

void setup() {
  XTOS_DISABLE_ALL_INTERRUPTS;
}

Debug Message

Compiling /Users/charles/piobuild/esp32-c3-mini/src/test.ino.cpp.o
/Users/charles/Library/CloudStorage/OneDrive-Personnel/devt/esp32/_Tests/test_pio/src/test.ino: In function 'void setup()':
/Users/charles/Library/CloudStorage/OneDrive-Personnel/devt/esp32/_Tests/test_pio/src/test.ino:5:3: error: 'XTOS_DISABLE_ALL_INTERRUPTS' was not declared in this scope
   XTOS_DISABLE_ALL_INTERRUPTS;
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/charles/Library/CloudStorage/OneDrive-Personnel/devt/esp32/_Tests/test_pio/src/test.ino:5:3: note: suggested alternative: 'taskDISABLE_INTERRUPTS'
   XTOS_DISABLE_ALL_INTERRUPTS;
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   taskDISABLE_INTERRUPTS
*** [/Users/charles/piobuild/esp32-c3-mini/src/test.ino.cpp.o] Error 1
============================================================ [FAILED] Took 1.00 seconds

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

    Area: LibrariesIssue is related to Library support.Chip: ESP32-C3Issue is related to support of ESP32-C3 ChipResolution: ExpiredMore info wasn't provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions