From 6550d0e4987ed704d906967c30331fc909893175 Mon Sep 17 00:00:00 2001 From: YJIE_1998 <1039241323@qq.com> Date: Mon, 2 Aug 2021 19:53:57 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ignore_format.yml | 2 +- bsp/stm32/libraries/templates/stm32f3xx/board/SConscript | 9 +++++++-- bsp/stm32/stm32f302-st-nucleo/board/SConscript | 9 +++++++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.ignore_format.yml b/.ignore_format.yml index 6465fb14f2..1aa68c35d1 100644 --- a/.ignore_format.yml +++ b/.ignore_format.yml @@ -4,7 +4,7 @@ file_path: - bsp/allwinner_tina/libcpu/cpu.c -- bsp/stm32/libraries + dir_path: - tools - components/net/lwip-1.4.1 diff --git a/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript index 5ceee7422e..e51257b296 100644 --- a/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript +++ b/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript @@ -24,8 +24,13 @@ elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.CROSS_TOOL == 'iar': src += [startup_path_prefix + '/STM32F3xx_HAL/CMSIS/Device/ST/STM32F3xx/Source/Templates/iar/startup_stm32f302x8.s'] - -CPPDEFINES = ['STM32F302xx'] +# (STM32F301x8) || (STM32F302x8) || (STM32F318xx) +# (STM32F302xC) || (STM32F303xC) || (STM32F358xx) +# (STM32F303x8) || (STM32F334x8) || (STM32F328xx) +# (STM32F302xE) || (STM32F303xE) || (STM32F398xx) +# (STM32F373xC) || (STM32F378xx) +# You can select chips from the list above +CPPDEFINES = ['STM32F302x8'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32f302-st-nucleo/board/SConscript b/bsp/stm32/stm32f302-st-nucleo/board/SConscript index 5ceee7422e..e51257b296 100644 --- a/bsp/stm32/stm32f302-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32f302-st-nucleo/board/SConscript @@ -24,8 +24,13 @@ elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.CROSS_TOOL == 'iar': src += [startup_path_prefix + '/STM32F3xx_HAL/CMSIS/Device/ST/STM32F3xx/Source/Templates/iar/startup_stm32f302x8.s'] - -CPPDEFINES = ['STM32F302xx'] +# (STM32F301x8) || (STM32F302x8) || (STM32F318xx) +# (STM32F302xC) || (STM32F303xC) || (STM32F358xx) +# (STM32F303x8) || (STM32F334x8) || (STM32F328xx) +# (STM32F302xE) || (STM32F303xE) || (STM32F398xx) +# (STM32F373xC) || (STM32F378xx) +# You can select chips from the list above +CPPDEFINES = ['STM32F302x8'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group')