summaryrefslogtreecommitdiff
path: root/bsp/stm32/libraries/STM32L5xx_HAL/SConscript
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-05-06 15:50:57 -0400
committerguo <[email protected]>2022-05-09 22:54:36 +0800
commit96dd783f37d44556c8d470a13b45b6bd4e28ac2c (patch)
tree385a32ca1f5c32f7196a34b32d3e0ba8a3b8352d /bsp/stm32/libraries/STM32L5xx_HAL/SConscript
parent4171fcbb0612aa928f98797e3a982a0921cea35e (diff)
[cmsis] avoid conflict between cmsis5 and bsp cmsis
Diffstat (limited to 'bsp/stm32/libraries/STM32L5xx_HAL/SConscript')
-rw-r--r--bsp/stm32/libraries/STM32L5xx_HAL/SConscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/bsp/stm32/libraries/STM32L5xx_HAL/SConscript b/bsp/stm32/libraries/STM32L5xx_HAL/SConscript
index 5b295a278d..7c5eebbbcf 100644
--- a/bsp/stm32/libraries/STM32L5xx_HAL/SConscript
+++ b/bsp/stm32/libraries/STM32L5xx_HAL/SConscript
@@ -109,12 +109,12 @@ if GetDepend(['BSP_USING_DSI']):
if GetDepend(['BSP_USING_SRAM']):
src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_sram.c']
-
-
path = [cwd + '/STM32L5xx_HAL_Driver/Inc',
- cwd + '/CMSIS/Device/ST/STM32L5xx/Include',
- cwd + '/CMSIS/Include']
+ cwd + '/CMSIS/Device/ST/STM32L5xx/Include']
+
+if not GetDepend('PKG_CMSIS_CORE'):
+ path += [cwd + '/CMSIS/Include']
CPPDEFINES = ['USE_HAL_DRIVER']
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)