cpu_wdt.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016 Freie Universität Berlin
3  * SPDX-FileCopyrightText: 2017 OTA keys S.A.
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
20 #include "timex.h"
21 #include "periph/cpu_common.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
35 #define NWDT_TIME_LOWER_LIMIT (1U)
37 #define NWDT_TIME_UPPER_LIMIT (4U * US_PER_MS * 4096U * (1 << 6U) \
38  / CLOCK_LSI)
39 #define WDT_HAS_STOP (0U)
41 #if defined(CPU_FAM_STM32L4)
42 #define WDT_HAS_INIT (1U)
43 #else
44 #define WDT_HAS_INIT (0U)
45 #endif
48 #ifdef __cplusplus
49 }
50 #endif
51 
Common CPU definitions for the STM32 family.
Utility library for comparing and computing timestamps.