Skip to content

NXP driver: lptmr: add alarm and guard period API functions. #93302

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Holt-Sun
Copy link

Add alarm APIs: set_alarm, cancel_alarm
Add guard period APIs: set_guard_period

@zephyrbot zephyrbot added area: Counter platform: NXP Drivers NXP Semiconductors, drivers labels Jul 18, 2025
@Holt-Sun Holt-Sun force-pushed the enable-lptmr-alarm-and-guard-period-api-gap-feature branch from 86d9932 to 08f6036 Compare July 18, 2025 09:33
Add alarm APIs: set_alarm, cancel_alarm
Add guard period APIs: set_guard_period

Signed-off-by: Holt Sun <[email protected]>
@Holt-Sun Holt-Sun force-pushed the enable-lptmr-alarm-and-guard-period-api-gap-feature branch from 08f6036 to c1525d6 Compare July 18, 2025 10:34
Copy link

data->alarm_callback = alarm_cfg->callback;
data->alarm_user_data = alarm_cfg->user_data;

current = LPTMR_GetCurrentTimerCount(config->base);
Copy link
Member

Choose a reason for hiding this comment

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

are you using the same counter register for both top callback and alarms? both APIs can be used simultaneously, so I don't think that's a good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Counter platform: NXP Drivers NXP Semiconductors, drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants