We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 843d661 commit 1e38f94Copy full SHA for 1e38f94
drivers/timer/realtek_rts5912_rtmr.c
@@ -74,6 +74,8 @@ static void rtmr_isr(const void *arg)
74
75
k_spinlock_key_t key = k_spin_lock(&lock);
76
77
+ RTMR_REG->INTSTS = RTOSTMR_INTSTS_STS_Msk;
78
+
79
rtmr_restart(RTMR_COUNTER_MAX * CYCLES_PER_TICK);
80
81
cycles = previous_cnt;
@@ -220,6 +222,8 @@ void arch_busy_wait(uint32_t n_usec)
220
222
static int sys_clock_driver_init(void)
221
223
{
224
/* Enable RTMR clock power */
225
226
+ NVIC_ClearPendingIRQ(DT_INST_IRQN(0));
227
228
SYSTEM_Type *sys_reg = RTS5912_SCCON_REG_BASE;
229
0 commit comments