Skip to content

drivers: timer : fix rtmr timer. #89261

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

JasonLin-RealTek
Copy link
Collaborator

RTMR clear the interrupt status bit in the init and isr function.

@@ -74,6 +74,8 @@ static void rtmr_isr(const void *arg)

k_spinlock_key_t key = k_spin_lock(&lock);

RTMR_REG->INTSTS = 1ul;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use the macro defined for this bit RTOSTMR_INTSTS_STS_Msk

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed, thanks!

@@ -220,6 +222,8 @@ void arch_busy_wait(uint32_t n_usec)
static int sys_clock_driver_init(void)
{
/* Enable RTMR clock power */
RTMR_REG->INTSTS = 1ul;
Copy link
Collaborator

Choose a reason for hiding this comment

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

RTOSTMR_INTSTS_STS_Msk

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed, thanks!

RTMR clear the interrupt status bit in the init and isr function.

Signed-off-by: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
@JasonLin-RealTek JasonLin-RealTek force-pushed the fix_rtmr_driver_clear_interrupt_sts_bit branch from 1aabe77 to 833b889 Compare May 5, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants