Skip to content

Commit 9847818

Browse files
JhanBoChao-Realtekkartben
authored andcommitted
drivers: adc: rts5912: clear pending irq when setup
clear pending irq when setup. Signed-off-by: jhan bo chao <jhan_bo_chao@realtek.com>
1 parent 0f818e3 commit 9847818

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/adc/adc_realtek_rts5912.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ static int adc_rts5912_init(const struct device *dev)
260260

261261
regs->ctrl = ADC_CTRL_RST;
262262

263+
NVIC_ClearPendingIRQ(DT_INST_IRQN(0));
263264
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority), adc_rts5912_single_isr,
264265
DEVICE_DT_INST_GET(0), 0);
265266
irq_enable(DT_INST_IRQN(0));

0 commit comments

Comments
 (0)