|  | Dual Active Bridge Development Board (Part-No. ) |
Content |  |  |  |  |  |

Loading...
Searching...
No Matches
watchdog.h
1
16/*
17© [2024] Microchip Technology Inc. and its subsidiaries.
18
19 Subject to your compliance with these terms, you may use Microchip
20 software and any derivatives exclusively with Microchip products.
21 You are responsible for complying with 3rd party license terms
22 applicable to your use of 3rd party software (including open source
23 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
24 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
25 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
26 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
27 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
28 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
29 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
30 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
31 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
32 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
33 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
34 THIS SOFTWARE.
35*/
36
37#ifndef WATCHDOG_H
38#define WATCHDOG_H
39
40#include <xc.h>
41
42// Section: Type defines
43
48#define WATCHDOG_CLR_KEY 0x5743
49
56 inline static void WATCHDOG_TimerSoftwareEnable(void)
57{
58 WDTCONLbits.ON = 1;
59}
60
67 inline static void WATCHDOG_TimerSoftwareDisable(void)
68{
69 WDTCONLbits.ON = 0;
70}
71
78 inline static void WATCHDOG_TimerClear(void)
79{
80 WDTCONH = WATCHDOG_CLR_KEY;
81}
82
83#endif /* WATCHDOG_H */
WATCHDOG_TimerClear
static void WATCHDOG_TimerClear(void)
This inline function is used to clear the Watchdog Timer (WDT)
Definition watchdog.h:78
WATCHDOG_TimerSoftwareDisable
static void WATCHDOG_TimerSoftwareDisable(void)
This inline function is used to disable the Watchdog Timer (WDT) using the software bit.
Definition watchdog.h:67
WATCHDOG_CLR_KEY
#define WATCHDOG_CLR_KEY
This macro holds the key value to clear Watchdog Timer (WDT)
Definition watchdog.h:48
WATCHDOG_TimerSoftwareEnable
static void WATCHDOG_TimerSoftwareEnable(void)
This inline function is used to enable the Watchdog Timer (WDT) using the software bit.
Definition watchdog.h:56