summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc313x
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-01 00:12:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-01 00:12:59 +0000
commit56eaa3fe71a1f90e28562c190975ea8bb8b61c23 (patch)
tree304e519db9fb90690b7fc4be72d2d9b6894a98f3 /nuttx/arch/arm/src/lpc313x
parentb666f8789bc6eb544691ac482fa922667f3581a2 (diff)
downloadpx4-nuttx-56eaa3fe71a1f90e28562c190975ea8bb8b61c23.tar.gz
px4-nuttx-56eaa3fe71a1f90e28562c190975ea8bb8b61c23.tar.bz2
px4-nuttx-56eaa3fe71a1f90e28562c190975ea8bb8b61c23.zip
cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2955 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x')
-rw-r--r--nuttx/arch/arm/src/lpc313x/lpc313x_spi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_spi.c b/nuttx/arch/arm/src/lpc313x/lpc313x_spi.c
index e59dc72bd..ed7300a5b 100644
--- a/nuttx/arch/arm/src/lpc313x/lpc313x_spi.c
+++ b/nuttx/arch/arm/src/lpc313x/lpc313x_spi.c
@@ -364,7 +364,7 @@ static inline void spi_select_slave(FAR struct lpc313x_spidev_s *priv, uint8_t s
* Name: spi_readword
*
* Description:
- * Read one byte from SPI
+ * Read one word from SPI
*
* Input Parameters:
* priv - Device-specific state data
@@ -381,7 +381,7 @@ static inline uint16_t spi_readword(FAR struct lpc313x_spidev_s *priv)
while ((spi_getreg(LPC313X_SPI_STATUS) & SPI_STATUS_RXFIFOEMPTY) != 0)
;
- /* Then return the received byte */
+ /* Then return the received word */
uint32_t val = spi_getreg(LPC313X_SPI_FIFODATA);
@@ -392,11 +392,11 @@ static inline uint16_t spi_readword(FAR struct lpc313x_spidev_s *priv)
* Name: spi_writeword
*
* Description:
- * Write one byte to SPI
+ * Write one word to SPI
*
* Input Parameters:
* priv - Device-specific state data
- * byte - Byte to send
+ * word - Word to send
*
* Returned Value:
* None
@@ -410,7 +410,7 @@ static inline void spi_writeword(FAR struct lpc313x_spidev_s *priv, uint16_t wor
while ((spi_getreg(LPC313X_SPI_STATUS) & SPI_STATUS_TXFIFOFULL) != 0)
;
- /* Then send the byte */
+ /* Then send the word */
spi_putreg(word, LPC313X_SPI_FIFODATA);
}