Skip to content

Commit b197b50

Browse files
authored
[stm32] move CMSIS hearder files to common folder (#5998)
* [stm32] move CMSIS hearder files to common folder * add CMSIS new sconscript
1 parent 433f0c7 commit b197b50

File tree

399 files changed

+4
-527317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

399 files changed

+4
-527317
lines changed

bsp/stm32/libraries/HAL_Drivers/SConscript

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ from building import *
55
cwd = GetCurrentDir()
66

77
# add the general drivers.
8-
src = Split("""
9-
""")
8+
src = []
109

1110
if GetDepend(['RT_USING_PIN']):
1211
src += ['drv_gpio.c']
@@ -111,6 +110,9 @@ src += ['drv_common.c']
111110
path = [cwd]
112111
path += [cwd + '/config']
113112

113+
if not GetDepend('PKG_CMSIS_CORE'):
114+
path += [cwd + '/CMSIS/Include']
115+
114116
if GetDepend('BSP_USING_ON_CHIP_FLASH'):
115117
path += [cwd + '/drv_flash']
116118

bsp/stm32/libraries/STM32F0xx_HAL/SConscript

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
7979
path = [cwd + '/CMSIS/Device/ST/STM32F0xx/Include',
8080
cwd + '/STM32F0xx_HAL_Driver/Inc']
8181

82-
if not GetDepend('PKG_CMSIS_CORE'):
83-
path += [cwd + '/CMSIS/Include']
84-
8582
CPPDEFINES = ['USE_HAL_DRIVER']
8683
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
8784

0 commit comments

Comments
 (0)