Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
task_wdt.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Libre Solar Technologies GmbH
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
17
#ifndef TASK_WDT_H_
18
#define TASK_WDT_H_
19
20
#include <
zephyr/types.h
>
21
#include <kernel.h>
22
#include <device.h>
23
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
36
typedef
void (*
task_wdt_callback_t
)(
int
channel_id,
void
*
user_data
);
37
54
int
task_wdt_init
(
const
struct
device
*hw_wdt);
55
73
int
task_wdt_add
(
uint32_t
reload_period,
task_wdt_callback_t
callback,
74
void
*
user_data
);
75
87
int
task_wdt_delete
(
int
channel_id);
88
101
int
task_wdt_feed
(
int
channel_id);
102
103
#ifdef __cplusplus
104
}
105
#endif
106
111
#endif
/* TASK_WDT_H_ */
task_wdt_feed
int task_wdt_feed(int channel_id)
Feed specified watchdog channel.
task_wdt_add
int task_wdt_add(uint32_t reload_period, task_wdt_callback_t callback, void *user_data)
Install new timeout.
task_wdt_delete
int task_wdt_delete(int channel_id)
Delete task watchdog channel.
task_wdt_callback_t
void(* task_wdt_callback_t)(int channel_id, void *user_data)
Definition:
task_wdt.h:36
task_wdt_init
int task_wdt_init(const struct device *hw_wdt)
Initialize task watchdog.
types.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition:
stdint.h:60
device
Runtime device structure (in ROM) per driver instance.
Definition:
device.h:450
user_data
static const intptr_t user_data[5]
Definition:
main.c:590
include
task_wdt
task_wdt.h
Generated on Mon Feb 21 2022 22:43:02 for Zephyr API Documentation by
1.9.2