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 | |
| parent | c19848d63e9522740ed623462e45206df610b5d1 (diff) | |
[DeviceDriver] Add RT_USING_QSPI macro.
Diffstat (limited to 'components')
| -rwxr-xr-x | components/drivers/Kconfig | 7 | ||||
| -rw-r--r-- | components/drivers/spi/SConscript | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index 8c54fff033..9e97aac3c3 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -168,7 +168,11 @@ config RT_USING_SPI bool "Using SPI Bus/Device device drivers" default n - if RT_USING_SPI + if RT_USING_SPI + config RT_USING_QSPI + bool "Enable QSPI mode" + default n + config RT_USING_SPI_MSD bool "Using SD/TF card driver with spi" select RT_USING_DFS @@ -188,6 +192,7 @@ config RT_USING_SPI config RT_SFUD_USING_QSPI bool "Using QSPI mode support" + select RT_USING_QSPI default n config RT_DEBUG_SFUD 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'): |
