Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
HaoJin232
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
时昊
HaoJin232
Commits
7ad8c82b
Commit
7ad8c82b
authored
Feb 22, 2024
by
时昊
Browse files
Options
Browse Files
Download
Plain Diff
🌈
style:增加注释
parents
bc27ab95
e14367a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
IIC.c
HJ232_Source/source/Driver/src/IIC.c
+3
-3
No files found.
HJ232_Source/source/Driver/src/IIC.c
View file @
7ad8c82b
...
...
@@ -320,7 +320,7 @@ void bsp_IIC_NACK( void )
bsp_IIC_nop
();
bsp_IIC_SCL_out
(
0
);
//sda = 1?
bsp_IIC_nop
();
}
...
...
@@ -338,14 +338,14 @@ uint8_t bsp_IIC_WaitAck( void )
bsp_IIC_SDA_inConfig
();
bsp_IIC_SCL_out
(
1
);
bsp_IIC_SCL_out
(
1
);
//高电平获取
while
(
(
ack
)
&&
(
--
i
!=
0
)
)
{
ack
=
bsp_IIC_SDA_getVal
();
}
bsp_IIC_SCL_out
(
0
);
bsp_IIC_SCL_out
(
0
);
//从机可发送数据
if
(
IIC_addr
==
0x38
)
{
...
...
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