summaryrefslogtreecommitdiff
path: root/commandline/i2cdetect.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-01-09 21:58:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-01-09 21:58:53 +0100
commit554d78c9c73731705ab536e009ef47760dd2df3f (patch)
tree03637579a0c1ffc9df25181d5f2bf201bb9be91f /commandline/i2cdetect.c
parent3541c176f24f8daee3b0bc35f71e1521daa7137a (diff)
move software I2C implementation to ATTiny
Diffstat (limited to 'commandline/i2cdetect.c')
-rw-r--r--commandline/i2cdetect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commandline/i2cdetect.c b/commandline/i2cdetect.c
index 88e5d2e..341900f 100644
--- a/commandline/i2cdetect.c
+++ b/commandline/i2cdetect.c
@@ -24,9 +24,9 @@ int main(int argc, char **argv)
}
- i2c_start();
+ i2c_hw_start();
- if (i2c_tx_byte(i2cid))
+ if (i2c_hw_tx_byte(i2cid))
printf(" %02x", id);
else
fputs(" --", stdout);
@@ -35,7 +35,7 @@ int main(int argc, char **argv)
fputs("\n", stdout);
- i2c_stop();
+ i2c_hw_stop();
i2c_deinit();
return 0;
}