diff --git a/arch/arm/src/lpc2378/lpc23xx_spi.c b/arch/arm/src/lpc2378/lpc23xx_spi.c index f88031bb814..d483d1c98e0 100644 --- a/arch/arm/src/lpc2378/lpc23xx_spi.c +++ b/arch/arm/src/lpc2378/lpc23xx_spi.c @@ -6,7 +6,7 @@ * * 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 * * 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: * 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; irqstate_t flags; diff --git a/arch/arm/src/lpc2378/lpc23xx_spi.h b/arch/arm/src/lpc2378/lpc23xx_spi.h index d6a80b692b4..f701c9e1f98 100644 --- a/arch/arm/src/lpc2378/lpc23xx_spi.h +++ b/arch/arm/src/lpc2378/lpc23xx_spi.h @@ -6,7 +6,7 @@ * * 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 * * Redistribution and use in source and binary forms, with or without @@ -153,9 +153,30 @@ * 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. - */ + * + ****************************************************************************/ 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);