Home
last modified time | relevance | path

Searched refs:master_dev (Results 1 – 1 of 1) sorted by relevance

/Zephyr-Core-3.5.0/tests/drivers/w1/w1_api/src/
Dmain.c19 const struct device *const master_dev = DEVICE_DT_GET(W1_MASTER); in get_w1_master_dev() local
21 zassert_true(device_is_ready(master_dev), "W1 master not found"); in get_w1_master_dev()
23 return master_dev; in get_w1_master_dev()
63 const struct device *master_dev = get_w1_master_dev(); in ZTEST_USER() local
71 zassert_equal(w1_lock_bus(master_dev), 0, "Fail lock 1"); in ZTEST_USER()
72 zassert_equal(w1_lock_bus(master_dev), 0, "Fail lock 2"); in ZTEST_USER()
73 zassert_equal(w1_unlock_bus(master_dev), 0, "Fail unlock 1"); in ZTEST_USER()
74 zassert_equal(w1_unlock_bus(master_dev), 0, "Fail unlock 2"); in ZTEST_USER()
76 slave_count = w1_get_slave_count(master_dev); in ZTEST_USER()
158 const struct device *master_dev = get_w1_master_dev(); in ZTEST_USER() local
[all …]