Yann Gautier | 091eab5 | 2019-06-04 18:06:34 +0200 | [diff] [blame] | 1 | /* |
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 | |||||
16 | int stm32_iwdg_init(void); | ||||
17 | void stm32_iwdg_refresh(void); | ||||
18 | |||||
19 | #endif /* STM32_IWDG_H */ |