diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-02 16:33:20 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-02 16:33:20 +0000 |
commit | 11a33e587907ffd9a3a485111b76437df692fd99 (patch) | |
tree | 827b448010301da39c1db4e97f4b6eaa4409e987 /nuttx/configs/mcu123-lpc214x | |
parent | e51c070bc10e50a2971c357c1d7ce08fb98584d9 (diff) | |
download | px4-nuttx-11a33e587907ffd9a3a485111b76437df692fd99.tar.gz px4-nuttx-11a33e587907ffd9a3a485111b76437df692fd99.tar.bz2 px4-nuttx-11a33e587907ffd9a3a485111b76437df692fd99.zip |
slave vs. chip select
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1119 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/mcu123-lpc214x')
-rw-r--r-- | nuttx/configs/mcu123-lpc214x/src/up_spi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/configs/mcu123-lpc214x/src/up_spi.c b/nuttx/configs/mcu123-lpc214x/src/up_spi.c index 86ed79579..9e201a5a0 100644 --- a/nuttx/configs/mcu123-lpc214x/src/up_spi.c +++ b/nuttx/configs/mcu123-lpc214x/src/up_spi.c @@ -123,10 +123,10 @@ static struct spi_dev_s g_spidev = { &g_spiops }; * Name: spi_select * * Description: - * Enable/disable the SPI chip select + * Enable/disable the SPI slave select * * Input Parameters: - * selected: TRUE: chip selected, FALSE: chip de-selected + * selected: TRUE: slave selected, FALSE: slave de-selected * * Returned Value: * None @@ -139,13 +139,13 @@ static void spi_select(FAR struct spi_dev_s *dev, boolean selected) if (selected) { - /* Enable chip select (low enables) */ + /* Enable slave select (low enables) */ putreg32(bit, LPC214X_GPIO0_BASE+LPC214X_GPIO_CLR_OFFSET); } else { - /* Disable chip select (low enables) */ + /* Disable slave select (low enables) */ putreg32(bit, LPC214X_GPIO0_BASE+LPC214X_GPIO_SET_OFFSET); |