blob: bad25244a80e0dffb1b98add34d9cfc95d5cd7ba [file] [log] [blame]
Yann Gautier091eab52019-06-04 18:06:34 +02001/*
2 * Copyright (c) 2018-2019, STMicroelectronics - All Rights Reserved
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef STM32_IWDG_H
8#define STM32_IWDG_H
9
10#include <stdint.h>
11
12#define IWDG_HW_ENABLED BIT(0)
13#define IWDG_DISABLE_ON_STOP BIT(1)
14#define IWDG_DISABLE_ON_STANDBY BIT(2)
15
16int stm32_iwdg_init(void);
17void stm32_iwdg_refresh(void);
18
19#endif /* STM32_IWDG_H */