Skip to content

Commit 769ad13

Browse files
committed
drivers: timer: rts5912: use portable IRQ pending API
Replace direct NVIC_*PendingIRQ()/NVIC_EnableIRQ()/NVIC_DisableIRQ() calls with k_irq_clear_pending()/k_irq_set_pending()/k_irq_is_pending() and irq_enable()/irq_disable(), dropping the driver's dependency on cmsis_core.h where nothing else needed it. Assisted-by: Claude:claude-opus-5 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 2e8d4f5 commit 769ad13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/timer/realtek_rts5912_rtmr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static int sys_clock_driver_init(void)
204204
{
205205
/* Enable RTMR clock power */
206206
RTMR_REG->INTSTS = RTOSTMR_INTSTS_STS_Msk;
207-
NVIC_ClearPendingIRQ(DT_INST_IRQN(0));
207+
k_irq_clear_pending(DT_INST_IRQN(0));
208208

209209
SYSTEM_Type *sys_reg = RTS5912_SCCON_REG_BASE;
210210

0 commit comments

Comments
 (0)