zephyr/drivers/watchdog/wdt_handlers.c
Kumar Gala a1b77fd589 zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-08 08:23:57 -05:00

33 lines
723 B
C

/*
* Copyright (c) 2019 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <drivers/watchdog.h>
#include <syscall_handler.h>
static inline int z_vrfy_wdt_setup(struct device *dev, uint8_t options)
{
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, setup));
return z_impl_wdt_setup(dev, options);
}
#include <syscalls/wdt_setup_mrsh.c>
static inline int z_vrfy_wdt_disable(struct device *dev)
{
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, disable));
return z_impl_wdt_disable(dev);
}
#include <syscalls/wdt_disable_mrsh.c>
static inline int z_vrfy_wdt_feed(struct device *dev, int channel_id)
{
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, feed));
return z_impl_wdt_feed(dev, channel_id);
}
#include <syscalls/wdt_feed_mrsh.c>