blob: 9f10c2a9d785442b147d470861d99bc79fc87678 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
import rtconfig
from building import *
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Split('''
CMSIS/GD/GD32H7xx/Source/system_gd32h7xx.c
GD32H7xx_standard_peripheral/Source/gd32h7xx_gpio.c
GD32H7xx_standard_peripheral/Source/gd32h7xx_rcu.c
GD32H7xx_standard_peripheral/Source/gd32h7xx_exti.c
GD32H7xx_standard_peripheral/Source/gd32h7xx_misc.c
GD32H7xx_standard_peripheral/Source/gd32h7xx_syscfg.c
GD32H7xx_standard_peripheral/Source/gd32h7xx_pmu.c
''')
if GetDepend(['RT_USING_SERIAL']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_usart.c']
if GetDepend(['RT_USING_I2C']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_i2c.c']
if GetDepend(['RT_USING_SPI']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_spi.c']
if GetDepend(['RT_USING_CAN']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_can.c']
if GetDepend(['BSP_USING_ETH']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_enet.c']
if GetDepend(['RT_USING_ADC']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_adc.c']
if GetDepend(['RT_USING_DAC']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_dac.c']
if GetDepend(['RT_USING_RTC']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_rtc.c']
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_pmu.c']
if GetDepend(['RT_USING_WDT']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_wwdgt.c']
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_fwdgt.c']
if GetDepend(['RT_USING_SDIO']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_sdio.c']
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_dma.c']
if GetDepend(['BSP_USING_SDRAM']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_fmc.c']
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_exmc.c']
if GetDepend(['BSP_USING_TLI']):
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_tli.c']
src += ['GD32H7xx_standard_peripheral/Source/gd32h7xx_ipa.c']
path = [
cwd + '/CMSIS/GD/GD32H7xx/Include',
cwd + '/CMSIS',
cwd + '/GD32H7xx_standard_peripheral/Include',]
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group')
|