Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
职场007
rt-thread
提交
c55e6694
R
rt-thread
项目概览
职场007
/
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c55e6694
编写于
2月 12, 2023
作者:
M
Moss
提交者:
mysterywolf
2月 12, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devicedrivers] Fix typo in sfud error messages
上级
1eec660b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
9 deletion
+9
-9
components/drivers/spi/sfud/src/sfud.c
components/drivers/spi/sfud/src/sfud.c
+6
-6
components/drivers/spi/sfud/src/sfud_sfdp.c
components/drivers/spi/sfud/src/sfud_sfdp.c
+3
-3
未找到文件。
components/drivers/spi/sfud/src/sfud.c
浏览文件 @
c55e6694
...
...
@@ -95,10 +95,10 @@ sfud_err sfud_device_init(sfud_flash *flash) {
}
if
(
result
==
SFUD_SUCCESS
)
{
flash
->
init_ok
=
true
;
SFUD_INFO
(
"%s flash device i
s initialize success
."
,
flash
->
name
);
SFUD_INFO
(
"%s flash device i
nitialized successfully
."
,
flash
->
name
);
}
else
{
flash
->
init_ok
=
false
;
SFUD_INFO
(
"Error: %s flash device i
s initialize fail
."
,
flash
->
name
);
SFUD_INFO
(
"Error: %s flash device i
nitialization failed
."
,
flash
->
name
);
}
return
result
;
...
...
@@ -325,7 +325,7 @@ static sfud_err hardware_init(sfud_flash *flash) {
if
(
flash
->
chip
.
capacity
==
0
||
flash
->
chip
.
write_mode
==
0
||
flash
->
chip
.
erase_gran
==
0
||
flash
->
chip
.
erase_gran_cmd
==
0
)
{
SFUD_INFO
(
"Warning: This flash device is not found or not support."
);
SFUD_INFO
(
"Warning: This flash device is not found or not support
ed
."
);
return
SFUD_ERR_NOT_FOUND
;
}
else
{
const
char
*
flash_mf_name
=
NULL
;
...
...
@@ -338,12 +338,12 @@ static sfud_err hardware_init(sfud_flash *flash) {
}
/* print manufacturer and flash chip name */
if
(
flash_mf_name
&&
flash
->
chip
.
name
)
{
SFUD_INFO
(
"F
i
nd a %s %s flash chip. Size is %ld bytes."
,
flash_mf_name
,
flash
->
chip
.
name
,
SFUD_INFO
(
"F
ou
nd a %s %s flash chip. Size is %ld bytes."
,
flash_mf_name
,
flash
->
chip
.
name
,
flash
->
chip
.
capacity
);
}
else
if
(
flash_mf_name
)
{
SFUD_INFO
(
"F
i
nd a %s flash chip. Size is %ld bytes."
,
flash_mf_name
,
flash
->
chip
.
capacity
);
SFUD_INFO
(
"F
ou
nd a %s flash chip. Size is %ld bytes."
,
flash_mf_name
,
flash
->
chip
.
capacity
);
}
else
{
SFUD_INFO
(
"F
i
nd a flash chip. Size is %ld bytes."
,
flash
->
chip
.
capacity
);
SFUD_INFO
(
"F
ou
nd a flash chip. Size is %ld bytes."
,
flash
->
chip
.
capacity
);
}
}
...
...
components/drivers/spi/sfud/src/sfud_sfdp.c
浏览文件 @
c55e6694
...
...
@@ -85,7 +85,7 @@ bool sfud_read_sfdp(sfud_flash *flash) {
if
(
read_sfdp_header
(
flash
)
&&
read_basic_header
(
flash
,
&
basic_header
))
{
return
read_basic_table
(
flash
,
&
basic_header
);
}
else
{
SFUD_INFO
(
"Warning: Read SFDP parameter header information failed. The %s
i
s not support JEDEC SFDP."
,
flash
->
name
);
SFUD_INFO
(
"Warning: Read SFDP parameter header information failed. The %s
doe
s not support JEDEC SFDP."
,
flash
->
name
);
return
false
;
}
}
...
...
@@ -125,7 +125,7 @@ static bool read_sfdp_header(sfud_flash *flash) {
sfdp
->
minor_rev
=
header
[
4
];
sfdp
->
major_rev
=
header
[
5
];
if
(
sfdp
->
major_rev
>
SUPPORT_MAX_SFDP_MAJOR_REV
)
{
SFUD_INFO
(
"Error: This reversion(V%d.%d) SFDP is not supported."
,
sfdp
->
major_rev
,
sfdp
->
minor_rev
);
SFUD_INFO
(
"Error: This reversion(V%d.%d)
of
SFDP is not supported."
,
sfdp
->
major_rev
,
sfdp
->
minor_rev
);
return
false
;
}
SFUD_DEBUG
(
"Check SFDP header is OK. The reversion is V%d.%d, NPN is %d."
,
sfdp
->
major_rev
,
sfdp
->
minor_rev
,
...
...
@@ -162,7 +162,7 @@ static bool read_basic_header(const sfud_flash *flash, sfdp_para_header *basic_h
basic_header
->
ptp
=
(
long
)
header
[
4
]
|
(
long
)
header
[
5
]
<<
8
|
(
long
)
header
[
6
]
<<
16
;
/* check JEDEC basic flash parameter header */
if
(
basic_header
->
major_rev
>
SUPPORT_MAX_SFDP_MAJOR_REV
)
{
SFUD_INFO
(
"Error: This reversion(V%d.%d) JEDEC basic flash parameter header is not supported."
,
SFUD_INFO
(
"Error: This reversion(V%d.%d)
of
JEDEC basic flash parameter header is not supported."
,
basic_header
->
major_rev
,
basic_header
->
minor_rev
);
return
false
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录