diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-03-13 10:34:35 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-03-13 10:34:35 -0600 |
commit | ee7c9174c33024148562a1125f27e65dbfe7f4ec (patch) | |
tree | a496074b6186c7ed8264308a4f4eb6d75a532866 /nuttx/configs/sam3u-ek | |
parent | 47b6c71e7fbd987410d1361080b3231e94358c5a (diff) | |
download | px4-nuttx-ee7c9174c33024148562a1125f27e65dbfe7f4ec.tar.gz px4-nuttx-ee7c9174c33024148562a1125f27e65dbfe7f4ec.tar.bz2 px4-nuttx-ee7c9174c33024148562a1125f27e65dbfe7f4ec.zip |
Backport SPI driver enhancements from SAMA5 to SAM3/4
Diffstat (limited to 'nuttx/configs/sam3u-ek')
-rw-r--r-- | nuttx/configs/sam3u-ek/src/up_spi.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/configs/sam3u-ek/src/up_spi.c b/nuttx/configs/sam3u-ek/src/up_spi.c index 20423200d..bdedc91ac 100644 --- a/nuttx/configs/sam3u-ek/src/up_spi.c +++ b/nuttx/configs/sam3u-ek/src/up_spi.c @@ -107,14 +107,14 @@ void weak_function sam_spiinitialize(void) } /**************************************************************************** - * Name: sam_spiselect, sam_spistatus, and sam_spicmddata + * Name: sam_spi0select, sam_spi0status, and sam_spic0mddata * * Description: * These external functions must be provided by board-specific logic. They * include: * - * o sam_spiselect is a functions tomanage the board-specific chip selects - * o sam_spistatus and sam_spicmddata: Implementations of the status + * o sam_spi0select is a functions tomanage the board-specific chip selects + * o sam_spi0status and sam_spic0mddata: Implementations of the status * and cmddata methods of the SPI interface defined by struct spi_ops_ * (see include/nuttx/spi/spi.h). All other methods including * up_spiinitialize()) are provided by common SAM3/4 logic. @@ -123,11 +123,11 @@ void weak_function sam_spiinitialize(void) * * 1. Provide logic in sam_boardinitialize() to configure SPI chip select * pins. - * 2. Provide sam_spiselect() and sam_spistatus() functions in your board- + * 2. Provide sam_spi0select() and sam_spi0status() functions in your board- * specific logic. These functions will perform chip selection and * status operations using GPIOs in the way your board is configured. * 2. If CONFIG_SPI_CMDDATA is defined in the NuttX configuration, provide - * sam_spicmddata() functions in your board-specific logic. This + * sam_spic0mddata() functions in your board-specific logic. This * function will perform cmd/data selection operations using GPIOs in * the way your board is configured. * 3. Add a call to up_spiinitialize() in your low level application @@ -140,7 +140,7 @@ void weak_function sam_spiinitialize(void) ****************************************************************************/ /**************************************************************************** - * Name: sam_spiselect + * Name: sam_spi0select * * Description: * PIO chip select pins may be programmed by the board specific logic in @@ -164,7 +164,7 @@ void weak_function sam_spiinitialize(void) * ****************************************************************************/ -void sam_spiselect(enum spi_dev_e devid, bool selected) +void sam_spi0select(enum spi_dev_e devid, bool selected) { /* The touchscreen chip select is implemented as a GPIO OUTPUT that must * be controlled by this function. This is because the ADS7843E driver @@ -183,7 +183,7 @@ void sam_spiselect(enum spi_dev_e devid, bool selected) } /**************************************************************************** - * Name: sam_spistatus + * Name: sam_spi0status * * Description: * Return status information associated with the SPI device. @@ -196,7 +196,7 @@ void sam_spiselect(enum spi_dev_e devid, bool selected) * ****************************************************************************/ -uint8_t sam_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid) +uint8_t sam_spi0status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) { return 0; } |