cpu_wdt.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Freie Universität Berlin
3  * 2017 OTA keys S.A.
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
10 #pragma once
11 
23 #include "timex.h"
24 #include "periph/cpu_common.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
38 #define NWDT_TIME_LOWER_LIMIT (1U)
40 #define NWDT_TIME_UPPER_LIMIT (4U * US_PER_MS * 4096U * (1 << 6U) \
41  / CLOCK_LSI)
42 #define WDT_HAS_STOP (0U)
44 #if defined(CPU_FAM_STM32L4)
45 #define WDT_HAS_INIT (1U)
46 #else
47 #define WDT_HAS_INIT (0U)
48 #endif
51 #ifdef __cplusplus
52 }
53 #endif
54 
Common CPU definitions for the STM32 family.
Utility library for comparing and computing timestamps.