MSPM0C1105_C1106 Driver Library
2.05.01.00
bazel-out
k8-opt
bin
docs
english
driverlib
mspm0c1105_c1106_api_guide-srcs
source
ti
driverlib
dl_iwdt.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023, Texas Instruments Incorporated
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* * Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
*
12
* * Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* * Neither the name of Texas Instruments Incorporated nor the names of
17
* its contributors may be used to endorse or promote products derived
18
* from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*/
32
/*!****************************************************************************
33
* @file dl_iwdt.h
34
* @brief Independent Watchdog Timer (iWDT) Driver Library
35
* @defgroup iWDT Independent Watchdog Timer (iWDT)
36
*
37
* @anchor ti_dl_dl_iwdt_Overview
38
* # Overview
39
*
40
* The Independent Watchdog Timer Driver Library allows full configuration of
41
* the MSPM0 iWDT module.
42
* The independent window watchdog timer (iWDT) in the LFSS IP is an SoC independent supervisor
43
* which monitors code execution and overall hang up scenarios of the SoC. Due to
44
* the nature of the LFSS IP, this iWDT has its own system independent power and clock source.
45
* If the application software does not successfully reset the watchdog within the programmed time,
46
* the watchdog generates a POR reset to the SoC
47
*
48
* <hr>
49
******************************************************************************
50
*/
54
#ifndef ti_dl_dl_iwdt__include
55
#define ti_dl_dl_iwdt__include
56
57
#include <stdbool.h>
58
#include <stdint.h>
59
60
#include <
ti/driverlib/dl_lfss.h
>
61
62
#ifdef __MSPM0_HAS_IWDT__
63
64
#ifdef __cplusplus
65
extern
"C"
{
66
#endif
67
68
/* clang-format off */
69
73
#define DL_IWDT_CLOCK_DIVIDE_1 DL_LFSS_IWDT_CLOCK_DIVIDE_1
74
78
#define DL_IWDT_CLOCK_DIVIDE_2 DL_LFSS_IWDT_CLOCK_DIVIDE_2
79
83
#define DL_IWDT_CLOCK_DIVIDE_3 DL_LFSS_IWDT_CLOCK_DIVIDE_3
84
88
#define DL_IWDT_CLOCK_DIVIDE_4 DL_LFSS_IWDT_CLOCK_DIVIDE_4
89
93
#define DL_IWDT_CLOCK_DIVIDE_5 DL_LFSS_IWDT_CLOCK_DIVIDE_5
94
98
#define DL_IWDT_CLOCK_DIVIDE_6 DL_LFSS_IWDT_CLOCK_DIVIDE_6
99
103
#define DL_IWDT_CLOCK_DIVIDE_7 DL_LFSS_IWDT_CLOCK_DIVIDE_7
104
108
#define DL_IWDT_CLOCK_DIVIDE_8 DL_LFSS_IWDT_CLOCK_DIVIDE_8
109
113
#define DL_IWDT_TIMER_PERIOD_6_BITS DL_LFSS_IWDT_TIMER_PERIOD_6_BITS
114
118
#define DL_IWDT_TIMER_PERIOD_8_BITS DL_LFSS_IWDT_TIMER_PERIOD_8_BITS
119
123
#define DL_IWDT_TIMER_PERIOD_10_BITS DL_LFSS_IWDT_TIMER_PERIOD_10_BITS
124
128
#define DL_IWDT_TIMER_PERIOD_12_BITS DL_LFSS_IWDT_TIMER_PERIOD_12_BITS
129
133
#define DL_IWDT_TIMER_PERIOD_15_BITS DL_LFSS_IWDT_TIMER_PERIOD_15_BITS
134
138
#define DL_IWDT_TIMER_PERIOD_18_BITS DL_LFSS_IWDT_TIMER_PERIOD_18_BITS
139
143
#define DL_IWDT_TIMER_PERIOD_21_BITS DL_LFSS_IWDT_TIMER_PERIOD_21_BITS
144
148
#define DL_IWDT_TIMER_PERIOD_25_BITS DL_LFSS_IWDT_TIMER_PERIOD_25_BITS
149
153
#define DL_IWDT_enableModule DL_LFSS_IWDT_enableModule
154
158
#define DL_IWDT_disableModule DL_LFSS_IWDT_disableModule
159
163
#define DL_IWDT_isModuleEnabled DL_LFSS_IWDT_isModuleEnabled
164
168
#define DL_IWDT_enableFreeRun DL_LFSS_IWDT_enableFreeRun
169
173
#define DL_IWDT_disableFreeRun DL_LFSS_IWDT_disableFreeRun
174
178
#define DL_IWDT_isFreeRunEnabled DL_LFSS_IWDT_isFreeRunEnabled
179
183
#define DL_IWDT_setClockDivider DL_LFSS_IWDT_setClockDivider
184
188
#define DL_IWDT_getClockDivider DL_LFSS_IWDT_getClockDivider
189
193
#define DL_IWDT_setTimerPeriod DL_LFSS_IWDT_setTimerPeriod
194
198
#define DL_IWDT_getTimerPeriod DL_LFSS_IWDT_getTimerPeriod
199
203
#define DL_IWDT_restart DL_LFSS_IWDT_restart
204
208
#define DL_IWDT_isWatchDogRunning DL_LFSS_IWDT_isWatchdogRunning
209
210
214
#define DL_IWDT_enableWriteProtect DL_LFSS_IWDT_enableWriteProtect
215
216
220
#define DL_IWDT_isWriteProtectEnabled DL_LFSS_IWDT_isWriteProtectEnabled
221
222
226
#define DL_IWDT_disableWriteProtect DL_LFSS_IWDT_disableWriteProtect
227
228
/* clang-format on */
229
230
#ifdef __cplusplus
231
}
232
#endif
233
234
#endif
/* __MSPM0_HAS_IWDT__ */
235
236
#endif
/* ti_dl_dl_iwdt__include */
237
dl_lfss.h
LFSS(Low Frequency Sub-System) Peripheral Interface.
© Copyright 1995-2025
, Texas Instruments Incorporated. All rights reserved.
Trademarks
|
Privacy policy
|
Terms of use
|
Terms of sale