[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [4257]
From: |
Pascal Brisset |
Subject: |
[paparazzi-commits] [4257] |
Date: |
Sat, 17 Oct 2009 07:16:39 +0000 |
Revision: 4257
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4257
Author: hecto
Date: 2009-10-17 07:16:39 +0000 (Sat, 17 Oct 2009)
Log Message:
-----------
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/arm7/i2c_hw.h
Modified: paparazzi3/trunk/sw/airborne/arm7/i2c_hw.h
===================================================================
--- paparazzi3/trunk/sw/airborne/arm7/i2c_hw.h 2009-10-16 14:01:59 UTC (rev
4256)
+++ paparazzi3/trunk/sw/airborne/arm7/i2c_hw.h 2009-10-17 07:16:39 UTC (rev
4257)
@@ -17,11 +17,14 @@
extern void i2c0_hw_init(void);
#define I2c0SendAck() { I2C0CONSET = _BV(AA); }
-#define I2c0SendStop() { \
- I2C0CONSET = _BV(STO); \
+#define I2c0Finished() { \
if (i2c0_finished) *i2c0_finished = TRUE; \
i2c0_status = I2C_IDLE; \
I2c0StopHandler(); \
+}
+#define I2c0SendStop() { \
+ I2C0CONSET = _BV(STO); \
+ I2c0Finished(); \
}
#define I2c0SendStart() { I2C0CONSET = _BV(STA); }
#define I2c0SendByte(b) { I2C_DATA_REG = b; }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [4257],
Pascal Brisset <=