[cmsis] avoid conflict between cmsis5 and bsp cmsis
This commit is contained in:
parent
4171fcbb06
commit
96dd783f37
|
@ -77,8 +77,10 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
|
|||
src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c']
|
||||
|
||||
path = [cwd + '/CMSIS/Device/ST/STM32F0xx/Include',
|
||||
cwd + '/STM32F0xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/STM32F0xx_HAL_Driver/Inc']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -83,8 +83,10 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
|
|||
src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c']
|
||||
|
||||
path = [cwd + '/CMSIS/Device/ST/STM32F1xx/Include',
|
||||
cwd + '/STM32F1xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/STM32F1xx_HAL_Driver/Inc']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -78,8 +78,10 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
|
|||
src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_flash_ex.c']
|
||||
|
||||
path = [cwd + '/CMSIS/Device/ST/STM32F2xx/Include',
|
||||
cwd + '/STM32F2xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/STM32F2xx_HAL_Driver/Inc']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -81,8 +81,10 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
|
|||
src += ['STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_flash_ex.c']
|
||||
|
||||
path = [cwd + '/STM32F3xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32F3xx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32F3xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -109,8 +109,10 @@ if GetDepend(['BSP_USING_LTDC']):
|
|||
src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dsi.c']
|
||||
|
||||
path = [cwd + '/STM32F4xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32F4xx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32F4xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -102,8 +102,10 @@ if GetDepend(['BSP_USING_LTDC']):
|
|||
src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dsi.c']
|
||||
|
||||
path = [cwd + '/STM32F7xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32F7xx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32F7xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -56,8 +56,10 @@ if GetDepend(['RT_USING_RTC']):
|
|||
src += ['STM32G0xx_HAL_Driver/Src/stm32g0xx_ll_rtc.c']
|
||||
|
||||
path = [cwd + '/STM32G0xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32G0xx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32G0xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -106,8 +106,10 @@ if GetDepend(['BSP_USING_LTDC']):
|
|||
src += ['STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dsi.c']
|
||||
|
||||
path = [cwd + '/STM32G4xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32G4xx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32G4xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -108,8 +108,10 @@ if GetDepend(['BSP_USING_DCMI']):
|
|||
src += ['STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dcmi.c']
|
||||
|
||||
path = [cwd + '/STM32H7xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32H7xx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32H7xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -84,8 +84,10 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
|
|||
src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_flash_ramfunc.c']
|
||||
|
||||
path = [cwd + '/STM32L0xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32L0xx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32L0xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -66,15 +66,15 @@ if GetDepend(['RT_USING_SDIO']):
|
|||
if GetDepend(['RT_USING_AUDIO']):
|
||||
src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_i2s.c']
|
||||
|
||||
|
||||
|
||||
if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
|
||||
src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_flash.c']
|
||||
src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_flash_ex.c']
|
||||
|
||||
path = [cwd + '/CMSIS/Device/ST/STM32L1xx/Include',
|
||||
cwd + '/STM32L1xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/STM32L1xx_HAL_Driver/Inc']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -109,12 +109,12 @@ if GetDepend(['BSP_USING_DSI']):
|
|||
|
||||
if GetDepend(['BSP_USING_SRAM']):
|
||||
src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_sram.c']
|
||||
|
||||
|
||||
|
||||
path = [cwd + '/STM32L4xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32L4xx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32L4xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -124,9 +124,10 @@ if GetDepend(['BSP_USING_RTC']):
|
|||
src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_rtc_ex.c']
|
||||
|
||||
path = [cwd + '/STM32MP1xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32MP1xx/Include',
|
||||
cwd + '/CMSIS/Core/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32MP1xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -111,11 +111,11 @@ if GetDepend(['BSP_USING_DSI']):
|
|||
if GetDepend(['BSP_USING_SRAM']):
|
||||
src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_sram.c']
|
||||
|
||||
|
||||
|
||||
path = [cwd + '/STM32U5xx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32U5xx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32U5xx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -76,13 +76,12 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
|
|||
src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_flash.c']
|
||||
src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_flash_ex.c']
|
||||
# src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_flash_ramfunc.c']
|
||||
|
||||
|
||||
|
||||
|
||||
path = [cwd + '/STM32WBxx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32WBxx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32WBxx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
|
@ -69,8 +69,10 @@ if GetDepend(['BSP_USING_SUBGHZ']):
|
|||
src += ['STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_subghz.c']
|
||||
|
||||
path = [cwd + '/STM32WLxx_HAL_Driver/Inc',
|
||||
cwd + '/CMSIS/Device/ST/STM32WLxx/Include',
|
||||
cwd + '/CMSIS/Include']
|
||||
cwd + '/CMSIS/Device/ST/STM32WLxx/Include']
|
||||
|
||||
if not GetDepend('PKG_CMSIS_CORE'):
|
||||
path += [cwd + '/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_HAL_DRIVER']
|
||||
group = DefineGroup('STM32_HAL', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
|
Loading…
Reference in New Issue