SConscript 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import rtconfig
  2. from building import *
  3. Import('SDK_LIB')
  4. cwd = GetCurrentDir()
  5. # add the general drivers.
  6. src = Glob('board.c')
  7. src += Glob('CubeMX_Config/Src/stm32f7xx_hal_msp.c')
  8. path = [cwd]
  9. path += [cwd + '/CubeMX_Config/Inc']
  10. path += [cwd + '/ports']
  11. startup_path_prefix = SDK_LIB
  12. if rtconfig.PLATFORM in ['gcc']:
  13. src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f723xx.s']
  14. elif rtconfig.PLATFORM in ['armcc', 'armclang']:
  15. src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f723xx.s']
  16. elif rtconfig.PLATFORM in ['iccarm']:
  17. src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/iar/startup_stm32f723xx.s']
  18. # STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx ||
  19. # STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx ||
  20. # STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx || STM32F750xx
  21. # You can select chips from the list above
  22. CPPDEFINES = ['STM32F723xx']
  23. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  24. Return('group')