diff options
| author | armink <[email protected]> | 2018-11-26 13:34:33 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2018-11-26 13:34:33 +0800 |
| commit | 7a6034fdf7c26c9d51dd7edb0d47967e3ef2373b (patch) | |
| tree | 1ee2944d36f64b70f996492ceb91c9f52efa79ae /components/drivers/spi/SConscript | |
| parent | c19848d63e9522740ed623462e45206df610b5d1 (diff) | |
[DeviceDriver] Add RT_USING_QSPI macro.
Diffstat (limited to 'components/drivers/spi/SConscript')
| -rw-r--r-- | components/drivers/spi/SConscript | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index 0343fb8d13..b88671ebc9 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -2,10 +2,13 @@ from building import * import rtconfig cwd = GetCurrentDir() -src = ['spi_core.c', 'spi_dev.c', 'qspi_core.c'] +src = ['spi_core.c', 'spi_dev.c'] CPPPATH = [cwd, cwd + '/../include'] LOCAL_CCFLAGS = '' +if GetDepend('RT_USING_QSPI'): + src += ['qspi_core.c'] + src_device = [] if GetDepend('RT_USING_SPI_WIFI'): |
