Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
emul_stub_device.h File Reference
#include <zephyr/device.h>
#include <zephyr/devicetree.h>

Go to the source code of this file.

Data Structures

struct  emul_stub_dev_data
 
struct  emul_stub_dev_config
 
struct  emul_stub_dev_api
 

Macros

#define EMUL_STUB_DEVICE(n)
 

Macro Definition Documentation

◆ EMUL_STUB_DEVICE

#define EMUL_STUB_DEVICE (   n)
Value:
__maybe_unused static int emul_init_stub_##n(const struct device *dev) \
{ \
ARG_UNUSED(dev); \
return 0; \
} \
\
static struct emul_stub_dev_data stub_data_##n; \
static struct emul_stub_dev_config stub_config_##n; \
static struct emul_stub_dev_api stub_api_##n; \
DEVICE_DT_INST_DEFINE(n, &emul_init_stub_##n, NULL, &stub_data_##n, &stub_config_##n, \
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &stub_api_##n);
Runtime device structure (in ROM) per driver instance.
Definition: device.h:403
Definition: emul_stub_device.h:23
Definition: emul_stub_device.h:20
Definition: emul_stub_device.h:17