forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wdt_install_timeout() was skipped as it installs an ISR-context callback handler function. The rest are simple wrappers. Added myself as the maintainer of the syscall handlers. WDT subsystem appears to not currently have an owner. Fixes: zephyrproject-rtos#21432 Signed-off-by: Andrew Boie <[email protected]> Signed-off-by: Anas Nashif <[email protected]>
- Loading branch information
Andrew Boie
committed
Jan 7, 2020
1 parent
2073058
commit 40e31c7
Showing
5 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2019 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <watchdog.h> | ||
#include <syscall_handler.h> | ||
|
||
Z_SYSCALL_HANDLER(wdt_setup, dev, options) | ||
{ | ||
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, setup)); | ||
return z_impl_wdt_setup((struct device *)dev, options); | ||
} | ||
|
||
Z_SYSCALL_HANDLER(wdt_disable, dev) | ||
{ | ||
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, disable)); | ||
return z_impl_wdt_disable((struct device *)dev); | ||
} | ||
|
||
Z_SYSCALL_HANDLER(wdt_feed, dev, channel_id) | ||
{ | ||
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, feed)); | ||
return z_impl_wdt_feed((struct device *)dev, channel_id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,6 +108,7 @@ | |
"spi_driver_api", | ||
"uart_driver_api", | ||
"can_driver_api", | ||
"wdt_driver_api", | ||
] | ||
|
||
|
||
|