aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-10 12:46:50 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-10 12:46:50 +0000
commit2adfd321e94f0324fe428d8436339b37a4dee9c7 (patch)
treebd3d4a94a3de7e5cefbfb285fb10aaf9c453d1d5 /os/ex
parent4711b513853e256509c07a33ae18a2ec183aa38c (diff)
downloadChibiOS-2adfd321e94f0324fe428d8436339b37a4dee9c7.tar.gz
ChibiOS-2adfd321e94f0324fe428d8436339b37a4dee9c7.tar.bz2
ChibiOS-2adfd321e94f0324fe428d8436339b37a4dee9c7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11683 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/ex')
-rw-r--r--os/ex/ST/hts221.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/ex/ST/hts221.c b/os/ex/ST/hts221.c
index 735c8f7bc..a0367da23 100644
--- a/os/ex/ST/hts221.c
+++ b/os/ex/ST/hts221.c
@@ -46,6 +46,7 @@
/* Driver local functions. */
/*===========================================================================*/
+#if (HTS221_USE_I2C) || defined(__DOXYGEN__)
/**
* @brief Reads registers value using I2C.
* @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,
TIME_INFINITE);
}
+#endif /* HTS221_USE_I2C */
/**
* @brief Computes biases and sensitivities starting from data stored in