OpenBIC
OpenSource Bridge-IC
hal_wdt.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef HAL_WDT_H
18
#define HAL_WDT_H
19
20
#if defined(CONFIG_WDT_ASPEED)
21
#define WDT_DEVICE_NAME "wdt2"
22
#elif (CONFIG_WDT_NPCM4XX)
23
#define WDT_DEVICE_NAME "TWD_0"
24
#else
/* defined(CONFIG_WDT_ASPEED) */
25
#endif
/* defined(CONFIG_WDT_ASPEED) */
26
27
#define WDT_TIMEOUT (15 * 1000)
// 15s
28
#define WDT_FEED_DELAY_MS (10 * 1000)
// 10s
29
30
#define WDT_THREAD_STACK_SIZE 256
31
32
void
wdt_init
();
33
void
wdt_handler
(
void
*arug0,
void
*arug1,
void
*arug2);
34
void
set_wdt_continue_feed
(
bool
value);
35
#endif
set_wdt_continue_feed
void set_wdt_continue_feed(bool value)
Definition:
hal_wdt.c:33
wdt_init
void wdt_init()
Definition:
hal_wdt.c:48
wdt_handler
void wdt_handler(void *arug0, void *arug1, void *arug2)
Definition:
hal_wdt.c:38
common
hal
hal_wdt.h
Generated by
1.9.2