More missed SPI initialization function renaming; clean up some warnings

This commit is contained in:
Gregory Nutt 2016-01-28 09:53:22 -06:00
parent c1a7a20263
commit c9137abe72
17 changed files with 35 additions and 34 deletions

View File

@ -138,14 +138,14 @@
#ifndef __ASSEMBLY__
/************************************************************************************
* Name: tm4c_ssiinitialize
* Name: tm4c_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the DK-TM4C129X.
*
************************************************************************************/
void weak_function tm4c_ssiinitialize(void);
void weak_function tm4c_spidev_initialize(void);
/****************************************************************************
* Name: tm4c_led_initialize

View File

@ -73,15 +73,15 @@
void tiva_boardinitialize(void)
{
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
* tm4c_ssiinitialize() has been brought into the link.
* tm4c_spidev_initialize() has been brought into the link.
*/
/* The DK-TM4C129X microSD CS and OLED are on SSI0 */
#if defined(CONFIG_TIVA_SSI0) || defined(CONFIG_TIVA_SSI1)
if (tm4c_ssiinitialize)
if (tm4c_spidev_initialize)
{
tm4c_ssiinitialize();
tm4c_spidev_initialize();
}
#endif

View File

@ -86,14 +86,14 @@
************************************************************************************/
/************************************************************************************
* Name: tm4c_ssiinitialize
* Name: tm4c_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the DK-TM4C129X.
*
************************************************************************************/
void weak_function tm4c_ssiinitialize(void)
void weak_function tm4c_spidev_initialize(void)
{
}

View File

@ -77,14 +77,14 @@
#ifndef __ASSEMBLY__
/************************************************************************************
* Name: lm_ssiinitialize
* Name: lm_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the Eagle100 board.
*
************************************************************************************/
void weak_function lm_ssiinitialize(void);
void weak_function lm_spidev_initialize(void);
#endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_EAGLE100_SRC_EAGLE100_H */

View File

@ -1,7 +1,7 @@
/****************************************************************************
* config/eagle100/src/lm_nsh.c
*
* Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
* Copyright (C) 2009, 2012, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -47,6 +47,8 @@
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include "tiva_ssi.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -85,10 +85,6 @@
# define ssi_dumpgpio(m)
#endif
/************************************************************************************
* Private Functions
************************************************************************************/
/************************************************************************************
* Public Functions
************************************************************************************/

View File

@ -98,14 +98,14 @@
#ifndef __ASSEMBLY__
/************************************************************************************
* Name: lm_ssiinitialize
* Name: lm_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the LM3S6965 Eval Kit.
*
************************************************************************************/
extern void weak_function lm_ssiinitialize(void);
extern void weak_function lm_spidev_initialize(void);
#endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_EKK_LM3S9B96_SRC_EKKLM3S9B96_H */

View File

@ -110,14 +110,14 @@
#ifndef __ASSEMBLY__
/************************************************************************************
* Name: lm_ssiinitialize
* Name: lm_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the MDL-S2E.
*
************************************************************************************/
void weak_function lm_ssiinitialize(void);
void weak_function lm_spidev_initialize(void);
#endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_LM3S6432_S2E_SRC_LM3S6432S2E_H */

View File

@ -79,13 +79,13 @@
void tiva_boardinitialize(void)
{
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
* lm_ssiinitialize() has been brought into the link.
* lm_spidev_initialize() has been brought into the link.
*/
#if defined(CONFIG_TIVA_SSI0)
if (lm_ssiinitialize)
if (lm_spidev_initialize)
{
lm_ssiinitialize();
lm_spidev_initialize();
}
#endif

View File

@ -73,7 +73,7 @@
void tiva_boardinitialize(void)
{
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
* lm_ssiinitialize() has been brought into the link.
* lm_spidev_initialize() has been brought into the link.
*/
/* The LM4F LaunchPad microSD CS and OLED are on SSI0 (Duh! There is no SSI1) */

View File

@ -47,6 +47,8 @@
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include "lpc214x_spi.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -182,14 +182,14 @@
#ifndef __ASSEMBLY__
/************************************************************************************
* Name: tm4c_ssiinitialize
* Name: tm4c_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the TM4C123G LaunchPad.
*
************************************************************************************/
void weak_function tm4c_ssiinitialize(void);
void weak_function tm4c_spidev_initialize(void);
/****************************************************************************
* Name: tm4c_led_initialize

View File

@ -73,15 +73,15 @@
void tiva_boardinitialize(void)
{
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
* tm4c_ssiinitialize() has been brought into the link.
* tm4c_spidev_initialize() has been brought into the link.
*/
/* The TM4C123G LaunchPad microSD CS and OLED are on SSI0 */
#if defined(CONFIG_TIVA_SSI0) || defined(CONFIG_TIVA_SSI1)
if (tm4c_ssiinitialize)
if (tm4c_spidev_initialize)
{
tm4c_ssiinitialize();
tm4c_spidev_initialize();
}
#endif

View File

@ -86,14 +86,14 @@
************************************************************************************/
/************************************************************************************
* Name: tm4c_ssiinitialize
* Name: tm4c_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the TM4C123G LaunchPad.
*
************************************************************************************/
void weak_function tm4c_ssiinitialize(void)
void weak_function tm4c_spidev_initialize(void)
{
}

View File

@ -127,14 +127,14 @@
#ifndef __ASSEMBLY__
/************************************************************************************
* Name: tm4c_ssiinitialize
* Name: tm4c_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the EK-TM4C1294XL.
*
************************************************************************************/
void weak_function tm4c_ssiinitialize(void);
void weak_function tm4c_spidev_initialize(void);
/****************************************************************************
* Name: tm4c_led_initialize

View File

@ -73,15 +73,15 @@
void tiva_boardinitialize(void)
{
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
* tm4c_ssiinitialize() has been brought into the link.
* tm4c_spidev_initialize() has been brought into the link.
*/
/* The DK-TM4C129X microSD CS and OLED are on SSI0 */
#if defined(CONFIG_TIVA_SSI0) || defined(CONFIG_TIVA_SSI1)
if (tm4c_ssiinitialize)
if (tm4c_spidev_initialize)
{
tm4c_ssiinitialize();
tm4c_spidev_initialize();
}
#endif

View File

@ -49,6 +49,7 @@
#include "up_arch.h"
#include "chip.h"
#include "lpc214x_pinsel.h"
#include "lpc214x_spi.h"
#ifdef CONFIG_LCD_UG2864AMBAG01