diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-29 21:14:34 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-29 21:14:34 +0000 |
commit | 4e6d82c8bfe16012a6667492d4cc6df016cd18b6 (patch) | |
tree | e7142ad67adc1f905fd558b641b9fd3878cfe6db /nuttx/configs/mcu123-lpc214x | |
parent | b33699953a9b9e817fb3719578639c19dcfc5c3a (diff) | |
download | px4-nuttx-4e6d82c8bfe16012a6667492d4cc6df016cd18b6.tar.gz px4-nuttx-4e6d82c8bfe16012a6667492d4cc6df016cd18b6.tar.bz2 px4-nuttx-4e6d82c8bfe16012a6667492d4cc6df016cd18b6.zip |
Add SPI method to set SCLK mode
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1669 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 210f3d736..a33b0ea76 100644 --- a/nuttx/configs/mcu123-lpc214x/src/up_spi.c +++ b/nuttx/configs/mcu123-lpc214x/src/up_spi.c @@ -86,9 +86,9 @@ * Private Function Prototypes ****************************************************************************/ -static void spi_select(FAR struct spi_dev_s *dev, enum spidev_e devid, boolean selected); +static void spi_select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, boolean selected); static uint32 spi_setfrequency(FAR struct spi_dev_s *dev, uint32 frequency); -static ubyte spi_status(FAR struct spi_dev_s *dev, enum spidev_e devid); +static ubyte spi_status(FAR struct spi_dev_s *dev, enum spi_dev_e devid); static ubyte spi_sndbyte(FAR struct spi_dev_s *dev, ubyte ch); static void spi_sndblock(FAR struct spi_dev_s *dev, FAR const ubyte *buffer, size_t buflen); static void spi_recvblock(FAR struct spi_dev_s *dev, FAR ubyte *buffer, size_t buflen); @@ -135,7 +135,7 @@ static struct spi_dev_s g_spidev = { &g_spiops }; * ****************************************************************************/ -static void spi_select(FAR struct spi_dev_s *dev, enum spidev_e devid, boolean selected) +static void spi_select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, boolean selected) { uint32 bit = 1 << 20; @@ -222,7 +222,7 @@ static uint32 spi_setfrequency(FAR struct spi_dev_s *dev, uint32 frequency) * ****************************************************************************/ -static ubyte spi_status(FAR struct spi_dev_s *dev, enum spidev_e devid) +static ubyte spi_status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) { /* I don't think there is anyway to determine these things on the mcu123.com * board. |