提交 7a6034fd 编写于 作者: armink_ztl's avatar armink_ztl

[DeviceDriver] Add RT_USING_QSPI macro.

上级 c19848d6
...@@ -168,7 +168,11 @@ config RT_USING_SPI ...@@ -168,7 +168,11 @@ config RT_USING_SPI
bool "Using SPI Bus/Device device drivers" bool "Using SPI Bus/Device device drivers"
default n 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 config RT_USING_SPI_MSD
bool "Using SD/TF card driver with spi" bool "Using SD/TF card driver with spi"
select RT_USING_DFS select RT_USING_DFS
...@@ -188,6 +192,7 @@ config RT_USING_SPI ...@@ -188,6 +192,7 @@ config RT_USING_SPI
config RT_SFUD_USING_QSPI config RT_SFUD_USING_QSPI
bool "Using QSPI mode support" bool "Using QSPI mode support"
select RT_USING_QSPI
default n default n
config RT_DEBUG_SFUD config RT_DEBUG_SFUD
......
...@@ -2,10 +2,13 @@ from building import * ...@@ -2,10 +2,13 @@ from building import *
import rtconfig import rtconfig
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = ['spi_core.c', 'spi_dev.c', 'qspi_core.c'] src = ['spi_core.c', 'spi_dev.c']
CPPPATH = [cwd, cwd + '/../include'] CPPPATH = [cwd, cwd + '/../include']
LOCAL_CCFLAGS = '' LOCAL_CCFLAGS = ''
if GetDepend('RT_USING_QSPI'):
src += ['qspi_core.c']
src_device = [] src_device = []
if GetDepend('RT_USING_SPI_WIFI'): if GetDepend('RT_USING_SPI_WIFI'):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册