summaryrefslogtreecommitdiff
path: root/nuttx/drivers/input/ads7843e.c
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-06-13 09:14:40 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-06-13 09:14:40 +0200
commitc255df1df9c1cd51e6d0e71ee5f2e92a22eac5cf (patch)
tree2254ceb7c66ba63b6cb6738af92c839f3868c748 /nuttx/drivers/input/ads7843e.c
parentbc5c15a4909386a1efd556f4648385440379b164 (diff)
downloadpx4-nuttx-c255df1df9c1cd51e6d0e71ee5f2e92a22eac5cf.tar.gz
px4-nuttx-c255df1df9c1cd51e6d0e71ee5f2e92a22eac5cf.tar.bz2
px4-nuttx-c255df1df9c1cd51e6d0e71ee5f2e92a22eac5cf.zip
Merged in upstream, took upstream UART driver without changes, needs re-evaluation (minor diffs to local version)
Diffstat (limited to 'nuttx/drivers/input/ads7843e.c')
-rw-r--r--nuttx/drivers/input/ads7843e.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/drivers/input/ads7843e.c b/nuttx/drivers/input/ads7843e.c
index 620b8faee..98893a2f6 100644
--- a/nuttx/drivers/input/ads7843e.c
+++ b/nuttx/drivers/input/ads7843e.c
@@ -270,6 +270,11 @@ static inline void ads7843e_configspi(FAR struct spi_dev_s *spi)
static inline void ads7843e_waitbusy(FAR struct ads7843e_dev_s *priv)
{
+ /* BUSY is high impedance when the ads7843e not selected. When the
+ * ads7843e selected, BUSY is active high. Hence, it is necessary to have
+ * the ads7843e selected when this function is called.
+ */
+
while (priv->config->busy(priv->config));
}