drivers: counter: rts5912: clear pending irq when setup
clear pending irq when setup. Signed-off-by: jhan bo chao <jhan_bo_chao@realtek.com>
This commit is contained in:
parent
d0240abb2a
commit
85dc257072
1 changed files with 1 additions and 0 deletions
|
@ -349,6 +349,7 @@ static int counter_rts5912_init(const struct device *dev)
|
|||
\
|
||||
static void counter_rts5912_irq_config_##inst(void) \
|
||||
{ \
|
||||
NVIC_ClearPendingIRQ(DT_INST_IRQN(inst)); \
|
||||
IRQ_CONNECT(DT_INST_IRQN(inst), DT_INST_IRQ(inst, priority), counter_rts5912_isr, \
|
||||
DEVICE_DT_INST_GET(inst), 0); \
|
||||
irq_enable(DT_INST_IRQN(inst)); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue