-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
base: main
Are you sure you want to change the base?
drivers: timer : fix rtmr timer. #89261
Conversation
ab0fe98
to
1aabe77
Compare
drivers/timer/realtek_rts5912_rtmr.c
Outdated
@@ -74,6 +74,8 @@ static void rtmr_isr(const void *arg) | |||
|
|||
k_spinlock_key_t key = k_spin_lock(&lock); | |||
|
|||
RTMR_REG->INTSTS = 1ul; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks!
drivers/timer/realtek_rts5912_rtmr.c
Outdated
@@ -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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RTOSTMR_INTSTS_STS_Msk
There was a problem hiding this comment.
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>
1aabe77
to
833b889
Compare
RTMR clear the interrupt status bit in the init and isr function.