mirror of https://github.com/rusefi/ChibiOS.git
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3250 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
4ec82f62c1
commit
da23780899
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue