diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-11 15:20:21 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-11 15:20:21 -0600 |
commit | cf633d2c637428d74313388ac4bbabe77b18b84f (patch) | |
tree | 06495aaa478087850854d5fe1278ec500dc3b6d7 /nuttx | |
parent | efab0e2ea369167c97522773dcc4e0e8213408c0 (diff) | |
download | px4-nuttx-cf633d2c637428d74313388ac4bbabe77b18b84f.tar.gz px4-nuttx-cf633d2c637428d74313388ac4bbabe77b18b84f.tar.bz2 px4-nuttx-cf633d2c637428d74313388ac4bbabe77b18b84f.zip |
Cosmetic updates to comments
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/drivers/input/ads7843e.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/nuttx/drivers/input/ads7843e.c b/nuttx/drivers/input/ads7843e.c index ecc788108..f23fc7d5d 100644 --- a/nuttx/drivers/input/ads7843e.c +++ b/nuttx/drivers/input/ads7843e.c @@ -251,8 +251,8 @@ static void ads7843e_unlock(FAR struct spi_dev_s *spi) #ifdef CONFIG_SPI_OWNBUS static inline void ads7843e_configspi(FAR struct spi_dev_s *spi) { - /* Configure SPI for the ADS7843. But only if we own the SPI bus. Otherwise, don't - * bother because it might change. + /* Configure SPI for the ADS7843. But only if we own the SPI bus. + * Otherwise, don't bother because it might change. */ SPI_SELECT(spi, SPIDEV_TOUCHSCREEN, true); @@ -282,7 +282,7 @@ static inline void ads7843e_configspi(FAR struct spi_dev_s *spi) * 12-bit DDDDDDDDDDDD... * response * - * The BUSY output is high imedance when /CS is high. BUSY goes low when + * The BUSY output is high impedance when /CS is high. BUSY goes low when * /CS goes low (within 200ns). BUSY goes high on the falling edge of the * 8th clock (within 200ns); BUSY goes low again after the falling edge of * first clock of the 12-bit data read, at the leading edge of the MS bit @@ -311,7 +311,7 @@ static uint16_t ads7843e_sendcmd(FAR struct ads7843e_dev_s *priv, uint8_t cmd) (void)SPI_SEND(priv->spi, cmd); - /* Wait a tiny amount to make sure that the aquisition time is complete */ + /* Wait a tiny amount to make sure that the acquisition time is complete */ up_udelay(3); /* 3 microseconds */ @@ -625,7 +625,6 @@ static void ads7843e_worker(FAR void *arg) if (priv->sample.contact == CONTACT_NONE || priv->sample.contact == CONTACT_UP) - { goto ignored; } @@ -807,7 +806,7 @@ static int ads7843e_open(FAR struct file *filep) ret = sem_wait(&priv->devsem); if (ret < 0) { - /* This should only happen if the wait was canceled by an signal */ + /* This should only happen if the wait was cancelled by an signal */ DEBUGASSERT(errno == EINTR); return -EINTR; @@ -924,7 +923,7 @@ static ssize_t ads7843e_read(FAR struct file *filep, FAR char *buffer, size_t le ret = sem_wait(&priv->devsem); if (ret < 0) { - /* This should only happen if the wait was canceled by an signal */ + /* This should only happen if the wait was cancelled by an signal */ idbg("sem_wait: %d\n", errno); DEBUGASSERT(errno == EINTR); @@ -1037,7 +1036,7 @@ static int ads7843e_ioctl(FAR struct file *filep, int cmd, unsigned long arg) ret = sem_wait(&priv->devsem); if (ret < 0) { - /* This should only happen if the wait was canceled by an signal */ + /* This should only happen if the wait was cancelled by an signal */ DEBUGASSERT(errno == EINTR); return -EINTR; @@ -1097,7 +1096,7 @@ static int ads7843e_poll(FAR struct file *filep, FAR struct pollfd *fds, ret = sem_wait(&priv->devsem); if (ret < 0) { - /* This should only happen if the wait was canceled by an signal */ + /* This should only happen if the wait was cancelled by an signal */ DEBUGASSERT(errno == EINTR); return -EINTR; @@ -1279,7 +1278,7 @@ int ads7843e_register(FAR struct spi_dev_s *spi, /* If multiple ADS7843E devices are supported, then we will need to add * this new instance to a list of device instances so that it can be - * found by the interrupt handler based on the recieved IRQ number. + * found by the interrupt handler based on the received IRQ number. */ #ifdef CONFIG_ADS7843E_MULTIPLE |