mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-02 14:23:19 +08:00
26 lines
558 B
Python
26 lines
558 B
Python
import os
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
# add general drivers
|
|
src = Split('''
|
|
board.c
|
|
CubeMX_Config/Src/stm32f1xx_hal_msp.c
|
|
''')
|
|
|
|
|
|
path = [cwd]
|
|
path += [cwd + '/CubeMX_Config/Inc']
|
|
path += [cwd + '/ports']
|
|
|
|
# STM32F100xB || STM32F100xE || STM32F101x6
|
|
# STM32F101xB || STM32F101xE || STM32F101xG
|
|
# STM32F102x6 || STM32F102xB || STM32F103x6
|
|
# STM32F103xB || STM32F103xE || STM32F103xG
|
|
# STM32F105xC || STM32F107xC)
|
|
# You can select chips from the list above
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
|
Return('group')
|