Sabre-6Quad: Update some GPIO configuration functin names

This commit is contained in:
Gregory Nutt 2016-03-05 09:12:30 -06:00
parent 7d32bbebde
commit e1d024039a
3 changed files with 7 additions and 28 deletions

View File

@ -72,6 +72,7 @@
#include <nuttx/board.h>
#include <arch/board/board.h>
#include "imx_gpio.h"
#include "sabre-6quad.h"
#ifdef CONFIG_ARCH_LEDS
@ -79,10 +80,6 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* REVISIT: There is no GPIO logic in place yet */
#warning Missing logic
#define imx_configgpio(a)
#define imx_gpiowrite(a,b)
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
* with CONFIG_DEBUG_VERBOSE too)
@ -96,14 +93,6 @@
# define ledvdbg(x...)
#endif
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/
@ -116,7 +105,7 @@ void board_autoled_initialize(void)
{
/* Configure LED PIOs for output */
imx_configgpio(GPIO_LED0);
imx_config_gpio(GPIO_LED0);
}
/****************************************************************************

View File

@ -47,18 +47,6 @@
#include "sabre-6quad.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* REVISIT: There is no GPIO logic in place yet */
#warning Missing logic
#define imx_configgpio(a)
#define imx_gpiowrite(a,b)
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/
@ -71,7 +59,7 @@ void board_userled_initialize(void)
{
/* Configure LED PIOs for output */
imx_configgpio(GPIO_LED0);
imx_config_gpio(GPIO_LED0);
}
/****************************************************************************
@ -82,7 +70,7 @@ void board_userled(int led, bool ledon)
{
if (led == BOARD_LED0)
{
imx_gpiowrite(GPIO_LED0, !ledon); /* Low illuminates */
imx_gpio_write(GPIO_LED0, !ledon); /* Low illuminates */
}
}
@ -94,5 +82,5 @@ void board_userled_all(uint8_t ledset)
{
/* Low illuminates */
imx_gpiowrite(GPIO_LED0, (ledset & BOARD_LED0_BIT) == 0));
imx_gpio_write(GPIO_LED0, (ledset & BOARD_LED0_BIT) == 0));
}

View File

@ -51,6 +51,8 @@
/* SABRE-6QUAD GPIO Pin Definitions *************************************************/
#define GPIO_LED0 0 /* To be provided */
/************************************************************************************
* Public Types
************************************************************************************/