Skip to content

Remove S2-specific systimer workaround#4993

Merged
bugadani merged 1 commit intoesp-rs:mainfrom
bugadani:s2-systimer
Feb 17, 2026
Merged

Remove S2-specific systimer workaround#4993
bugadani merged 1 commit intoesp-rs:mainfrom
bugadani:s2-systimer

Conversation

@bugadani
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 16, 2026 19:29
@bugadani bugadani added the skip-changelog No changelog modification needed label Feb 16, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes an ESP32-S2-specific workaround for systimer interrupts that was originally added to handle edge-triggered interrupts. The workaround involved maintaining static handler storage and an intermediate interrupt handler to check which alarm actually triggered. The change simplifies the code by moving the interrupt raw status check into the async handle_alarm function, making the same logic apply to all chips rather than being ESP32-S2-specific.

Changes:

  • Removed ESP32-S2-specific workaround code in set_interrupt_handler that used static handler storage and intermediate handlers
  • Updated handle_alarm to check int_raw() before handling the alarm, ensuring handlers only run when the corresponding alarm interrupt is actually set

Copilot AI review requested due to automatic review settings February 16, 2026 19:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@bugadani bugadani added this pull request to the merge queue Feb 17, 2026
Merged via the queue into esp-rs:main with commit cadf6f5 Feb 17, 2026
35 checks passed
@bugadani bugadani deleted the s2-systimer branch February 17, 2026 08:28
bugadani added a commit that referenced this pull request Feb 17, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog No changelog modification needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants