Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TY
TianYing_ty100
Commits
b10f29fd
Commit
b10f29fd
authored
Aug 31, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:代码评审问题:为什么没有GPIO重映射。延时函数加在这里的原因。
parent
661eedad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
GpioUser.c
Firmware/Source/Application/GPIO_USER/GpioUser.c
+4
-3
No files found.
Firmware/Source/Application/GPIO_USER/GpioUser.c
View file @
b10f29fd
...
@@ -159,9 +159,10 @@ void Gpio_Init(_GpioUser_Enum InitMode)
...
@@ -159,9 +159,10 @@ void Gpio_Init(_GpioUser_Enum InitMode)
}
}
if
((
InitMode
==
Gpio_KL30_Init
)
||
(
InitMode
==
Gpio_WakeUp_Init
))
if
((
InitMode
==
Gpio_KL30_Init
)
||
(
InitMode
==
Gpio_WakeUp_Init
))
{
{
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN00
,
GpioOut_High
);
/*为满足I2C时序要求*/
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN02
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN00
,
GpioOut_High
);
//5V切电
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN02
,
GpioOut_Low
);
//EE存储SCL
Gen_TimeDelay
(
100
*
1000u
,
50u
);
Gen_TimeDelay
(
100
*
1000u
,
50u
);
for
(
i
=
0
;
i
<
Gpio_Max
;
i
++
)
for
(
i
=
0
;
i
<
Gpio_Max
;
i
++
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment