Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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 ZEPHYR_INCLUDE_TASK_WDT_H_
18
#define ZEPHYR_INCLUDE_TASK_WDT_H_
19
20
#include <
zephyr/types.h
>
21
#include <
zephyr/kernel.h
>
22
#include <
zephyr/device.h
>
23
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
38
typedef
void (*
task_wdt_callback_t
)(
int
channel_id,
void
*
user_data
);
39
56
int
task_wdt_init
(
const
struct
device
*hw_wdt);
57
75
int
task_wdt_add
(
uint32_t
reload_period,
task_wdt_callback_t
callback,
76
void
*
user_data
);
77
89
int
task_wdt_delete
(
int
channel_id);
90
103
int
task_wdt_feed
(
int
channel_id);
104
116
void
task_wdt_suspend
(
void
);
117
125
void
task_wdt_resume
(
void
);
126
127
#ifdef __cplusplus
128
}
129
#endif
130
135
#endif
/* ZEPHYR_INCLUDE_TASK_WDT_H_ */
device.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_suspend
void task_wdt_suspend(void)
Pause all channels before changing system power mode.
task_wdt_delete
int task_wdt_delete(int channel_id)
Delete task watchdog channel.
task_wdt_resume
void task_wdt_resume(void)
Resume all channels execution.
task_wdt_callback_t
void(* task_wdt_callback_t)(int channel_id, void *user_data)
Task watchdog callback.
Definition
task_wdt.h:38
task_wdt_init
int task_wdt_init(const struct device *hw_wdt)
Initialize task watchdog.
types.h
user_data
static const intptr_t user_data[5]
Definition
main.c:588
kernel.h
Public kernel APIs.
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
device
Runtime device structure (in ROM) per driver instance.
Definition
device.h:504
zephyr
task_wdt
task_wdt.h
Generated on Mon Apr 21 2025 11:55:49 for Zephyr API Documentation by
1.12.0