From 5d0c914121e1a9fc935af2691575672bd911bd7b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 28 Jan 2016 09:52:46 -0600 Subject: [PATCH] LPC2148: Missing spi initializatin prototype --- arch/arm/src/lpc214x/lpc214x_spi.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/src/lpc214x/lpc214x_spi.h b/arch/arm/src/lpc214x/lpc214x_spi.h index 11d292019d2..97e2fc7a58f 100644 --- a/arch/arm/src/lpc214x/lpc214x_spi.h +++ b/arch/arm/src/lpc214x/lpc214x_spi.h @@ -163,4 +163,22 @@ * Public Function Prototypes ************************************************************************************/ +struct spi_dev_s; /* Forward reference */ + +/**************************************************************************** + * Name: lpc214x_spibus_initialize + * + * Description: + * Initialize the selected SPI port + * + * Input Parameter: + * Port number (for hardware that has mutiple SPI interfaces) + * + * Returned Value: + * Valid SPI device structre reference on succcess; a NULL on failure + * + ****************************************************************************/ + +FAR struct spi_dev_s *lpc214x_spibus_initialize(int port); + #endif /* _ARCH_ARM_SRC_LPC214X_SPI_H */