From 2272472f1381ad8c84932d9c702247396b884647 Mon Sep 17 00:00:00 2001 From: Fred Date: Wed, 3 Nov 2021 11:34:28 +0100 Subject: [PATCH 1/6] Fixed to include nucleo_f411re by using templating on memory-map.ld --- Makefile | 2 +- arm/cortexm.py | 27 +++++++---- .../{stm32f401 => stm32f4x1}/memory-map.ld | 2 +- arm/stm32/stm32f4x1/memory-map.ld.tmpl | 48 +++++++++++++++++++ .../{stm32f401 => stm32f4x1}/s-bbmcpa.adb | 0 .../{stm32f401 => stm32f4x1}/s-bbmcpa.ads | 0 .../{stm32f401 => stm32f4x1}/s-stm32.adb | 0 .../{stm32f401 => stm32f4x1}/svd/a-intnam.ads | 0 .../{stm32f401 => stm32f4x1}/svd/handler.S | 0 .../svd/i-stm32-flash.ads | 0 .../svd/i-stm32-gpio.ads | 0 .../svd/i-stm32-pwr.ads | 0 .../svd/i-stm32-rcc.ads | 0 .../svd/i-stm32-syscfg.ads | 0 .../svd/i-stm32-usart.ads | 0 .../{stm32f401 => stm32f4x1}/svd/i-stm32.ads | 0 build_rts.py | 2 + install.py | 4 +- 18 files changed, 73 insertions(+), 12 deletions(-) rename arm/stm32/{stm32f401 => stm32f4x1}/memory-map.ld (97%) create mode 100644 arm/stm32/stm32f4x1/memory-map.ld.tmpl rename arm/stm32/{stm32f401 => stm32f4x1}/s-bbmcpa.adb (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/s-bbmcpa.ads (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/s-stm32.adb (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/svd/a-intnam.ads (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/svd/handler.S (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/svd/i-stm32-flash.ads (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/svd/i-stm32-gpio.ads (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/svd/i-stm32-pwr.ads (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/svd/i-stm32-rcc.ads (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/svd/i-stm32-syscfg.ads (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/svd/i-stm32-usart.ads (100%) rename arm/stm32/{stm32f401 => stm32f4x1}/svd/i-stm32.ads (100%) diff --git a/Makefile b/Makefile index 82cc039a..c106bfd5 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ endif ifeq ($(TARGET),$(filter $(TARGET),arm-eabi arm-elf arm)) TGT=arm-eabi TARGETS=zynq7000 rpi2 rpi2mc sam4s samg55 smartfusion2 openmv2 stm32f4 \ - stm32f429disco stm32f469disco stm32f746disco stm32756geval \ + nucleo_f411re nucleo_f401re stm32f429disco stm32f469disco stm32f746disco stm32756geval \ stm32f769disco tms570 tms570_sci tms570lc lm3s cortex-m0 cortex-m0p \ cortex-m1 cortex-m3 cortex-m4 cortex-m4f cortex-m7f cortex-m7df endif diff --git a/arm/cortexm.py b/arm/cortexm.py index a69b8ad6..246d7f97 100644 --- a/arm/cortexm.py +++ b/arm/cortexm.py @@ -834,7 +834,13 @@ def __init__(self): 'nucleo_f401re': {'STM32_Main_Clock_Frequency': '168_000_000', 'STM32_HSE_Clock_Frequency': '8_000_000', - 'STM32_FLASH_Latency': '5'}, + 'STM32_FLASH_Latency': '5', + 'STM32_SRAM_Size': '96K'}, + + 'nucleo_f411re': {'STM32_Main_Clock_Frequency': '168_000_000', + 'STM32_HSE_Clock_Frequency': '8_000_000', + 'STM32_FLASH_Latency': '5', + 'STM32_SRAM_Size': '128K'}, 'feather_stm32f405': {'STM32_Main_Clock_Frequency': '168_000_000', 'STM32_HSE_Clock_Frequency': '12_000_000', @@ -921,8 +927,8 @@ def __init__(self, board): self.board = board if self.board in ['stm32f4', 'feather_stm32f405']: self.mcu = 'stm32f40x' - elif self.board in ['nucleo_f401re']: - self.mcu = 'stm32f401' + elif self.board in ['nucleo_f401re', 'nucleo_f411re']: + self.mcu = 'stm32f4x1' elif self.board in ['stm32f429disco', 'openmv2']: self.mcu = 'stm32f429x' elif self.board in ['stm32f469disco']: @@ -943,8 +949,6 @@ def __init__(self, board): self.add_template_config_value('Board_Name', self.board) self.add_template_config_value('MCU_Name', self.mcu) - self.add_linker_script('arm/stm32/%s/memory-map.ld' % self.mcu) - # startup code self.add_gnat_sources( 'arm/stm32/%s/s-bbmcpa.ads' % self.mcu, @@ -961,17 +965,24 @@ def __init__(self, board): if self.mcu in ['stm32f40x']: self.add_gnat_source('arm/stm32/stm32f40x/s-stm32.adb') + self.add_linker_script('arm/stm32/%s/memory-map.ld' % self.mcu) - elif self.mcu in ['stm32f401']: - self.add_gnat_source('arm/stm32/stm32f401/s-stm32.adb') - + elif self.mcu in ['stm32f4x1']: + self.add_gnat_source('arm/stm32/stm32f4x1/s-stm32.adb') + self.add_linker_script('arm/stm32/%s/memory-map.ld.tmpl' % self.mcu) + elif self.mcu in ['stm32f429x', 'stm32f469x']: self.add_gnat_source('arm/stm32/stm32f429x/s-stm32.adb') + self.add_linker_script('arm/stm32/%s/memory-map.ld' % self.mcu) elif self.mcu in ['stm32f7x', 'stm32f7x9']: self.add_gnat_source('arm/stm32/stm32f7x/s-stm32.adb') + self.add_linker_script('arm/stm32/%s/memory-map.ld' % self.mcu) + + else: + self.add_linker_script('arm/stm32/%s/memory-map.ld' % self.mcu) # ravenscar support self.add_gnarl_sources( diff --git a/arm/stm32/stm32f401/memory-map.ld b/arm/stm32/stm32f4x1/memory-map.ld similarity index 97% rename from arm/stm32/stm32f401/memory-map.ld rename to arm/stm32/stm32f4x1/memory-map.ld index a0d56da8..5b3d1c53 100644 --- a/arm/stm32/stm32f401/memory-map.ld +++ b/arm/stm32/stm32f4x1/memory-map.ld @@ -37,7 +37,7 @@ MEMORY { flash (rx) : ORIGIN = 0x08000000, LENGTH = 512K - sram12 (rwx) : ORIGIN = 0x20000000, LENGTH = 96K + sram12 (rwx) : ORIGIN = 0x20000000, LENGTH = "${STM32_SRAM_Size}" ccm (rw) : ORIGIN = 0x10000000, LENGTH = 64K } diff --git a/arm/stm32/stm32f4x1/memory-map.ld.tmpl b/arm/stm32/stm32f4x1/memory-map.ld.tmpl new file mode 100644 index 00000000..5b3d1c53 --- /dev/null +++ b/arm/stm32/stm32f4x1/memory-map.ld.tmpl @@ -0,0 +1,48 @@ +/**************************************************************************** + * * + * GNAT COMPILER COMPONENTS * + * * + * A R M * + * * + * Linker Script File * + * * + * Copyright (C) 1999-2002 Universidad Politecnica de Madrid * + * Copyright (C) 2003-2006 The European Space Agency * + * Copyright (C) 2003-2015 AdaCore * + * * + * GNAT is free software; you can redistribute it and/or modify it under * + * terms of the GNU General Public License as published by the Free Soft- * + * ware Foundation; either version 2, or (at your option) any later ver- * + * sion. GNAT is distributed in the hope that it will be useful, but WITH- * + * OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * + * for more details. You should have received a copy of the GNU General * + * Public License distributed with GNAT; see file COPYING. If not, write * + * to the Free Software Foundation, 51 Franklin Street, Fifth Floor, * + * Boston, MA 02110-1301, USA. * + * * + * As a special exception, if you link this file with other files to * + * produce an executable, this file does not by itself cause the resulting * + * executable to be covered by the GNU General Public License. This except- * + * ion does not however invalidate any other reasons why the executable * + * file might be covered by the GNU Public License. * + * * + * GNARL was developed by the GNARL team at Florida State University. * + * Extensive contributions were provided by Ada Core Technologies, Inc. * + * The executive was developed by the Real-Time Systems Group at the * + * Technical University of Madrid. * + * * + ****************************************************************************/ + +MEMORY +{ + flash (rx) : ORIGIN = 0x08000000, LENGTH = 512K + sram12 (rwx) : ORIGIN = 0x20000000, LENGTH = "${STM32_SRAM_Size}" + ccm (rw) : ORIGIN = 0x10000000, LENGTH = 64K +} + +REGION_ALIAS("sram_tx", sram12) +REGION_ALIAS("sram_ro", sram12) +REGION_ALIAS("sram_bs", sram12) +REGION_ALIAS("sram_da", sram12) +REGION_ALIAS("ccm_da", ccm) diff --git a/arm/stm32/stm32f401/s-bbmcpa.adb b/arm/stm32/stm32f4x1/s-bbmcpa.adb similarity index 100% rename from arm/stm32/stm32f401/s-bbmcpa.adb rename to arm/stm32/stm32f4x1/s-bbmcpa.adb diff --git a/arm/stm32/stm32f401/s-bbmcpa.ads b/arm/stm32/stm32f4x1/s-bbmcpa.ads similarity index 100% rename from arm/stm32/stm32f401/s-bbmcpa.ads rename to arm/stm32/stm32f4x1/s-bbmcpa.ads diff --git a/arm/stm32/stm32f401/s-stm32.adb b/arm/stm32/stm32f4x1/s-stm32.adb similarity index 100% rename from arm/stm32/stm32f401/s-stm32.adb rename to arm/stm32/stm32f4x1/s-stm32.adb diff --git a/arm/stm32/stm32f401/svd/a-intnam.ads b/arm/stm32/stm32f4x1/svd/a-intnam.ads similarity index 100% rename from arm/stm32/stm32f401/svd/a-intnam.ads rename to arm/stm32/stm32f4x1/svd/a-intnam.ads diff --git a/arm/stm32/stm32f401/svd/handler.S b/arm/stm32/stm32f4x1/svd/handler.S similarity index 100% rename from arm/stm32/stm32f401/svd/handler.S rename to arm/stm32/stm32f4x1/svd/handler.S diff --git a/arm/stm32/stm32f401/svd/i-stm32-flash.ads b/arm/stm32/stm32f4x1/svd/i-stm32-flash.ads similarity index 100% rename from arm/stm32/stm32f401/svd/i-stm32-flash.ads rename to arm/stm32/stm32f4x1/svd/i-stm32-flash.ads diff --git a/arm/stm32/stm32f401/svd/i-stm32-gpio.ads b/arm/stm32/stm32f4x1/svd/i-stm32-gpio.ads similarity index 100% rename from arm/stm32/stm32f401/svd/i-stm32-gpio.ads rename to arm/stm32/stm32f4x1/svd/i-stm32-gpio.ads diff --git a/arm/stm32/stm32f401/svd/i-stm32-pwr.ads b/arm/stm32/stm32f4x1/svd/i-stm32-pwr.ads similarity index 100% rename from arm/stm32/stm32f401/svd/i-stm32-pwr.ads rename to arm/stm32/stm32f4x1/svd/i-stm32-pwr.ads diff --git a/arm/stm32/stm32f401/svd/i-stm32-rcc.ads b/arm/stm32/stm32f4x1/svd/i-stm32-rcc.ads similarity index 100% rename from arm/stm32/stm32f401/svd/i-stm32-rcc.ads rename to arm/stm32/stm32f4x1/svd/i-stm32-rcc.ads diff --git a/arm/stm32/stm32f401/svd/i-stm32-syscfg.ads b/arm/stm32/stm32f4x1/svd/i-stm32-syscfg.ads similarity index 100% rename from arm/stm32/stm32f401/svd/i-stm32-syscfg.ads rename to arm/stm32/stm32f4x1/svd/i-stm32-syscfg.ads diff --git a/arm/stm32/stm32f401/svd/i-stm32-usart.ads b/arm/stm32/stm32f4x1/svd/i-stm32-usart.ads similarity index 100% rename from arm/stm32/stm32f401/svd/i-stm32-usart.ads rename to arm/stm32/stm32f4x1/svd/i-stm32-usart.ads diff --git a/arm/stm32/stm32f401/svd/i-stm32.ads b/arm/stm32/stm32f4x1/svd/i-stm32.ads similarity index 100% rename from arm/stm32/stm32f401/svd/i-stm32.ads rename to arm/stm32/stm32f4x1/svd/i-stm32.ads diff --git a/build_rts.py b/build_rts.py index 0a558d51..55db99d0 100755 --- a/build_rts.py +++ b/build_rts.py @@ -95,6 +95,8 @@ def build_configs(target): t = Stm32(target) elif target == 'nucleo_f401re': t = Stm32(target) + elif target == 'nucleo_f411re': + t = Stm32(target) elif target == 'openmv2': t = Stm32(target) elif target == 'tms570': diff --git a/install.py b/install.py index d6d0a7f4..1925e8e0 100755 --- a/install.py +++ b/install.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright (C) 2016-2020, AdaCore # @@ -22,7 +22,7 @@ def usage(): print(" available. The runtimes are installed in the toolchain itself.") -ALL_BSP = {'arm-eabi': ['stm32f4', 'nucleo_f401re', 'stm32f429disco', +ALL_BSP = {'arm-eabi': ['stm32f4', 'nucleo_f401re', 'nucleo_f411re', 'stm32f429disco', 'stm32f469disco', 'stm32f746disco', 'stm32756geval', 'stm32f769disco', 'samg55', 'sam4s', 'samv71', 'openmv2', 'rpi2', From 8f4d461d74bacfd3888d4e87df717201adb6c59b Mon Sep 17 00:00:00 2001 From: Fred Date: Wed, 3 Nov 2021 11:35:51 +0100 Subject: [PATCH 2/6] Removed useless ld file --- arm/stm32/stm32f4x1/memory-map.ld | 48 ------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 arm/stm32/stm32f4x1/memory-map.ld diff --git a/arm/stm32/stm32f4x1/memory-map.ld b/arm/stm32/stm32f4x1/memory-map.ld deleted file mode 100644 index 5b3d1c53..00000000 --- a/arm/stm32/stm32f4x1/memory-map.ld +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** - * * - * GNAT COMPILER COMPONENTS * - * * - * A R M * - * * - * Linker Script File * - * * - * Copyright (C) 1999-2002 Universidad Politecnica de Madrid * - * Copyright (C) 2003-2006 The European Space Agency * - * Copyright (C) 2003-2015 AdaCore * - * * - * GNAT is free software; you can redistribute it and/or modify it under * - * terms of the GNU General Public License as published by the Free Soft- * - * ware Foundation; either version 2, or (at your option) any later ver- * - * sion. GNAT is distributed in the hope that it will be useful, but WITH- * - * OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * - * for more details. You should have received a copy of the GNU General * - * Public License distributed with GNAT; see file COPYING. If not, write * - * to the Free Software Foundation, 51 Franklin Street, Fifth Floor, * - * Boston, MA 02110-1301, USA. * - * * - * As a special exception, if you link this file with other files to * - * produce an executable, this file does not by itself cause the resulting * - * executable to be covered by the GNU General Public License. This except- * - * ion does not however invalidate any other reasons why the executable * - * file might be covered by the GNU Public License. * - * * - * GNARL was developed by the GNARL team at Florida State University. * - * Extensive contributions were provided by Ada Core Technologies, Inc. * - * The executive was developed by the Real-Time Systems Group at the * - * Technical University of Madrid. * - * * - ****************************************************************************/ - -MEMORY -{ - flash (rx) : ORIGIN = 0x08000000, LENGTH = 512K - sram12 (rwx) : ORIGIN = 0x20000000, LENGTH = "${STM32_SRAM_Size}" - ccm (rw) : ORIGIN = 0x10000000, LENGTH = 64K -} - -REGION_ALIAS("sram_tx", sram12) -REGION_ALIAS("sram_ro", sram12) -REGION_ALIAS("sram_bs", sram12) -REGION_ALIAS("sram_da", sram12) -REGION_ALIAS("ccm_da", ccm) From 97c9a01ed1f9d18eb7ceb5fefd355bed35704e05 Mon Sep 17 00:00:00 2001 From: Fred Date: Wed, 3 Nov 2021 16:32:48 +0100 Subject: [PATCH 3/6] Changed template variables to match STMF40x --- arm/cortexm.py | 8 ++++++-- arm/stm32/stm32f4x1/memory-map.ld.tmpl | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/arm/cortexm.py b/arm/cortexm.py index 246d7f97..b9ec3cce 100644 --- a/arm/cortexm.py +++ b/arm/cortexm.py @@ -835,12 +835,16 @@ def __init__(self): 'nucleo_f401re': {'STM32_Main_Clock_Frequency': '168_000_000', 'STM32_HSE_Clock_Frequency': '8_000_000', 'STM32_FLASH_Latency': '5', - 'STM32_SRAM_Size': '96K'}, + 'STM32_Linker_RAM_Size': '96K', + 'STM32_Linker_Flash_Size': '512K', + 'STM32_Linker_CCM_Size': '64K'}, 'nucleo_f411re': {'STM32_Main_Clock_Frequency': '168_000_000', 'STM32_HSE_Clock_Frequency': '8_000_000', 'STM32_FLASH_Latency': '5', - 'STM32_SRAM_Size': '128K'}, + 'STM32_Linker_RAM_Size': '128K', + 'STM32_Linker_Flash_Size': '512K', + 'STM32_Linker_CCM_Size': '64K'}, 'feather_stm32f405': {'STM32_Main_Clock_Frequency': '168_000_000', 'STM32_HSE_Clock_Frequency': '12_000_000', diff --git a/arm/stm32/stm32f4x1/memory-map.ld.tmpl b/arm/stm32/stm32f4x1/memory-map.ld.tmpl index 5b3d1c53..80bc4b43 100644 --- a/arm/stm32/stm32f4x1/memory-map.ld.tmpl +++ b/arm/stm32/stm32f4x1/memory-map.ld.tmpl @@ -36,9 +36,9 @@ MEMORY { - flash (rx) : ORIGIN = 0x08000000, LENGTH = 512K - sram12 (rwx) : ORIGIN = 0x20000000, LENGTH = "${STM32_SRAM_Size}" - ccm (rw) : ORIGIN = 0x10000000, LENGTH = 64K + flash (rx) : ORIGIN = 0x08000000, LENGTH = "${STM32_Linker_Flash_Size}" + sram12 (rwx) : ORIGIN = 0x20000000, LENGTH = "${STM32_Linker_RAM_Size}" + ccm (rw) : ORIGIN = 0x10000000, LENGTH = "${STM32_Linker_CCM_Size}" } REGION_ALIAS("sram_tx", sram12) From 9b2ee705153c134d8ddce415541089fdb81e5df0 Mon Sep 17 00:00:00 2001 From: Fred Date: Wed, 3 Nov 2021 17:04:30 +0100 Subject: [PATCH 4/6] Fixed line length --- arm/cortexm.py | 5 +++-- install.py | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arm/cortexm.py b/arm/cortexm.py index b9ec3cce..5484737e 100644 --- a/arm/cortexm.py +++ b/arm/cortexm.py @@ -973,8 +973,9 @@ def __init__(self, board): elif self.mcu in ['stm32f4x1']: self.add_gnat_source('arm/stm32/stm32f4x1/s-stm32.adb') - self.add_linker_script('arm/stm32/%s/memory-map.ld.tmpl' % self.mcu) - + self.add_linker_script('arm/stm32/%s/memory-map.ld.tmpl' + % self.mcu) + elif self.mcu in ['stm32f429x', 'stm32f469x']: self.add_gnat_source('arm/stm32/stm32f429x/s-stm32.adb') diff --git a/install.py b/install.py index 1925e8e0..1fc4892c 100755 --- a/install.py +++ b/install.py @@ -22,7 +22,9 @@ def usage(): print(" available. The runtimes are installed in the toolchain itself.") -ALL_BSP = {'arm-eabi': ['stm32f4', 'nucleo_f401re', 'nucleo_f411re', 'stm32f429disco', +ALL_BSP = {'arm-eabi': ['stm32f4', + 'nucleo_f401re', 'nucleo_f411re', + 'stm32f429disco', 'stm32f469disco', 'stm32f746disco', 'stm32756geval', 'stm32f769disco', 'samg55', 'sam4s', 'samv71', 'openmv2', 'rpi2', From 7f7865743d50df74b6b27f91676a046ab19e0b3e Mon Sep 17 00:00:00 2001 From: Fred Date: Wed, 10 Nov 2021 21:38:33 +0100 Subject: [PATCH 5/6] Fixed clock setup for 411 and 401 Extend range for clock setups for 401re --- arm/cortexm.py | 4 ++-- arm/stm32/s-stm32.ads | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arm/cortexm.py b/arm/cortexm.py index 5484737e..a4e24cdb 100644 --- a/arm/cortexm.py +++ b/arm/cortexm.py @@ -832,14 +832,14 @@ def __init__(self): 'STM32_HSE_Clock_Frequency': '8_000_000', 'STM32_FLASH_Latency': '5'}, - 'nucleo_f401re': {'STM32_Main_Clock_Frequency': '168_000_000', + 'nucleo_f401re': {'STM32_Main_Clock_Frequency': '84_000_000', 'STM32_HSE_Clock_Frequency': '8_000_000', 'STM32_FLASH_Latency': '5', 'STM32_Linker_RAM_Size': '96K', 'STM32_Linker_Flash_Size': '512K', 'STM32_Linker_CCM_Size': '64K'}, - 'nucleo_f411re': {'STM32_Main_Clock_Frequency': '168_000_000', + 'nucleo_f411re': {'STM32_Main_Clock_Frequency': '100_000_000', 'STM32_HSE_Clock_Frequency': '8_000_000', 'STM32_FLASH_Latency': '5', 'STM32_Linker_RAM_Size': '128K', diff --git a/arm/stm32/s-stm32.ads b/arm/stm32/s-stm32.ads index 239c6381..25555794 100644 --- a/arm/stm32/s-stm32.ads +++ b/arm/stm32/s-stm32.ads @@ -171,7 +171,7 @@ package System.STM32 is subtype HSECLK_Range is Integer range 1_000_000 .. 26_000_000; subtype PLLIN_Range is Integer range 950_000 .. 2_000_000; - subtype PLLVC0_Range is Integer range 192_000_000 .. 432_000_000; + subtype PLLVC0_Range is Integer range 168_000_000 .. 432_000_000; subtype PLLOUT_Range is Integer range 24_000_000 .. 216_000_000; subtype SYSCLK_Range is Integer range 1 .. 216_000_000; subtype HCLK_Range is Integer range 1 .. 216_000_000; From bffb73453aaed00ee59e3627cb47c4d63b62dd25 Mon Sep 17 00:00:00 2001 From: Fred Date: Thu, 11 Nov 2021 00:32:16 +0100 Subject: [PATCH 6/6] Added interrupts for USARTs --- arm/stm32/stm32f4x1/svd/a-intnam.ads | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arm/stm32/stm32f4x1/svd/a-intnam.ads b/arm/stm32/stm32f4x1/svd/a-intnam.ads index ce2788a5..ff247d2b 100644 --- a/arm/stm32/stm32f4x1/svd/a-intnam.ads +++ b/arm/stm32/stm32f4x1/svd/a-intnam.ads @@ -90,6 +90,12 @@ package Ada.Interrupts.Names is -- SPI2 global interrupt SPI2_Interrupt : constant Interrupt_ID := 36; + -- USART1 global interrupt + USART1_Interrupt : constant Interrupt_ID := 37; + + -- USART2 global interrupt + USART2_Interrupt : constant Interrupt_ID := 38; + -- EXTI Line[15:10] interrupts EXTI15_10_Interrupt : constant Interrupt_ID := 40;