OSDN Git Service
(root)
/
stock
/
stock.osdn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60345ef
)
I2C/I2C.h: comments
author
Pawel Jewstafjew
<Pawel.Jewstafjew@gmail.com>
Wed, 26 Jul 2017 20:55:02 +0000
(21:55 +0100)
committer
Pawel Jewstafjew
<Pawel.Jewstafjew@gmail.com>
Wed, 26 Jul 2017 20:55:02 +0000
(21:55 +0100)
I2C/I2C.h
patch
|
blob
|
history
diff --git
a/I2C/I2C.h
b/I2C/I2C.h
index
70c49c5
..
f9198a3
100644
(file)
--- a/
I2C/I2C.h
+++ b/
I2C/I2C.h
@@
-1,6
+1,12
@@
// I2C routines
-static void I2C_start()
+// use:
+// void I2C_delay(void); // half-bit delay
+// void I2C_set(bool new_SDA_level, bool new_SCL_level);
+// uint8_t I2C_sda(void); // return SDA level
+// uint8_t I2C_scl(void); // return SCL level
+
+static void I2C_start(void)
{
I2C_set(1, 1);
I2C_delay();
@@
-10,7
+16,7
@@
static void I2C_start()
I2C_delay();
}
-static void I2C_stop()
+static void I2C_stop(
void
)
{
I2C_set(0, 0);
I2C_delay();