From f07c93a64ad83012917b7d9229aaaec8b4c2d187 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 6 Feb 2022 22:34:10 +0100 Subject: [PATCH] change chip interrupts from dict to array --- stm32data/__main__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stm32data/__main__.py b/stm32data/__main__.py index 359c5cf..bd93ba8 100755 --- a/stm32data/__main__.py +++ b/stm32data/__main__.py @@ -632,7 +632,13 @@ def parse_chips(): if chip_name.startswith('STM32F100') and 'DMA2_Channel4_5' in header_irqs: del header_irqs['DMA2_Channel4_5'] - core['interrupts'] = header_irqs + core['interrupts'] = [ + { + 'name': k, + 'number': v, + } + for k, v in header_irqs.items() + ] peri_kinds = {}