We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ceaf80 commit a9c1132Copy full SHA for a9c1132
include/zephyr/drivers/clock_control/sf32lb.h
@@ -56,6 +56,17 @@ struct sf32lb_clock_dt_spec {
56
*/
57
#define SF32LB_CLOCK_DT_INST_SPEC_GET(index) SF32LB_CLOCK_DT_SPEC_GET(DT_DRV_INST(index))
58
59
+/**
60
+ * @brief Initialize a `sf32lb_clock_dt_spec` structure from a parent DT instance.
61
+ *
62
+ * @param index DT instance index
63
+ */
64
+#define SF32LB_CLOCK_DT_INST_PARENT_SPEC_GET(index) \
65
+ { \
66
+ .dev = DEVICE_DT_GET(DT_CLOCKS_CTLR(DT_INST_PARENT(index))), \
67
+ .id = DT_CLOCKS_CELL(DT_INST_PARENT(index), id), \
68
+ }
69
+
70
/**
71
* @brief Same as SF32LB_CLOCK_DT_INST_SPEC_GET but with a default value.
72
*
0 commit comments