SConscript 1.1 KB
Newer Older
1 2 3
import rtconfig
from building import *

4 5
Import('SDK_LIB')

6 7 8 9 10 11 12 13 14
cwd = GetCurrentDir()

# add the general drivers.
src = Glob('board.c')
src += Glob('CubeMX_Config/Src/stm32f7xx_hal_msp.c')

path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']

15 16
startup_path_prefix = SDK_LIB

17
if rtconfig.PLATFORM in ['gcc']:
18
    src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f767xx.s']
19
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
20
    src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f767xx.s']
21
elif rtconfig.CROSS_TOOL == 'iar':
22
    src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/iar/startup_stm32f767xx.s']
23

S
SummerGift 已提交
24 25 26 27
# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx  || 
# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx  || 
# STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx  || STM32F750xx
# You can select chips from the list above
28 29 30
CPPDEFINES = ['STM32F767xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)

31
Return('group')