Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
15b2feb6
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
15b2feb6
编写于
11月 24, 2018
作者:
armink_ztl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[DeviceDriver] Update QSPI driver framework.
上级
2ca59951
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
4 deletion
+8
-4
components/drivers/Kconfig
components/drivers/Kconfig
+4
-0
components/drivers/include/drivers/spi.h
components/drivers/include/drivers/spi.h
+2
-2
components/drivers/spi/SConscript
components/drivers/spi/SConscript
+1
-1
components/drivers/spi/qspi_core.c
components/drivers/spi/qspi_core.c
+1
-1
未找到文件。
components/drivers/Kconfig
浏览文件 @
15b2feb6
...
...
@@ -185,6 +185,10 @@ config RT_USING_SPI
config RT_SFUD_USING_FLASH_INFO_TABLE
bool "Using defined supported flash chip information table"
default y
config RT_SFUD_USING_QSPI
bool "Using QSPI mode support"
default n
config RT_DEBUG_SFUD
bool "Show more SFUD debug information"
...
...
components/drivers/include/drivers/spi.h
浏览文件 @
15b2feb6
...
...
@@ -144,8 +144,8 @@ struct rt_qspi_configuration
rt_uint32_t
medium_size
;
/* double data rate mode */
rt_uint8_t
ddr_mode
;
/* the
number of lines connected to the hardware
*/
rt_uint8_t
qspi_
hw_lines
;
/* the
data lines max width which QSPI bus supported, such as 1, 2, 4
*/
rt_uint8_t
qspi_
dl_width
;
};
struct
rt_qspi_device
...
...
components/drivers/spi/SConscript
浏览文件 @
15b2feb6
...
...
@@ -2,7 +2,7 @@ from building import *
import
rtconfig
cwd
=
GetCurrentDir
()
src
=
[
'spi_core.c'
,
'spi_dev.c'
]
src
=
[
'spi_core.c'
,
'spi_dev.c'
,
'qspi_core.c'
]
CPPPATH
=
[
cwd
,
cwd
+
'/../include'
]
LOCAL_CCFLAGS
=
''
...
...
components/drivers/spi/qspi_core.c
浏览文件 @
15b2feb6
...
...
@@ -25,7 +25,7 @@ rt_err_t rt_qspi_configure(struct rt_qspi_device *device, struct rt_qspi_configu
qspi_device
->
config
.
parent
.
reserved
=
cfg
->
parent
.
reserved
;
qspi_device
->
config
.
medium_size
=
cfg
->
medium_size
;
qspi_device
->
config
.
ddr_mode
=
cfg
->
ddr_mode
;
qspi_device
->
config
.
qspi_
hw_lines
=
cfg
->
qspi_hw_lines
;
qspi_device
->
config
.
qspi_
dl_width
=
cfg
->
qspi_dl_width
;
result
=
rt_spi_configure
(
&
device
->
parent
,
&
cfg
->
parent
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录