summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2021-01-21 21:52:34 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2021-01-21 23:07:42 +0100
commit9741ea9c219364bc1aaf897a16b8c3a295c2cc10 (patch)
treebbeb0d39bd4040e8273843f1b0d59e46cc01f4ed
parent94d1f1a772c6655398e9773c0851330ead4ff49c (diff)
templates/periph_instances: Make instances constexpr.
-rw-r--r--templates/periph_instances.h.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/periph_instances.h.j2 b/templates/periph_instances.h.j2
index d4b682f..05c59df 100644
--- a/templates/periph_instances.h.j2
+++ b/templates/periph_instances.h.j2
@@ -3,7 +3,7 @@
{% for header in headers %}#include "{{ header }}"{% endfor %}
{% for instance in instances %}
-static {{ instance.type }} {{ instance.name }}{
+constexpr {{ instance.type }} {{ instance.name }}{
{% for arg in instance.args %}
{{ arg | hex }},
{% endfor %}