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
|
continue
|
||||||
# Stop at the end of the IRQn_Type enum definition
|
# 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
|
break
|
||||||
|
|
||||||
# Ensure we are on a valid line, otherwise search in earlier lines
|
# 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
|
continue
|
||||||
# start filling lines after interrupt Doxygen comment
|
# start filling lines after interrupt Doxygen comment
|
||||||
if "typedef enum" in line:
|
if "typedef enum" in line:
|
||||||
|
irq_lines = [] # Cleanup any previous content
|
||||||
use_line = True
|
use_line = True
|
||||||
|
|
||||||
# use a regexp to get the available IRQs
|
# use a regexp to get the available IRQs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user