Also parse test documentation. When add tests to doxygen, we get warnings about device.h macros not being defined. Exclude this now and track this in issue #7367. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
45 lines
738 B
C
45 lines
738 B
C
/*
|
|
* Copyright (c) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr.h>
|
|
#include <device.h>
|
|
|
|
|
|
#define DUMMY_DRIVER_NAME "dummy_driver"
|
|
|
|
typedef int (*dummy_api_configure_t)(struct device *dev,
|
|
u32_t dev_config);
|
|
|
|
|
|
struct dummy_driver_api {
|
|
dummy_api_configure_t configure;
|
|
};
|
|
|
|
static int dummy_configure(struct device *dev, u32_t config)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static const struct dummy_driver_api funcs = {
|
|
.configure = dummy_configure,
|
|
};
|
|
|
|
int dummy_init(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/**
|
|
* @cond INTERNAL_HIDDEN
|
|
*/
|
|
DEVICE_AND_API_INIT(dummy_driver, DUMMY_DRIVER_NAME, &dummy_init,
|
|
NULL, NULL, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
|
&funcs);
|
|
|
|
/**
|
|
* @endcond
|
|
*/
|