1
0
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:
Akshai M 2021-04-03 19:28:27 +02:00
parent b816c67bdd
commit df1cae172c
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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