Skip to content

Commit fcf4fb2

Browse files
committed
drivers: watchdog: 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 769ad13 commit fcf4fb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/watchdog/wdt_rts5912.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ static int wdt_rts5912_init(const struct device *dev)
225225
wdt_reg->DIV = cfg->div;
226226

227227
wdt_reg->CTRL |= WDT_CTRL_CLRRSTFLAG;
228-
NVIC_ClearPendingIRQ(DT_INST_IRQN(0));
228+
k_irq_clear_pending(DT_INST_IRQN(0));
229229

230230
IRQ_CONNECT(DT_INST_IRQN(0), 0, wdt_rts5912_isr, DEVICE_DT_INST_GET(0), 0);
231231
irq_enable(DT_INST_IRQN(0));

0 commit comments

Comments
 (0)