Skip to content

drivers: counter: Fix MAX32 counter timer driver #85993

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

Closed

Conversation

hfakkiz
Copy link
Contributor

@hfakkiz hfakkiz commented Feb 19, 2025

This PR sets counter to zero when it is started and adds relative alarm irq_on_late and max_rel_val to be able to run test_short_relative_alarm.

Signed-off-by: Anıl Kara [email protected]
Signed-off-by: Furkan Akkiz [email protected]

Counter is set to zero when it is started. Relative alarm irq_on_late
and max_rel_val is added to be able to run test_short_relative_alarm.

Signed-off-by: Anıl Kara <[email protected]>
@@ -44,6 +44,7 @@ static int api_start(const struct device *dev)
const struct max32_tmr_config *cfg = dev->config;

Wrap_MXC_TMR_EnableInt(cfg->regs);
MXC_TMR_SetCount(cfg->regs, 0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not sure if counter value should be reset in counter_start.

Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Apr 21, 2025
@hfakkiz hfakkiz closed this Apr 29, 2025
@MaureenHelm MaureenHelm deleted the max32_counter_timer branch April 29, 2025 14:17
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.

5 participants