mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
stm32/irqs: Adapt generators to support WL
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
This commit is contained in:
parent
b816c67bdd
commit
df1cae172c
3
cpu/stm32/dist/irqs/gen_irqs.py
vendored
3
cpu/stm32/dist/irqs/gen_irqs.py
vendored
@ -86,7 +86,8 @@ def irq_numof(cpu_fam, cpu_line):
|
||||
):
|
||||
continue
|
||||
# Stop at the end of the IRQn_Type enum definition
|
||||
if "IRQn_Type" in line:
|
||||
if "IRQn_Type" in line \
|
||||
and "#else" not in cmsis_content[line_idx + 1].decode():
|
||||
break
|
||||
|
||||
# Ensure we are on a valid line, otherwise search in earlier lines
|
||||
|
1
cpu/stm32/dist/irqs/gen_vectors.py
vendored
1
cpu/stm32/dist/irqs/gen_vectors.py
vendored
@ -75,6 +75,7 @@ def parse_cmsis(cpu_line):
|
||||
continue
|
||||
# start filling lines after interrupt Doxygen comment
|
||||
if "typedef enum" in line:
|
||||
irq_lines = [] # Cleanup any previous content
|
||||
use_line = True
|
||||
|
||||
# use a regexp to get the available IRQs
|
||||
|
Loading…
Reference in New Issue
Block a user