Skip to content

drivers: counter: esp32: Fix alarm stops working #93538

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

Merged
merged 1 commit into from
Jul 25, 2025

Conversation

raffarost
Copy link

Fix condition in which alarm stops working after a certain amount of time. Hardware timer is 54-bit, yet it is treated as 32-bit by the counter driver. To allow alarm event by hardware comparators, counter high word must be loaded into the register along with the lower word managed by the driver.

Fix condition in which alarm stops working after a certain amount
of time. Hardware timer is 54-bit, yet it is treated as 32-bit by
the counter driver. To allow alarm event by hardware comparators,
counter high word must be loaded into the register along with
the lower word managed by the driver.

Signed-off-by: Raffael Rostagno <[email protected]>
Copy link

Copy link
Member

@uLipe uLipe left a comment

Choose a reason for hiding this comment

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

Thanks for that @raffarost I was waiting for this fix for a long time 😊

@kartben kartben merged commit 166bf18 into zephyrproject-rtos:main Jul 25, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants