Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
DC360_1drap3_xiaoju_V1
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
丁雨邯
DC360_1drap3_xiaoju_V1
Commits
c8df0c15
提交
c8df0c15
authored
5月 05, 2020
作者:
wysheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
B枪模块切换顺序;模块切换继电器初始化
上级
fad481da
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
21 行删除
+30
-21
Drv_BoardIo.c
DcPillar/Src/Drivers/Drv_BoardIo.c
+9
-9
Drv_SmartAllocation_DcModule.c
DcPillar/Src/SmartAllocation/Drv_SmartAllocation_DcModule.c
+10
-1
SmartAllocation_B_ChgRun.c
DcPillar/Src/SmartAllocation/SmartAllocation_B_ChgRun.c
+11
-11
没有找到文件。
DcPillar/Src/Drivers/Drv_BoardIo.c
浏览文件 @
c8df0c15
...
...
@@ -695,36 +695,36 @@ void DcOutInit_Uni(void)
void
DcOutPosSet_Uni
(
EnumSwitchStatus
Set
)
{
if
(
eSwSta_Off
==
Set
)
/*
if(eSwSta_Off == Set)
DcOutPos_Uni_Port->BSRRH = DcOutPos_Uni_Pin;
else
DcOutPos_Uni_Port->BSRRL = DcOutPos_Uni_Pin;
DcOutPosSta_Uni
=
Set
;
DcOutPosSta_Uni = Set;
*/
}
void
DcOutNegSet_Uni
(
EnumSwitchStatus
Set
)
{
if
(
eSwSta_Off
==
Set
)
/*
if(eSwSta_Off == Set)
DcOutNeg_Uni_Port->BSRRH = DcOutNeg_Uni_Pin;
else
DcOutNeg_Uni_Port->BSRRL = DcOutNeg_Uni_Pin;
DcOutNegSta_Uni
=
Set
;
DcOutNegSta_Uni = Set;
*/
}
#if 1
void
DcOutSet_Uni
(
EnumSwitchStatus
Set
)
{
if
(
eSwSta_Off
==
Set
)
{
DcOutPosSet_Uni
(
Set
);
DcOutNegSet_Uni
(
Set
);
osTimerStop
(
DCOutDelayTimer_Uni
);
//
DcOutPosSet_Uni(Set);
//
DcOutNegSet_Uni(Set);
//
osTimerStop(DCOutDelayTimer_Uni);
}
else
if
(((
eSwSta_Off
==
DcOutGet
())
||
(
eSwSta_Off
==
DcOutGet_B
()))
&&
((
eSwSta_Off
==
DcOutPosGetSet
())
||
(
eSwSta_Off
==
DcOutPosGetSet_B
()))
)
{
//DcOutPosSet_Uni(Set);
DcOutNegSet_Uni
(
Set
);
osTimerStart
(
DCOutDelayTimer_Uni
,
200
);
//
DcOutNegSet_Uni(Set);
//
osTimerStart(DCOutDelayTimer_Uni, 200);
}
}
#else
...
...
DcPillar/Src/SmartAllocation/Drv_SmartAllocation_DcModule.c
浏览文件 @
c8df0c15
...
...
@@ -539,15 +539,24 @@ void DcModeleRelayInit()
GPIO_InitStructure
.
GPIO_Speed
=
GPIO_Speed_100MHz
;
GPIO_InitStructure
.
GPIO_OType
=
GPIO_OType_PP
;
GPIO_InitStructure
.
GPIO_PuPd
=
GPIO_PuPd_UP
;
GPIO_InitStructure
.
GPIO_Pin
=
Fan_Pin
;
GPIO_InitStructure
.
GPIO_Pin
=
RELAY_K1K2_Pin
;
GPIO_Init
(
RELAY_K1K2_Port
,
&
GPIO_InitStructure
);
GPIO_ResetBits
(
RELAY_K1K2_Port
,
RELAY_K1K2_Pin
);
GPIO_InitStructure
.
GPIO_Pin
=
RELAY_K3K4_Pin
;
GPIO_Init
(
RELAY_K3K4_Port
,
&
GPIO_InitStructure
);
GPIO_ResetBits
(
RELAY_K3K4_Port
,
RELAY_K3K4_Pin
);
GPIO_InitStructure
.
GPIO_Pin
=
RELAY_K5K6_Pin
;
GPIO_Init
(
RELAY_K5K6_Port
,
&
GPIO_InitStructure
);
GPIO_ResetBits
(
RELAY_K5K6_Port
,
RELAY_K5K6_Pin
);
GPIO_InitStructure
.
GPIO_Pin
=
RELAY_K7K8_Pin
;
GPIO_Init
(
RELAY_K7K8_Port
,
&
GPIO_InitStructure
);
GPIO_ResetBits
(
RELAY_K7K8_Port
,
RELAY_K7K8_Pin
);
GPIO_InitStructure
.
GPIO_Pin
=
RELAY_K9K10_Pin
;
GPIO_Init
(
RELAY_K9K10_Port
,
&
GPIO_InitStructure
);
GPIO_ResetBits
(
RELAY_K9K10_Port
,
RELAY_K9K10_Pin
);
}
...
...
DcPillar/Src/SmartAllocation/SmartAllocation_B_ChgRun.c
浏览文件 @
c8df0c15
...
...
@@ -134,28 +134,28 @@ void ChgProChgRun_B(StructChargeCtrl_B *pChargeCtrl)
DcModuleGroup
[
3
].
status
=
Hold_B
;
DcModuleManage_B
.
ValidNum
+=
DcModuleGroup
[
3
].
ValidNum
;
}
else
if
(
DcModuleGroup
[
2
].
status
==
Valid
)
{
DcModuleGroup
[
2
].
status
=
Hold_B
;
DcModuleManage
.
ValidNum
+=
DcModuleGroup
[
2
].
ValidNum
;
}
else
if
(
DcModuleGroup
[
1
].
status
==
Valid
)
{
DcModuleGroup
[
1
].
status
=
Hold_B
;
DcModuleManage
.
ValidNum
+=
DcModuleGroup
[
1
].
ValidNum
;
}
else
if
(
DcModuleGroup
[
0
].
status
==
Valid
)
{
DcModuleGroup
[
0
].
status
=
Hold_B
;
DcModuleManage
.
ValidNum
+=
DcModuleGroup
[
0
].
ValidNum
;
}
}
else
{
if
(
DcModuleGroup
[
1
].
status
==
Hold_B
)
if
(
DcModuleGroup
[
0
].
status
==
Hold_B
)
{
DcModuleGroup
[
1
].
status
=
Valid
;
DcModuleManage
.
ValidNum
-=
DcModuleGroup
[
1
].
ValidNum
;
DcModuleGroup
[
0
].
status
=
Valid
;
DcModuleManage
.
ValidNum
-=
DcModuleGroup
[
0
].
ValidNum
;
}
else
if
(
DcModuleGroup
[
2
].
status
==
Hold_B
)
else
if
(
DcModuleGroup
[
1
].
status
==
Hold_B
)
{
DcModuleGroup
[
2
].
status
=
Valid
;
DcModuleManage
.
ValidNum
-=
DcModuleGroup
[
2
].
ValidNum
;
DcModuleGroup
[
1
].
status
=
Valid
;
DcModuleManage
.
ValidNum
-=
DcModuleGroup
[
1
].
ValidNum
;
}
else
if
(
DcModuleGroup
[
3
].
status
==
Hold_B
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论