From 9741ea9c219364bc1aaf897a16b8c3a295c2cc10 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 21 Jan 2021 21:52:34 +0100 Subject: templates/periph_instances: Make instances constexpr. --- templates/periph_instances.h.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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 %} -- cgit v1.2.3