aboutsummaryrefslogtreecommitdiffstats
path: root/tools/templates/board_gpio.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/templates/board_gpio.tpl')
-rw-r--r--tools/templates/board_gpio.tpl15
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/templates/board_gpio.tpl b/tools/templates/board_gpio.tpl
index 07a316d..1e770f1 100644
--- a/tools/templates/board_gpio.tpl
+++ b/tools/templates/board_gpio.tpl
@@ -50,6 +50,19 @@
{{ i }} | \
{%- endfor %}
0)
+{% if ascr_lockr %}
+#define VAL_GPIO{{p}}_ASCR ( \
+ {%- for i in v.ASCR %}
+ {{ i }} | \
+ {%- endfor %}
+ 0)
+
+#define VAL_GPIO{{p}}_LOCKR ( \
+ {%- for i in v.LOCKR %}
+ {{ i }} | \
+ {%- endfor %}
+ 0)
+{% endif %}
{% endfor %}
-#endif \ No newline at end of file
+#endif