diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-13 09:14:40 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-13 09:14:40 +0200 |
commit | c255df1df9c1cd51e6d0e71ee5f2e92a22eac5cf (patch) | |
tree | 2254ceb7c66ba63b6cb6738af92c839f3868c748 /nuttx/drivers/input/ads7843e.c | |
parent | bc5c15a4909386a1efd556f4648385440379b164 (diff) | |
download | px4-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.c | 5 |
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)); } |