Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
DC360_1drap3_xiaoju_V1
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
丁雨邯
DC360_1drap3_xiaoju_V1
Commits
4200e831
提交
4200e831
authored
5月 18, 2020
作者:
wysheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
整理IO口,修复两处错误:AB枪电子锁(AB枪反了),A枪(12V/24V)切换IO错误(占用了K3K4继电器控制)
上级
e360e1d9
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
37 行增加
和
0 行删除
+37
-0
Drv_BoardIo.c
DcPillar/Src/Drivers/Drv_BoardIo.c
+37
-0
Drv_BoardIo.h
DcPillar/Src/Drivers/Drv_BoardIo.h
+0
-0
没有找到文件。
DcPillar/Src/Drivers/Drv_BoardIo.c
浏览文件 @
4200e831
...
...
@@ -469,6 +469,8 @@ EnumSwitchStatus DcOutGet_B(void)
return eSwSta_Off;
}
*/
//B枪BMS供电 12V/24V 切换
void
DrainResistInit_B
(
void
)
{
GPIO_InitTypeDef
GPIO_InitStructure
;
...
...
@@ -1108,3 +1110,38 @@ EnumSwitchStatus GunStatusGet_B(void)
void
DCModuleRelayChkInit
(
void
)
{
GPIO_InitTypeDef
GPIO_InitStructure
;
//K1-K4 --> MP5 --> JCQ_OUT3 --> PE2
GPIO_InitStructure
.
GPIO_Mode
=
GPIO_Mode_IN
;
GPIO_InitStructure
.
GPIO_Speed
=
GPIO_Speed_100MHz
;
GPIO_InitStructure
.
GPIO_OType
=
GPIO_OType_PP
;
GPIO_InitStructure
.
GPIO_PuPd
=
GPIO_PuPd_NOPULL
;
GPIO_InitStructure
.
GPIO_Pin
=
K1K4OutChk_Pin
;
RCC_AHB1PeriphClockCmd
(
K1K4OutChk_RCC
,
ENABLE
);
GPIO_Init
(
K1K4OutChk_Port
,
&
GPIO_InitStructure
);
GPIO_ResetBits
(
K1K4OutChk_Port
,
K1K4OutChk_Pin
);
//K7-K10 --> MP7 --> JCQ_OUT1 --> PE0
//GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
//GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
//GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
//GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStructure
.
GPIO_Pin
=
K7K10OutChk_Pin
;
RCC_AHB1PeriphClockCmd
(
K7K10OutChk_RCC
,
ENABLE
);
GPIO_Init
(
K7K10OutChk_Port
,
&
GPIO_InitStructure
);
GPIO_ResetBits
(
K7K10OutChk_Port
,
K7K10OutChk_Pin
);
//K5-K6 --> MP8 --> S_STOP2 --> PD4
//GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
//GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
//GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
//GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStructure
.
GPIO_Pin
=
K5K6OutChk_Pin
;
RCC_AHB1PeriphClockCmd
(
K5K6OutChk_RCC
,
ENABLE
);
GPIO_Init
(
K5K6OutChk_Port
,
&
GPIO_InitStructure
);
GPIO_ResetBits
(
K5K6OutChk_Port
,
K5K6OutChk_Pin
);
}
DcPillar/Src/Drivers/Drv_BoardIo.h
浏览文件 @
4200e831
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论