summaryrefslogtreecommitdiffstats
path: root/include/drivers/st/stm32_iwdg.h
blob: bad25244a80e0dffb1b98add34d9cfc95d5cd7ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2018-2019, STMicroelectronics - All Rights Reserved
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef STM32_IWDG_H
#define STM32_IWDG_H

#include <stdint.h>

#define IWDG_HW_ENABLED			BIT(0)
#define IWDG_DISABLE_ON_STOP		BIT(1)
#define IWDG_DISABLE_ON_STANDBY		BIT(2)

int stm32_iwdg_init(void);
void stm32_iwdg_refresh(void);

#endif /* STM32_IWDG_H */