diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-23 08:38:16 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-23 08:38:16 +0000 |
commit | da23780899ae4b9ce1bbe0cb9109da1c87fe0fa1 (patch) | |
tree | c3e88910c755425d82be9c8d5f086038267d7a9e | |
parent | 4ec82f62c18894d92bafc6c6f98784650106373d (diff) | |
download | ChibiOS-da23780899ae4b9ce1bbe0cb9109da1c87fe0fa1.tar.gz ChibiOS-da23780899ae4b9ce1bbe0cb9109da1c87fe0fa1.tar.bz2 ChibiOS-da23780899ae4b9ce1bbe0cb9109da1c87fe0fa1.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3250 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/dox/i2c.dox | 4 | ||||
-rw-r--r-- | os/hal/platforms/STM32/i2c_lld.c | 1 | ||||
-rw-r--r-- | os/hal/src/i2c.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/os/hal/dox/i2c.dox b/os/hal/dox/i2c.dox index 8e6f78649..83dcfe285 100644 --- a/os/hal/dox/i2c.dox +++ b/os/hal/dox/i2c.dox @@ -28,6 +28,10 @@ * block function that starts transfer.
* @note If you decide to use polling wait -- do NOT start transmit or
* receive from callback because it run in ISR context.
+ * @note You must set I2C interrupts priority to highest level in the
+ * system.
+ * @note If you use GPT than set GPT interrupts priority level over I2C
+ * interrupts priority level.
* @pre In order to use the I2C driver the @p HAL_USE_I2C option
* must be enabled in @p halconf.h.
*
diff --git a/os/hal/platforms/STM32/i2c_lld.c b/os/hal/platforms/STM32/i2c_lld.c index 77d4b7829..9038d351f 100644 --- a/os/hal/platforms/STM32/i2c_lld.c +++ b/os/hal/platforms/STM32/i2c_lld.c @@ -26,7 +26,6 @@ /*===========================================================================*/ /* Driver constants. */ /*===========================================================================*/ -/* TODO: may be? move this defines in i2c_lld.h and mcuconf.h */ #define I2C_STOP_GPT_TIMEOUT 50 /* waiting timer value */ #define I2C_START_GPT_TIMEOUT 50 /* waiting timer value */ #define I2C_POLLING_TIMEOUT 0xFFFF diff --git a/os/hal/src/i2c.c b/os/hal/src/i2c.c index 974f65a08..8508bc682 100644 --- a/os/hal/src/i2c.c +++ b/os/hal/src/i2c.c @@ -147,7 +147,7 @@ void i2cStop(I2CDriver *i2cp) { *
* @details Function designed to realize "read-through-write" transfer
* paradigm. If you want transmit data without any further read,
- * than set @b rxbuf field to 0.
+ * than set @b rxbytes field to 0.
*
* @param[in] i2cp pointer to the @p I2CDriver object
* @param[in] i2cscfg pointer to the @p I2C slave config
|