1 /* 2 * Copyright (c) 2022 Thomas Stranger 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #define DT_DRV_COMPAT vnd_w1_device 8 9 #include <zephyr/device.h> 10 #include <zephyr/drivers/w1.h> 11 12 struct w1_dummy_slave_api { 13 }; 14 15 static const struct w1_dummy_slave_api w1_dummy_slave_api1 = {}; 16 17 #define TEST_W1_DUMMY_SLAVE_DEFINE(inst) \ 18 DEVICE_DT_INST_DEFINE(inst, NULL, NULL, NULL, NULL, POST_KERNEL, \ 19 CONFIG_W1_INIT_PRIORITY, &w1_dummy_slave_api1); 20 21 DT_INST_FOREACH_STATUS_OKAY(TEST_W1_DUMMY_SLAVE_DEFINE) 22