For LPC2378 MCUs, rename up_spiinitialize to lpc23_spibus_initialize
This commit is contained in:
parent
b4f0ad1af5
commit
215dfe778b
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Derived from arch/arm/src/lpc17xx/lpc17_spi.c
|
* Derived from arch/arm/src/lpc17xx/lpc17_spi.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010, 2012, 2014 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010, 2012, 2014, 2016 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -529,7 +529,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_spiinitialize
|
* Name: lpc23_spibus_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Initialize the selected SPI port
|
* Initialize the selected SPI port
|
||||||
@ -542,7 +542,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
FAR struct spi_dev_s *up_spiinitialize(int port)
|
FAR struct spi_dev_s *lpc23_spibus_initialize(int port)
|
||||||
{
|
{
|
||||||
FAR struct lpc23xx_spidev_s *priv = &g_spidev;
|
FAR struct lpc23xx_spidev_s *priv = &g_spidev;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Derived arch/arm/src/lpc17xx/lpc17_spi.h
|
* Derived arch/arm/src/lpc17xx/lpc17_spi.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010, 2014 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010, 2014, 2016 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -153,9 +153,30 @@
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/* These functions must be provided by the board specific logic that has knowledge
|
struct spi_dev_s; /* Forward reference */
|
||||||
|
enum spi_dev_e; /* Forward reference */
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: lpc23_spibus_initialize
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Initialize the selected SPI port
|
||||||
|
*
|
||||||
|
* Input Parameter:
|
||||||
|
* Port number (for hardware that has multiple SPI interfaces)
|
||||||
|
*
|
||||||
|
* Returned Value:
|
||||||
|
* Valid SPI device structure reference on success; a NULL on failure
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
FAR struct spi_dev_s *lpc23_spibus_initialize(int port);
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* These functions must be provided by the board specific logic that has knowledge
|
||||||
* the chip select and card detect GPIO configuration of the board.
|
* the chip select and card detect GPIO configuration of the board.
|
||||||
*/
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
void lpc23xx_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected);
|
void lpc23xx_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected);
|
||||||
uint8_t lpc23xx_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid);
|
uint8_t lpc23xx_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user