watchdog.h
Go to the documentation of this file.
1 /********************************************************************************************************
2  * @file watchdog.h
3  *
4  * @brief This is the header file for TLSR8258
5  *
6  * @author Driver Group
7  * @date May 8, 2018
8  *
9  * @par Copyright (c) 2018, Telink Semiconductor (Shanghai) Co., Ltd.
10  * All rights reserved.
11  *
12  * The information contained herein is confidential property of Telink
13  * Semiconductor (Shanghai) Co., Ltd. and is available under the terms
14  * of Commercial License Agreement between Telink Semiconductor (Shanghai)
15  * Co., Ltd. and the licensee or the terms described here-in. This heading
16  * MUST NOT be removed from this file.
17  *
18  * Licensees are granted free, non-transferable use of the information in this
19  * file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided.
20  * @par History:
21  * 1.initial release(DEC. 26 2018)
22  *
23  * @version A001
24  *
25  *******************************************************************************************************/
26 
27 #pragma once
28 
29 
30 #include "register.h"
31 
38 extern void wd_set_interval_ms(unsigned int period_ms,unsigned long int tick_per_ms);
39 
45 static inline void wd_start(void){
48 }
54 static inline void wd_stop(void){
56 }
57 
63 static inline void wd_clear(void)
64 {
66 }
67 
static void wd_clear(void)
clear watchdog.
Definition: watchdog.h:63
void wd_set_interval_ms(unsigned int period_ms, unsigned long int tick_per_ms)
This function set the seconds period.It is likely with WD_SetInterval. Just this function calculate t...
#define reg_tmr_ctrl
Definition: register_8258.h:730
#define BM_SET(x, mask)
Definition: bsp.h:39
static void wd_start(void)
start watchdog. ie enable watchdog
Definition: watchdog.h:45
Definition: register_8258.h:738
Definition: register_8258.h:741
static void wd_stop(void)
stop watchdog. ie disable watchdog
Definition: watchdog.h:54
Definition: register_8258.h:753
#define reg_tmr_sta
Definition: register_8258.h:748
#define BM_CLR(x, mask)
Definition: bsp.h:40