driver: watchdog: wdt_ifx_cat1: masking added

Masking is added so that WDT is not invoked multiple times

Signed-off-by: Ritwika Dey <Ritwika.Dey@infineon.com>
This commit is contained in:
Ritwika Dey 2023-07-20 13:47:10 -07:00 committed by Carles Cufí
parent dae2f33e5e
commit 739788143f

View file

@ -36,6 +36,7 @@ static void ifx_cat1_wdt_isr_handler(const struct device *dev)
if (dev_data->callback) {
dev_data->callback(dev, 0);
}
Cy_WDT_MaskInterrupt();
}
#endif /* IFX_CAT1_WDT_IS_IRQ_EN */