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 250cfee commit f3c3313Copy full SHA for f3c3313
util/make_new_dif/ip.py
@@ -149,3 +149,6 @@ def has_status_type_irqs(self):
149
return True
150
else:
151
return False
152
+
153
+ def has_registers(self):
154
+ return "registers" in self._hjson_data
util/make_new_dif/templates/dif_autogen.c.tpl
@@ -68,6 +68,7 @@ dif_result_t dif_${ip.name_snake}_init(
68
69
return kDifOk;
70
}
71
+% if ip.has_registers():
72
73
OT_WARN_UNUSED_RESULT
74
dif_result_t dif_${ip.name_snake}_init_from_dt(
@@ -82,6 +83,7 @@ dif_result_t dif_${ip.name_snake}_init_from_dt(
82
83
84
85
86
+% endif
87
88
dif_result_t dif_${ip.name_snake}_get_dt(
89
const dif_${ip.name_snake}_t *${ip.name_snake},
0 commit comments