summaryrefslogtreecommitdiff
path: root/nuttx/configs/mcu123-lpc214x/src/up_spi.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-10-30 23:35:19 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-10-30 23:35:19 +0000
commit6bd496502fdb4e1c651ed07b627ac7159b727d25 (patch)
treee15020d8cd9cbdd6ab306d5005e1cd022d796469 /nuttx/configs/mcu123-lpc214x/src/up_spi.c
parent3e32a2d288d69de5fe9c3138b1b516e3f9b16d76 (diff)
downloadpx4-nuttx-6bd496502fdb4e1c651ed07b627ac7159b727d25.tar.gz
px4-nuttx-6bd496502fdb4e1c651ed07b627ac7159b727d25.tar.bz2
px4-nuttx-6bd496502fdb4e1c651ed07b627ac7159b727d25.zip
Adding more STR71x logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1105 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/mcu123-lpc214x/src/up_spi.c')
-rw-r--r--nuttx/configs/mcu123-lpc214x/src/up_spi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/configs/mcu123-lpc214x/src/up_spi.c b/nuttx/configs/mcu123-lpc214x/src/up_spi.c
index 7a1789572..86ed79579 100644
--- a/nuttx/configs/mcu123-lpc214x/src/up_spi.c
+++ b/nuttx/configs/mcu123-lpc214x/src/up_spi.c
@@ -133,7 +133,7 @@ static struct spi_dev_s g_spidev = { &g_spiops };
*
****************************************************************************/
-void spi_select(FAR struct spi_dev_s *dev, boolean selected)
+static void spi_select(FAR struct spi_dev_s *dev, boolean selected)
{
uint32 bit = 1 << 20;
@@ -181,7 +181,7 @@ void spi_select(FAR struct spi_dev_s *dev, boolean selected)
*
****************************************************************************/
-uint32 spi_setfrequency(FAR struct spi_dev_s *dev, uint32 frequency)
+static uint32 spi_setfrequency(FAR struct spi_dev_s *dev, uint32 frequency)
{
uint32 divisor = LPC214X_PCLKFREQ / frequency;
@@ -213,7 +213,7 @@ uint32 spi_setfrequency(FAR struct spi_dev_s *dev, uint32 frequency)
*
****************************************************************************/
-ubyte spi_status(FAR struct spi_dev_s *dev)
+static ubyte spi_status(FAR struct spi_dev_s *dev)
{
/* I don't think there is anyway to determine these things on the mcu123.com
* board.
@@ -236,7 +236,7 @@ ubyte spi_status(FAR struct spi_dev_s *dev)
*
****************************************************************************/
-ubyte spi_sndbyte(FAR struct spi_dev_s *dev, ubyte ch)
+static ubyte spi_sndbyte(FAR struct spi_dev_s *dev, ubyte ch)
{
/* Wait while the TX FIFO is full */
@@ -270,7 +270,7 @@ ubyte spi_sndbyte(FAR struct spi_dev_s *dev, ubyte ch)
*
****************************************************************************/
-void spi_sndblock(FAR struct spi_dev_s *dev, FAR const ubyte *buffer, size_t buflen)
+static void spi_sndblock(FAR struct spi_dev_s *dev, FAR const ubyte *buffer, size_t buflen)
{
ubyte sr;