aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-23 18:50:13 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-23 18:50:13 +0000
commit97e643a2a2086bf8d52c77d599748849ff6a8148 (patch)
treeaedb080275694db8f9cd34374623ebac30d2a2ec /os/hal/src
parent2f77482083766da5b081e3f7bd07924db88ee024 (diff)
downloadChibiOS-97e643a2a2086bf8d52c77d599748849ff6a8148.tar.gz
ChibiOS-97e643a2a2086bf8d52c77d599748849ff6a8148.tar.bz2
ChibiOS-97e643a2a2086bf8d52c77d599748849ff6a8148.zip
I2C. Commetns style changed to /**/.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3073 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r--os/hal/src/i2c.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/os/hal/src/i2c.c b/os/hal/src/i2c.c
index 75541494f..377b27ecf 100644
--- a/os/hal/src/i2c.c
+++ b/os/hal/src/i2c.c
@@ -152,7 +152,7 @@ void i2cMasterTransmit(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg, uint16_t
(i2cscfg->txbuf != NULL),
"i2cMasterTransmit");
- // init slave config field in driver
+ /* init slave config field in driver */
i2cp->id_slave_config = i2cscfg;
#if I2C_USE_WAIT
@@ -199,7 +199,7 @@ void i2cMasterReceive(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg, uint16_t s
(i2cscfg->rxbuf != NULL),
"i2cMasterReceive");
- // init slave config field in driver
+ /* init slave config field in driver */
i2cp->id_slave_config = i2cscfg;
#if I2C_USE_WAIT
@@ -228,13 +228,12 @@ void i2cMasterReceive(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg, uint16_t s
}
-// FIXME: I do not know what this function must do. And can not test it
-//uint16_t i2cSMBusAlertResponse(I2CDriver *i2cp, I2CSlaveConfig *i2cscfg) {
-//
-// i2cMasterReceive(i2cp, i2cscfg);
-// return i2cp->id_slave_config->slave_addr;
-//}
-
+/* FIXME: I do not know what this function must do. And can not test it
+uint16_t i2cSMBusAlertResponse(I2CDriver *i2cp, I2CSlaveConfig *i2cscfg) {
+ i2cMasterReceive(i2cp, i2cscfg);
+ return i2cp->id_slave_config->slave_addr;
+}
+*/
/**
* @brief Handles communication events/errors.