From ba5f8e1cdad286f2ef9324bb87b4ebfc4f22c33e Mon Sep 17 00:00:00 2001 From: Gilles DOFFE Date: Fri, 25 Sep 2020 23:06:04 +0200 Subject: [PATCH] cpu/stm32: consider starting white spaces in gen_vectors.py In some CMSIS headers, "typedef enum" could be preceded by white spaces. Thus consider them when parsing the line. Signed-off-by: Gilles DOFFE --- cpu/stm32/dist/irqs/gen_vectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/stm32/dist/irqs/gen_vectors.py b/cpu/stm32/dist/irqs/gen_vectors.py index 9de7a0d5bc..a391e2f902 100755 --- a/cpu/stm32/dist/irqs/gen_vectors.py +++ b/cpu/stm32/dist/irqs/gen_vectors.py @@ -70,7 +70,7 @@ def parse_cmsis(cpu_line): # skip line that contains non unicode characters continue # start filling lines after interrupt Doxygen comment - if line.startswith("typedef enum"): + if "typedef enum" in line: use_line = True # use a regexp to get the available IRQs