17 lines
364 B
C
17 lines
364 B
C
|
/*
|
||
|
* Copyright (c) 2017 Intel Corporation
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*/
|
||
|
|
||
|
#include <entropy.h>
|
||
|
#include <syscall_handler.h>
|
||
|
|
||
|
_SYSCALL_HANDLER(entropy_get_entropy, dev, buffer, len)
|
||
|
{
|
||
|
_SYSCALL_OBJ(dev, K_OBJ_DRIVER_ENTROPY);
|
||
|
_SYSCALL_MEMORY_WRITE(buffer, len);
|
||
|
return _impl_entropy_get_entropy((struct device *)dev, (u8_t *)buffer,
|
||
|
len);
|
||
|
}
|