Home
last modified time | relevance | path

Searched refs:DT_PATH (Results 1 – 25 of 71) sorted by relevance

123

/Zephyr-latest/tests/cmake/snippets/src/
Dmain.c83 zassert_true(DT_NODE_EXISTS(DT_PATH(deleted_by_foo))); in ZTEST()
84 zassert_true(DT_NODE_EXISTS(DT_PATH(deleted_by_bar))); in ZTEST()
85 zassert_false(DT_NODE_EXISTS(DT_PATH(added_by_foo))); in ZTEST()
86 zassert_false(DT_NODE_EXISTS(DT_PATH(added_by_bar))); in ZTEST()
92 zassert_false(DT_NODE_EXISTS(DT_PATH(deleted_by_foo))); in ZTEST()
93 zassert_true(DT_NODE_EXISTS(DT_PATH(deleted_by_bar))); in ZTEST()
94 zassert_true(DT_NODE_EXISTS(DT_PATH(added_by_foo))); in ZTEST()
95 zassert_false(DT_NODE_EXISTS(DT_PATH(added_by_bar))); in ZTEST()
101 zassert_true(DT_NODE_EXISTS(DT_PATH(deleted_by_foo))); in ZTEST()
102 zassert_false(DT_NODE_EXISTS(DT_PATH(deleted_by_bar))); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/mbox/mbox_data/remote/src/
Dmain.c24 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx0),
25 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx0),
28 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx1),
29 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx1),
32 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx2),
33 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx2),
36 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx3),
37 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx3),
/Zephyr-latest/tests/drivers/mbox/mbox_error_cases/src/
Dmain.c55 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), local_valid); in ZTEST()
57 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), remote_valid); in ZTEST()
88 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), local_incorrect); in ZTEST()
90 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), remote_incorrect); in ZTEST()
119 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), remote_incorrect); in ZTEST()
141 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), local_valid); in ZTEST()
163 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), remote_valid); in ZTEST()
194 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), remote_valid); in ZTEST()
231 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), remote_valid); in ZTEST()
253 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), local_incorrect); in ZTEST()
[all …]
/Zephyr-latest/tests/cmake/hwm/board_extend/src/
Dmain.c56 zassert_true(DT_NODE_EXISTS(DT_PATH(added_by_native_one)));
57 zassert_false(DT_NODE_EXISTS(DT_PATH(added_by_native_two)));
58 zassert_false(DT_NODE_EXISTS(DT_PATH(adc)));
65 zassert_false(DT_NODE_EXISTS(DT_PATH(added_by_native_one)));
66 zassert_true(DT_NODE_EXISTS(DT_PATH(added_by_native_two)));
67 zassert_false(DT_NODE_EXISTS(DT_PATH(adc)));
/Zephyr-latest/soc/telink/tlsr/tlsr951x/
Dsoc.c60 #if ((DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency) != CLK_16MHZ) && \
61 (DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency) != CLK_24MHZ) && \
62 (DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency) != CLK_32MHZ) && \
63 (DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency) != CLK_48MHZ) && \
64 (DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency) != CLK_64MHZ) && \
65 (DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency) != CLK_96MHZ))
76 unsigned int cclk = DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency); in soc_early_init_hook()
/Zephyr-latest/subsys/pm/
Dstate.c11 BUILD_ASSERT(DT_NODE_EXISTS(DT_PATH(cpus)),
40 DT_FOREACH_CHILD(DT_PATH(cpus), CHECK_POWER_STATES_CONSISTENCY)
47 DT_FOREACH_CHILD(DT_PATH(cpus), DEFINE_CPU_STATES);
51 DT_FOREACH_CHILD_STATUS_OKAY_SEP(DT_PATH(cpus), CPU_STATE_REF, (,))
56 DT_FOREACH_CHILD_STATUS_OKAY_SEP(DT_PATH(cpus), DT_NUM_CPU_POWER_STATES, (,))
/Zephyr-latest/tests/drivers/mbox/mbox_data/src/
Dmain.c32 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx0),
33 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx0),
36 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx1),
37 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx1),
40 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx2),
41 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx2),
44 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx3),
45 MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx3),
/Zephyr-latest/tests/drivers/regulator/fixed/src/
Dmain.c12 static const struct device *const reg = DEVICE_DT_GET(DT_PATH(regulator));
14 GPIO_DT_SPEC_GET(DT_PATH(resources), check_gpios);
15 static const uint32_t startup_delay_ms = DT_PROP(DT_PATH(regulator),
17 static const uint32_t off_on_delay_ms = DT_PROP(DT_PATH(regulator),
/Zephyr-latest/tests/drivers/adc/adc_accuracy_test/src/
Ddac_source.c14 #define DAC_DEVICE_NODE DT_PROP(DT_PATH(zephyr_user), dac)
19 .channel_id = DT_PROP(DT_PATH(zephyr_user), dac_channel_id),
20 .resolution = DT_PROP(DT_PATH(zephyr_user), dac_resolution),
53 ret = dac_write_value(dac_dev, DT_PROP(DT_PATH(zephyr_user), dac_channel_id), write_val); in test_dac_to_adc()
Dmain.c10 #if DT_NODE_HAS_PROP(DT_PATH(zephyr_user), io_channels)
11 static const struct adc_dt_spec adc_channel = ADC_DT_SPEC_GET(DT_PATH(zephyr_user));
Dref_volt.c10 #define REF_V DT_PROP(DT_PATH(zephyr_user), reference_mv)
11 #define EXP_ACC DT_PROP(DT_PATH(zephyr_user), expected_accuracy)
/Zephyr-latest/boards/norik/octopus_io_board/
Dboard.c14 #define SIM_SELECT_NODE DT_PATH(sim_select)
18 const struct gpio_dt_spec simctrl = GPIO_DT_SPEC_GET(DT_PATH(sim_select), sim_gpios); in board_late_init_hook()
/Zephyr-latest/boards/norik/octopus_som/
Dboard.c14 #define SIM_SELECT_NODE DT_PATH(sim_select)
18 const struct gpio_dt_spec simctrl = GPIO_DT_SPEC_GET(DT_PATH(sim_select), sim_gpios); in board_late_init_hook()
/Zephyr-latest/samples/boards/st/power_mgmt/adc/src/
Dmain.c15 #if !DT_NODE_EXISTS(DT_PATH(zephyr_user)) || \
16 !DT_NODE_HAS_PROP(DT_PATH(zephyr_user), io_channels)
25 DT_FOREACH_PROP_ELEM(DT_PATH(zephyr_user), io_channels,
/Zephyr-latest/samples/drivers/adc/adc_dt/src/
Dmain.c18 #if !DT_NODE_EXISTS(DT_PATH(zephyr_user)) || \
19 !DT_NODE_HAS_PROP(DT_PATH(zephyr_user), io_channels)
28 DT_FOREACH_PROP_ELEM(DT_PATH(zephyr_user), io_channels,
/Zephyr-latest/samples/boards/nordic/dynamic_pinctrl/src/
Dremap.c19 PINCTRL_DT_STATE_PINS_DEFINE(DT_PATH(zephyr_user), uart0_alt_default);
21 PINCTRL_DT_STATE_PINS_DEFINE(DT_PATH(zephyr_user), uart0_alt_sleep);
/Zephyr-latest/samples/drivers/mbox/remote/src/
Dmain.c30 const struct mbox_dt_spec rx_channel = MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx); in main()
48 const struct mbox_dt_spec tx_channel = MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx); in main()
/Zephyr-latest/samples/drivers/mbox/src/
Dmain.c26 const struct mbox_dt_spec rx_channel = MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx); in main()
44 const struct mbox_dt_spec tx_channel = MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx); in main()
/Zephyr-latest/samples/drivers/mbox_data/remote/src/
Dmain.c29 const struct mbox_dt_spec tx_channel = MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx); in main()
30 const struct mbox_dt_spec rx_channel = MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx); in main()
/Zephyr-latest/samples/drivers/mbox_data/src/
Dmain.c29 const struct mbox_dt_spec tx_channel = MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), tx); in main()
30 const struct mbox_dt_spec rx_channel = MBOX_DT_SPEC_GET(DT_PATH(mbox_consumer), rx); in main()
/Zephyr-latest/soc/atmel/sam/common/
Datmel_sam_dt.h19 DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)
/Zephyr-latest/soc/snps/arc_iot/
Dsoc.c16 #define CPU_FREQ DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)
/Zephyr-latest/boards/blues/swan_r5/
Dboard.c13 GPIO_DT_SPEC_GET(DT_PATH(zephyr_user), dischrg_gpios); in board_swan_init()
/Zephyr-latest/samples/boards/bbc/microbit/line_follower_robot/src/
Dmain.c19 GPIO_DT_SPEC_GET(DT_PATH(zephyr_user), left_gpios);
21 GPIO_DT_SPEC_GET(DT_PATH(zephyr_user), right_gpios);
/Zephyr-latest/boards/arduino/nano_33_ble/
Dboard.c15 GPIO_DT_SPEC_GET(DT_PATH(zephyr_user), pull_up_gpios); in board_init()

123