git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11683 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
4711b51385
commit
2adfd321e9
|
@ -46,6 +46,7 @@
|
||||||
/* Driver local functions. */
|
/* Driver local functions. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#if (HTS221_USE_I2C) || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
* @brief Reads registers value using I2C.
|
* @brief Reads registers value using I2C.
|
||||||
* @pre The I2C interface must be initialized and the driver started.
|
* @pre The I2C interface must be initialized and the driver started.
|
||||||
|
@ -88,6 +89,7 @@ static msg_t hts221I2CWriteRegister(I2CDriver *i2cp, uint8_t* txbuf, size_t n) {
|
||||||
return i2cMasterTransmitTimeout(i2cp, HTS221_SAD, txbuf, n + 1, NULL, 0,
|
return i2cMasterTransmitTimeout(i2cp, HTS221_SAD, txbuf, n + 1, NULL, 0,
|
||||||
TIME_INFINITE);
|
TIME_INFINITE);
|
||||||
}
|
}
|
||||||
|
#endif /* HTS221_USE_I2C */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Computes biases and sensitivities starting from data stored in
|
* @brief Computes biases and sensitivities starting from data stored in
|
||||||
|
|
Loading…
Reference in New Issue