2018-12-21 11:58:41 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Alexander Wachter
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <syscall_handler.h>
|
2019-06-25 21:53:53 +02:00
|
|
|
#include <drivers/hwinfo.h>
|
2018-12-21 11:58:41 +01:00
|
|
|
|
2020-05-27 18:26:57 +02:00
|
|
|
ssize_t z_vrfy_hwinfo_get_device_id(uint8_t *buffer, size_t length)
|
2019-08-13 21:58:38 +02:00
|
|
|
{
|
2018-12-21 11:58:41 +01:00
|
|
|
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(buffer, length));
|
|
|
|
|
2020-05-27 18:26:57 +02:00
|
|
|
return z_impl_hwinfo_get_device_id((uint8_t *)buffer, (size_t)length);
|
2018-12-21 11:58:41 +01:00
|
|
|
}
|
2019-08-13 20:34:34 +02:00
|
|
|
#include <syscalls/hwinfo_get_device_id_mrsh.c>
|