Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
7ed40117
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7ed40117
编写于
4月 26, 2008
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Coding Style cleanup, update CHANGELOG
Signed-off-by:
N
Wolfgang Denk
<
wd@denx.de
>
上级
f9204e15
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
860 addition
and
17 deletion
+860
-17
CHANGELOG
CHANGELOG
+845
-0
lib_generic/crc32.c
lib_generic/crc32.c
+2
-2
post/board/lwmon5/sysmon.c
post/board/lwmon5/sysmon.c
+13
-15
未找到文件。
CHANGELOG
浏览文件 @
7ed40117
此差异已折叠。
点击以展开。
lib_generic/crc32.c
浏览文件 @
7ed40117
...
...
@@ -54,7 +54,7 @@ local void make_crc_table()
{
uint32_t
c
;
int
n
,
k
;
uLong
poly
;
/* polynomial exclusive-or pattern */
uLong
poly
;
/* polynomial exclusive-or pattern */
/* terms of polynomial defining this crc (except x^32): */
static
const
Byte
p
[]
=
{
0
,
1
,
2
,
4
,
5
,
7
,
8
,
10
,
11
,
12
,
16
,
22
,
23
,
26
};
...
...
@@ -220,7 +220,7 @@ uint32_t ZEXPORT crc32_wd (uint32_t crc,
WATCHDOG_RESET
();
}
#else
crc
=
crc32
(
crc
,
buf
,
len
);
crc
=
crc32
(
crc
,
buf
,
len
);
#endif
return
crc
;
...
...
post/board/lwmon5/sysmon.c
浏览文件 @
7ed40117
...
...
@@ -32,9 +32,9 @@
* The test passes when all the following voltages and temperatures
* are within allowed ranges:
*
* Temperature
-40 .. +85 C
* +5V
+4.75 .. +5.25 V
* +5V standby
+4.75 .. +5.25 V
* Temperature
-40 .. +85 C
* +5V
+4.75 .. +5.25 V
* +5V standby
+4.75 .. +5.25 V
*
* LCD backlight is not enabled if temperature values are not within
* allowed ranges (-30 .. + 80). The brightness of backlite can be
...
...
@@ -107,17 +107,17 @@ struct sysmon_table_s
static
sysmon_table_t
sysmon_table
[]
=
{
{
"Temperature"
,
" C"
,
&
sysmon_dspic
,
NULL
,
sysmon_backlight_disable
,
1
,
1
,
-
32768
,
32767
,
0xFFFF
,
0x8000
-
40
,
0x8000
+
85
,
0
,
0x8000
-
30
,
0x8000
+
80
,
0
,
0x12BC
},
{
"Temperature"
,
" C"
,
&
sysmon_dspic
,
NULL
,
sysmon_backlight_disable
,
1
,
1
,
-
32768
,
32767
,
0xFFFF
,
0x8000
-
40
,
0x8000
+
85
,
0
,
0x8000
-
30
,
0x8000
+
80
,
0
,
0x12BC
},
{
"+ 5 V"
,
"V"
,
&
sysmon_dspic
,
NULL
,
NULL
,
100
,
1000
,
-
0x8000
,
0x7FFF
,
0xFFFF
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x12CA
},
{
"+ 5 V"
,
"V"
,
&
sysmon_dspic
,
NULL
,
NULL
,
100
,
1000
,
-
0x8000
,
0x7FFF
,
0xFFFF
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x12CA
},
{
"+ 5 V standby"
,
"V"
,
&
sysmon_dspic
,
NULL
,
NULL
,
100
,
1000
,
-
0x8000
,
0x7FFF
,
0xFFFF
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x12C6
},
{
"+ 5 V standby"
,
"V"
,
&
sysmon_dspic
,
NULL
,
NULL
,
100
,
1000
,
-
0x8000
,
0x7FFF
,
0xFFFF
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x8000
+
4750
,
0x8000
+
5250
,
0
,
0x12C6
},
};
static
int
sysmon_table_size
=
sizeof
(
sysmon_table
)
/
sizeof
(
sysmon_table
[
0
]);
...
...
@@ -156,8 +156,7 @@ static char *sysmon_unit_value (sysmon_table_t *s, uint val)
int
decimal
,
frac
;
int
unit_val
;
unit_val
=
s
->
unit_min
+
(
s
->
unit_max
-
s
->
unit_min
)
*
val
/
s
->
val_mask
;
unit_val
=
s
->
unit_min
+
(
s
->
unit_max
-
s
->
unit_min
)
*
val
/
s
->
val_mask
;
if
(
val
==
-
1
)
return
"I/O ERROR"
;
...
...
@@ -241,5 +240,4 @@ int sysmon_post_test (int flags)
return
res
;
}
#endif
/* CONFIG_POST & CFG_POST_SYSMON */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录