Searched refs:USBC_PORT0_NODE (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/samples/subsys/usb_c/source/src/ |
D | main.c | 17 #define USBC_PORT0_NODE DT_ALIAS(usbc_port0) macro 18 #define USBC_PORT0_POWER_ROLE DT_ENUM_IDX(USBC_PORT0_NODE, power_role) 33 uint32_t src_caps[DT_PROP_LEN(USBC_PORT0_NODE, source_pdos)]; 51 .rp = DT_ENUM_IDX(USBC_PORT0_NODE, typec_power_opmode), 52 .src_caps = {DT_FOREACH_PROP_ELEM(USBC_PORT0_NODE, source_pdos, SOURCE_PDO)}, 53 .src_cap_cnt = DT_PROP_LEN(USBC_PORT0_NODE, source_pdos), 320 usbc_port0 = DEVICE_DT_GET(USBC_PORT0_NODE); in main()
|
/Zephyr-latest/samples/subsys/usb_c/sink/src/ |
D | main.c | 15 #define USBC_PORT0_NODE DT_ALIAS(usbc_port0) macro 16 #define USBC_PORT0_POWER_ROLE DT_ENUM_IDX(USBC_PORT0_NODE, power_role) 30 uint32_t snk_caps[DT_PROP_LEN(USBC_PORT0_NODE, sink_pdos)]; 40 .snk_caps = {DT_FOREACH_PROP_ELEM(USBC_PORT0_NODE, sink_pdos, SINK_PDO)}, 41 .snk_cap_cnt = DT_PROP_LEN(USBC_PORT0_NODE, sink_pdos), 300 usbc_port0 = DEVICE_DT_GET(USBC_PORT0_NODE); in main()
|