Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Fix typo in comments.
details: https://anonhg.NetBSD.org/src/rev/6337c90c54a3
branches: trunk
changeset: 754251:6337c90c54a3
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Apr 25 00:35:58 2010 +0000
description:
Fix typo in comments.
diffstat:
sys/dev/i2c/i2c_bitbang.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (66 lines):
diff -r 98edee4ab2e8 -r 6337c90c54a3 sys/dev/i2c/i2c_bitbang.c
--- a/sys/dev/i2c/i2c_bitbang.c Sat Apr 24 21:52:34 2010 +0000
+++ b/sys/dev/i2c/i2c_bitbang.c Sun Apr 25 00:35:58 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i2c_bitbang.c,v 1.12 2008/07/12 02:11:32 tsutsui Exp $ */
+/* $NetBSD: i2c_bitbang.c,v 1.13 2010/04/25 00:35:58 tsutsui Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c_bitbang.c,v 1.12 2008/07/12 02:11:32 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c_bitbang.c,v 1.13 2010/04/25 00:35:58 tsutsui Exp $");
#include <sys/param.h>
@@ -83,7 +83,7 @@
i2c_bitbang_send_start(void *v, int flags, i2c_bitbang_ops_t ops)
{
- /* start condition: put SDL H->L edge during SCL=H */
+ /* start condition: put SDA H->L edge during SCL=H */
DIR(OUTPUT);
SETBITS(SDA | SCL);
@@ -93,7 +93,7 @@
return EIO;
delay(4); /* start hold time (4.0 us) */
- /* leave SCL=L and SDL=L to avoid unexpected start/stop condition */
+ /* leave SCL=L and SDA=L to avoid unexpected start/stop condition */
SETBITS( 0 | 0);
return 0;
@@ -104,9 +104,9 @@
i2c_bitbang_send_stop(void *v, int flags, i2c_bitbang_ops_t ops)
{
- /* stop condition: put SDL L->H edge during SCL=H */
+ /* stop condition: put SDA L->H edge during SCL=H */
- /* assume SCL=L, SDL=L here */
+ /* assume SCL=L, SDA=L here */
DIR(OUTPUT);
SETBITS( 0 | SCL);
delay(4); /* stop setup time (4.0 us) */
@@ -199,7 +199,7 @@
/* set SCL H->L for next data; don't change SDA here */
SETBITS(bit | 0);
- /* leave SCL=L and SDL=L to avoid unexpected start/stop condition */
+ /* leave SCL=L and SDA=L to avoid unexpected start/stop condition */
SETBITS( 0 | 0);
@@ -253,7 +253,7 @@
/* set SCL H->L before set SDA direction OUTPUT */
SETBITS(SDA | 0);
DIR(OUTPUT);
- /* leave SCL=L and SDL=L to avoid unexpected start/stop condition */
+ /* leave SCL=L and SDA=L to avoid unexpected start/stop condition */
SETBITS( 0 | 0);
if (flags & I2C_F_STOP)
Home |
Main Index |
Thread Index |
Old Index