4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 05:43:31 +08:00
Sherman c5933a652c [add] 添加 flash 驱动
[add] 添加 SPI、flash、ADC、DAC 说明文档
2021-10-28 10:33:48 +08:00

21 lines
397 B
Python

from building import *
import rtconfig
cwd = GetCurrentDir()
src = []
src += Glob('*.c')
CPPPATH = [cwd]
LOCAL_CCFLAGS = ''
if rtconfig.CROSS_TOOL == 'gcc':
LOCAL_CCFLAGS += ' -std=c99'
elif rtconfig.CROSS_TOOL == 'keil':
LOCAL_CCFLAGS += ' --c99'
group = DefineGroup('FAL', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
Return('group')