Skip to content

Comments

Refactor/exti#574

Merged
jorgesg82 merged 10 commits intodevelopmentfrom
refactor/EXTI
Feb 14, 2026
Merged

Refactor/exti#574
jorgesg82 merged 10 commits intodevelopmentfrom
refactor/EXTI

Conversation

@FoniksFox
Copy link
Contributor

EXTI refactored, it works, I can confirm.

Copilot AI review requested due to automatic review settings February 13, 2026 15:30
jorgecanut
jorgecanut previously approved these changes Feb 13, 2026
Copy link
Contributor

@jorgecanut jorgecanut left a comment

Choose a reason for hiding this comment

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

LGTM

oganigl
oganigl previously approved these changes Feb 13, 2026
Copy link
Contributor

@oganigl oganigl left a comment

Choose a reason for hiding this comment

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

Seems everything okay

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

Refactors the EXTI (external interrupt) service from the previous ExternalInterrupt runtime registration model to a new ST_LIB::EXTIDomain domain-based initialization approach, and updates sensor-side EXTI usage accordingly.

Changes:

  • Replaces the old ExternalInterrupt API with ST_LIB::EXTIDomain (domain entries, build/init, global instance dispatch via HAL EXTI callbacks/IRQs).
  • Updates SensorInterrupt to read via an EXTIDomain::Instance instead of registering an interrupt action itself.
  • Removes legacy EXTI startup/enable paths from Sensor::start() and HALAL::common_start(), and wires EXTI into the ST-LIB.hpp board domain initialization.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
Src/ST-LIB_LOW/Sensors/SensorInterrupt/SensorInterrupt.cpp Switches read path to EXTIDomain::Instance::read() and updates constructors.
Inc/ST-LIB_LOW/Sensors/SensorInterrupt/SensorInterrupt.hpp Changes SensorInterrupt API to accept an EXTIDomain::Instance and stores pointers.
Src/ST-LIB_LOW/Sensors/Sensor/Sensor.cpp Removes EXTI enable loop from Sensor::start().
Inc/ST-LIB_LOW/Sensors/Sensor/Sensor.hpp Removes stored EXTI id list from Sensor.
Inc/HALAL/Services/EXTI/EXTI.hpp Introduces ST_LIB::EXTIDomain (Device/Entry/Config/Init/Instance) and global instance mapping.
Src/HALAL/Services/EXTI/EXTI.cpp Implements HAL callback + IRQ handlers to dispatch to EXTIDomain instances.
Src/HALAL/HALAL.cpp Removes legacy ExternalInterrupt::start() call from common HAL startup.
Inc/ST-LIB.hpp Adds EXTIDomain into the board build/init pipeline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@victor-Lopez25 victor-Lopez25 marked this pull request as draft February 13, 2026 18:45
Copy link
Contributor

@victor-Lopez25 victor-Lopez25 left a comment

Choose a reason for hiding this comment

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

Check EXTI interrupts from pin 10-15 because they all go to the same interrupt handler

@FoniksFox FoniksFox dismissed stale reviews from oganigl and jorgecanut via d2ca4d7 February 13, 2026 23:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@FoniksFox FoniksFox dismissed victor-Lopez25’s stale review February 13, 2026 23:20

Checked it, there are shared IRQHandlers but they can differentiate between pins via bitmasks

@FoniksFox FoniksFox marked this pull request as ready for review February 13, 2026 23:20
@jorgesg82 jorgesg82 merged commit 9feb96a into development Feb 14, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants