rename up_led*() functions to board_led_*()

This commit is contained in:
Gregory Nutt 2014-01-24 14:28:49 -06:00
parent f797601f19
commit 42a86a9cba
139 changed files with 610 additions and 610 deletions

View File

@ -93,20 +93,20 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* All GPIO initialization is done in up_lowinit() */
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
#if defined(HAVE_16Z_LED3) || defined(HAVE_16Z_LED4)
/* The following operations must be atomic */
@ -138,10 +138,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
#if defined(HAVE_16Z_LED3) || defined(HAVE_16Z_LED4)
/* The following operations must be atomic */

View File

@ -321,11 +321,11 @@ void sam_sram_initialize(void);
#endif
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
************************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void);
void board_led_initialize(void);
#endif
/****************************************************************************

View File

@ -116,10 +116,10 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure RX and TX LED GPIOs for output */
@ -129,10 +129,10 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -178,10 +178,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{

View File

@ -70,6 +70,6 @@ void sam_boardinitialize(void)
#ifdef CONFIG_ARCH_LEDS
/* Configure on-board LEDs if LED support has been selected. */
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -112,14 +112,14 @@
************************************************************************************/
/************************************************************************************
* Name: up_ledinitialize
* Name: board_led_initializeialize
*
* Description:
* Configure on-board LEDs if LED support has been selected.
************************************************************************************/
#ifdef CONFIG_ARCH_LEDS
extern void up_ledinitialize(void);
extern void board_led_initializeialize(void);
#endif
#endif /* __ASSEMBLY__ */

View File

@ -79,6 +79,6 @@ void up_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinitialize();
board_led_initializeialize();
#endif
}

View File

@ -62,30 +62,30 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinitialize
* Name: board_led_initializeialize
****************************************************************************/
void up_ledinitialize(void)
void board_led_initializeialize(void)
{
at32uc3_configgpio(PINMUX_GPIO_LED1);
at32uc3_configgpio(PINMUX_GPIO_LED2);
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
at32uc3_gpiowrite(PINMUX_GPIO_LED1, (led != 0));
at32uc3_gpiowrite(PINMUX_GPIO_LED2, (led == 2));
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
at32uc3_gpiowrite(PINMUX_GPIO_LED1, (led == 2));
at32uc3_gpiowrite(PINMUX_GPIO_LED2, false);

View File

@ -63,11 +63,11 @@ static uint32_t g_ledstate;
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Enable access to LEDs */
@ -80,10 +80,10 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
if (led < 8)
{
@ -93,10 +93,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
if (led < 8)
{

View File

@ -354,11 +354,11 @@ static int led_pm_prepare(struct pm_callback_s *cb , enum pm_state_e pmstate)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */
@ -369,19 +369,19 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
led_setonoff(ON_BITS(g_ledbits[led]));
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
led_setonoff(OFF_BITS(g_ledbits[led]));
}
@ -398,7 +398,7 @@ void up_ledpminitialize(void)
int ret = pm_register(&g_ledscb);
if (ret != OK)
{
up_ledon(LED_ASSERTION);
board_led_on(LED_ASSERTION);
}
}
#endif /* CONFIG_PM */

View File

@ -98,6 +98,6 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -64,7 +64,7 @@
* Public Functions
************************************************************************************/
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Configure and initialize on-board LEDs
@ -72,7 +72,7 @@
************************************************************************************/
#ifdef CONFIG_ARCH_LEDS
extern void up_ledinit(void);
extern void board_led_initialize(void);
#endif
/************************************************************************************

View File

@ -84,6 +84,6 @@ void hcs12_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -75,7 +75,7 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Configure and initialize on-board LEDs
@ -83,23 +83,23 @@
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
}

View File

@ -118,7 +118,7 @@ void lpc31_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Set up mass storage device to support on demand paging */

View File

@ -439,6 +439,6 @@ const struct lpc31_clkinit_s g_boardclks =
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/

View File

@ -80,27 +80,27 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
}

View File

@ -105,7 +105,7 @@ void lpc31_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Set up mass storage device to support on demand paging */

View File

@ -439,6 +439,6 @@ const struct lpc31_clkinit_s g_boardclks =
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/

View File

@ -80,27 +80,27 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
}

View File

@ -91,7 +91,7 @@
extern void weak_function lm_ssiinitialize(void);
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Initialize on-board LEDs.
@ -99,7 +99,7 @@ extern void weak_function lm_ssiinitialize(void);
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
extern void up_ledinit(void);
extern void board_led_initialize(void);
#endif
#endif /* __ASSEMBLY__ */

View File

@ -87,6 +87,6 @@ void lm_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -90,7 +90,7 @@
static uint8_t g_nest;
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Initialize on-board LEDs.
@ -98,23 +98,23 @@ static uint8_t g_nest;
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
leddbg("Initializing\n");
/* Configure Port E, Bit 1 as an output, initial value=OFF */
led_dumpgpio("up_ledinit before lm_configgpio()");
led_dumpgpio("board_led_initialize before lm_configgpio()");
lm_configgpio(LED_GPIO);
led_dumpgpio("up_ledinit after lm_configgpio()");
led_dumpgpio("board_led_initialize after lm_configgpio()");
g_nest = 0;
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -130,18 +130,18 @@ void up_ledon(int led)
g_nest++;
case LED_IRQSENABLED:
case LED_STACKCREATED:
led_dumpgpio("up_ledon: before lm_gpiowrite()");
led_dumpgpio("board_led_on: before lm_gpiowrite()");
lm_gpiowrite(LED_GPIO, false);
led_dumpgpio("up_ledon: after lm_gpiowrite()");
led_dumpgpio("board_led_on: after lm_gpiowrite()");
break;
}
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{
@ -158,9 +158,9 @@ void up_ledoff(int led)
case LED_PANIC:
if (--g_nest <= 0)
{
led_dumpgpio("up_ledoff: before lm_gpiowrite()");
led_dumpgpio("board_led_off: before lm_gpiowrite()");
lm_gpiowrite(LED_GPIO, true);
led_dumpgpio("up_ledoff: after lm_gpiowrite()");
led_dumpgpio("board_led_off: after lm_gpiowrite()");
}
break;
}

View File

@ -87,6 +87,6 @@ void lm_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -91,27 +91,27 @@
static uint8_t g_nest;
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
leddbg("Initializing\n");
/* Configure Port D, Bit 0 as an output, initial value=OFF */
led_dumpgpio("up_ledinit before lm_configgpio()");
led_dumpgpio("board_led_initialize before lm_configgpio()");
lm_configgpio(LED_GPIO);
led_dumpgpio("up_ledinit after lm_configgpio()");
led_dumpgpio("board_led_initialize after lm_configgpio()");
g_nest = 0;
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -127,18 +127,18 @@ void up_ledon(int led)
g_nest++;
case LED_IRQSENABLED:
case LED_STACKCREATED:
led_dumpgpio("up_ledon: before lm_gpiowrite()");
led_dumpgpio("board_led_on: before lm_gpiowrite()");
lm_gpiowrite(LED_GPIO, false);
led_dumpgpio("up_ledon: after lm_gpiowrite()");
led_dumpgpio("board_led_on: after lm_gpiowrite()");
break;
}
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{
@ -155,9 +155,9 @@ void up_ledoff(int led)
case LED_PANIC:
if (--g_nest <= 0)
{
led_dumpgpio("up_ledoff: before lm_gpiowrite()");
led_dumpgpio("board_led_off: before lm_gpiowrite()");
lm_gpiowrite(LED_GPIO, true);
led_dumpgpio("up_ledoff: after lm_gpiowrite()");
led_dumpgpio("board_led_off: after lm_gpiowrite()");
}
break;
}

View File

@ -63,27 +63,27 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
}
#endif /* CONFIG_ARCH_LEDS */

View File

@ -212,11 +212,11 @@ static int8_t g_intcount = 0;
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
g_currglyph = g_chspace;
g_prevglyph = g_chspace;
@ -225,10 +225,10 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
FAR const uint8_t *tmp = g_currglyph;
switch (led)
@ -277,10 +277,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
if (led == LED_INIRQ)
{

View File

@ -335,11 +335,11 @@ static int led_pm_prepare(struct pm_callback_s *cb , enum pm_state_e pmstate)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */
@ -349,19 +349,19 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
led_setonoff(ON_BITS(g_ledbits[led]));
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
led_setonoff(OFF_BITS(g_ledbits[led]));
}
@ -378,7 +378,7 @@ void up_ledpminitialize(void)
int ret = pm_register(&g_ledscb);
if (ret != OK)
{
up_ledon(LED_ASSERTION);
board_led_on(LED_ASSERTION);
}
}
#endif /* CONFIG_PM */

View File

@ -97,6 +97,6 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -133,10 +133,10 @@ void kl_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
if (led == LED_STACKCREATED)
{
@ -153,10 +153,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
if (led == LED_PANIC)
{

View File

@ -98,6 +98,6 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -207,11 +207,11 @@ static void led_setonoff(unsigned int bits)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1 & LED2 GPIOs for output */
stm32_configgpio(GPIO_LED1);
@ -219,19 +219,19 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
led_setonoff(ON_BITS(g_ledbits[led]));
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
led_setonoff(OFF_BITS(g_ledbits[led]));
}

View File

@ -159,7 +159,7 @@
************************************************************************************/
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Initialize LED GPIOs so that LEDs can be controlled.
@ -167,7 +167,7 @@
************************************************************************************/
#ifdef CONFIG_ARCH_LEDS
extern void up_ledinit(void);
extern void board_led_initialize(void);
#endif
/************************************************************************************

View File

@ -97,6 +97,6 @@ void kinetis_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -71,7 +71,7 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Initialize LED GPIOs so that LEDs can be controlled.
@ -79,25 +79,25 @@
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* The KwikStik-K40 board has no MCU driven, GPIO-based LEDs */
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
/* The KwikStik-K40 board has no MCU driven, GPIO-based LEDs */
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
/* The KwikStik-K40 board has no MCU driven, GPIO-based LEDs */
}

View File

@ -76,6 +76,6 @@ void lpc17_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -118,26 +118,26 @@ static int g_nestcount;
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure all LED GPIO lines */
led_dumpgpio("up_ledinit() Entry)");
led_dumpgpio("board_led_initialize() Entry)");
lpc17_configgpio(LINCOLN60_LED1);
lpc17_configgpio(LINCOLN60_LED2);
led_dumpgpio("up_ledinit() Exit");
led_dumpgpio("board_led_initialize() Exit");
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
/* We will control LED1 and LED2 not yet completed the boot sequence. */
@ -181,10 +181,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
/* In all states, OFF can only mean turning off the HB LED */

View File

@ -92,7 +92,7 @@ void lm_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Configure serial transciever */

View File

@ -90,28 +90,28 @@
static uint8_t g_nest;
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
leddbg("Initializing\n");
/* Configure Port F, Bit 2 as an output, initial value=OFF */
led_dumpgpio("up_ledinit before lm_configgpio()");
led_dumpgpio("board_led_initialize before lm_configgpio()");
lm_configgpio(LED0_GPIO);
lm_configgpio(LED1_GPIO);
led_dumpgpio("up_ledinit after lm_configgpio()");
led_dumpgpio("board_led_initialize after lm_configgpio()");
g_nest = 0;
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -127,18 +127,18 @@ void up_ledon(int led)
g_nest++;
case LED_IRQSENABLED:
case LED_STACKCREATED:
led_dumpgpio("up_ledon: before lm_gpiowrite()");
led_dumpgpio("board_led_on: before lm_gpiowrite()");
lm_gpiowrite(LED1_GPIO, false);
led_dumpgpio("up_ledon: after lm_gpiowrite()");
led_dumpgpio("board_led_on: after lm_gpiowrite()");
break;
}
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{
@ -155,9 +155,9 @@ void up_ledoff(int led)
case LED_PANIC:
if (--g_nest <= 0)
{
led_dumpgpio("up_ledoff: before lm_gpiowrite()");
led_dumpgpio("board_led_off: before lm_gpiowrite()");
lm_gpiowrite(LED1_GPIO, true);
led_dumpgpio("up_ledoff: after lm_gpiowrite()");
led_dumpgpio("board_led_off: after lm_gpiowrite()");
}
break;
}

View File

@ -88,6 +88,6 @@ void lm_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -90,27 +90,27 @@
static uint8_t g_nest;
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
leddbg("Initializing\n");
/* Configure Port E, Bit 1 as an output, initial value=OFF */
led_dumpgpio("up_ledinit before lm_configgpio()");
led_dumpgpio("board_led_initialize before lm_configgpio()");
lm_configgpio(LED_GPIO);
led_dumpgpio("up_ledinit after lm_configgpio()");
led_dumpgpio("board_led_initialize after lm_configgpio()");
g_nest = 0;
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -126,18 +126,18 @@ void up_ledon(int led)
g_nest++;
case LED_IRQSENABLED:
case LED_STACKCREATED:
led_dumpgpio("up_ledon: before lm_gpiowrite()");
led_dumpgpio("board_led_on: before lm_gpiowrite()");
lm_gpiowrite(LED_GPIO, false);
led_dumpgpio("up_ledon: after lm_gpiowrite()");
led_dumpgpio("board_led_on: after lm_gpiowrite()");
break;
}
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{
@ -154,9 +154,9 @@ void up_ledoff(int led)
case LED_PANIC:
if (--g_nest <= 0)
{
led_dumpgpio("up_ledoff: before lm_gpiowrite()");
led_dumpgpio("board_led_off: before lm_gpiowrite()");
lm_gpiowrite(LED_GPIO, true);
led_dumpgpio("up_ledoff: after lm_gpiowrite()");
led_dumpgpio("board_led_off: after lm_gpiowrite()");
}
break;
}

View File

@ -88,6 +88,6 @@ void lm_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -90,27 +90,27 @@
static uint8_t g_nest;
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
leddbg("Initializing\n");
/* Configure Port E, Bit 1 as an output, initial value=OFF */
led_dumpgpio("up_ledinit before lm_configgpio()");
led_dumpgpio("board_led_initialize before lm_configgpio()");
lm_configgpio(LED_GPIO);
led_dumpgpio("up_ledinit after lm_configgpio()");
led_dumpgpio("board_led_initialize after lm_configgpio()");
g_nest = 0;
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -126,18 +126,18 @@ void up_ledon(int led)
g_nest++;
case LED_IRQSENABLED:
case LED_STACKCREATED:
led_dumpgpio("up_ledon: before lm_gpiowrite()");
led_dumpgpio("board_led_on: before lm_gpiowrite()");
lm_gpiowrite(LED_GPIO, false);
led_dumpgpio("up_ledon: after lm_gpiowrite()");
led_dumpgpio("board_led_on: after lm_gpiowrite()");
break;
}
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{
@ -154,9 +154,9 @@ void up_ledoff(int led)
case LED_PANIC:
if (--g_nest <= 0)
{
led_dumpgpio("up_ledoff: before lm_gpiowrite()");
led_dumpgpio("board_led_off: before lm_gpiowrite()");
lm_gpiowrite(LED_GPIO, true);
led_dumpgpio("up_ledoff: after lm_gpiowrite()");
led_dumpgpio("board_led_off: after lm_gpiowrite()");
}
break;
}

View File

@ -152,10 +152,10 @@ void lm4f_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -192,10 +192,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{

View File

@ -136,14 +136,14 @@ static void led_dumppins(FAR const char *msg)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure all LED pins as GPIO outputs */
led_dumppins("up_ledinit() Entry)");
led_dumppins("board_led_initialize() Entry)");
/* Configure LED pins as GPIOs, then configure GPIOs as outputs */
@ -153,14 +153,14 @@ void up_ledinit(void)
lpc43_pin_config(PINCONFIG_LED2);
lpc43_gpio_config(GPIO_LED2);
led_dumppins("up_ledinit() Exit");
led_dumppins("board_led_initialize() Exit");
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -182,10 +182,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{

View File

@ -76,6 +76,6 @@ void lpc43_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -88,6 +88,6 @@ void lpc17_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -86,10 +86,10 @@ static bool g_ncstate;
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure all LED GPIO lines */
@ -98,10 +98,10 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
bool off;
@ -125,10 +125,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
bool off;

View File

@ -74,7 +74,7 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function

View File

@ -87,11 +87,11 @@ static inline void set_led(bool v)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED GPIO for output */
@ -99,12 +99,12 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
ledvdbg("up_ledon(%d)\n", led);
ledvdbg("board_led_on(%d)\n", led);
switch (led)
{
case LED_STARTED:
@ -128,12 +128,12 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
ledvdbg("up_ledoff(%d)\n", led);
ledvdbg("board_led_off(%d)\n", led);
switch (led)
{

View File

@ -76,7 +76,7 @@ void lpc17_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -119,28 +119,28 @@ static int g_nestcount;
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure all LED GPIO lines */
led_dumpgpio("up_ledinit() Entry)");
led_dumpgpio("board_led_initialize() Entry)");
lpc17_configgpio(MBED_LED1);
lpc17_configgpio(MBED_LED2);
lpc17_configgpio(MBED_LED3);
lpc17_configgpio(MBED_LED4);
led_dumpgpio("up_ledinit() Exit");
led_dumpgpio("board_led_initialize() Exit");
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
/* We will control LED1 and LED2 not yet completed the boot sequence. */
@ -184,10 +184,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
/* In all states, OFF can only mean turning off the HB LED */

View File

@ -82,11 +82,11 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Initilize GIOs P1.16-P1.23 */
@ -96,19 +96,19 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
putled(LEDBIT(led),LED_CLR_OFFSET);
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
putled(LEDBIT(led),LED_SET_OFFSET);
}

View File

@ -67,8 +67,8 @@
*/
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
# define BEGIN_IDLE() up_ledon(LED_IDLE)
# define END_IDLE() up_ledoff(LED_IDLE)
# define BEGIN_IDLE() board_led_on(LED_IDLE)
# define END_IDLE() board_led_off(LED_IDLE)
#else
# define BEGIN_IDLE()
# define END_IDLE()

View File

@ -230,11 +230,11 @@ void pic32mx_setleds(uint8_t ledset)
#endif
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledon(int led)
void board_led_on(int led)
{
if ((unsigned)led < LED_NVALUES)
{
@ -244,11 +244,11 @@ void up_ledon(int led)
#endif
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledoff(int led)
void board_led_off(int led)
{
if ((unsigned)led < LED_NVALUES)
{

View File

@ -59,11 +59,11 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure Port A, Bit 2 as an output, initial value=1 */
@ -71,10 +71,10 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -96,10 +96,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
imxgpio_clroutput(GPIOA, 2); /* Port A, Bit 2 = 0 */
}

View File

@ -178,7 +178,7 @@
* Public Functions
************************************************************************************/
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Configure and initialize on-board LEDs
@ -186,7 +186,7 @@
************************************************************************************/
#ifdef CONFIG_ARCH_LEDS
extern void up_ledinit(void);
extern void board_led_initialize(void);
#endif
/************************************************************************************

View File

@ -84,6 +84,6 @@ void hcs12_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -89,30 +89,30 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Configure and initialize on-board LEDs
*
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure all LED GPIO lines */
led_dumpgpio("up_ledinit() Entry)");
led_dumpgpio("board_led_initialize() Entry)");
hcs12_configgpio(NE64BADGE_LED1);
hcs12_configgpio(NE64BADGE_LED2);
led_dumpgpio("up_ledinit() Exit");
led_dumpgpio("board_led_initialize() Exit");
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -134,10 +134,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{

View File

@ -58,11 +58,11 @@
************************************************************************/
/************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
GIO_OUTPUT(GIO_LED_GREEN);
GIO_OUTPUT(GIO_LED_RED);
@ -71,10 +71,10 @@ void up_ledinit(void)
}
/************************************************************************
* Name: up_ledon
* Name: board_led_on
************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
if (led == GIO_LED_GREEN)
{
@ -87,10 +87,10 @@ void up_ledon(int led)
}
/************************************************************************
* Name: up_ledoff
* Name: board_led_off
************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
if (led == GIO_LED_GREEN)
{

View File

@ -106,7 +106,7 @@ void lpc17_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Configure the relay outptus for use on the BMS master board */

View File

@ -118,14 +118,14 @@ static int g_nestcount;
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure all LED GPIO lines */
led_dumpgpio("up_ledinit() Entry)");
led_dumpgpio("board_led_initialize() Entry)");
lpc17_configgpio(NUCLEUS2G_LED1_A);
lpc17_configgpio(NUCLEUS2G_LED1_B);
@ -134,14 +134,14 @@ void up_ledinit(void)
lpc17_configgpio(NUCLEUS2G_HEARTBEAT);
lpc17_configgpio(NUCLEUS2G_EXTRA_LED);
led_dumpgpio("up_ledinit() Exit");
led_dumpgpio("board_led_initialize() Exit");
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
/* We will control LED1 and LED2 not yet completed the boot sequence. */
@ -185,10 +185,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
/* In all states, OFF can only mean turning off the HB LED */

View File

@ -128,19 +128,19 @@ void nuc_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
nuc_gpiowrite(GPIO_LED, false);
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
nuc_gpiowrite(GPIO_LED, true);
}

View File

@ -113,5 +113,5 @@ void lpc31_boardinitialize(void)
/* Configure on-board LEDs in all cases */
up_ledinit();
board_led_initialize();
}

View File

@ -81,14 +81,14 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Configure LEDs. LEDs are left in the OFF state.
*
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Turn off both LEDs */
@ -97,7 +97,7 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
*
* Description:
* Select the "logical" ON state:
@ -118,7 +118,7 @@ void up_ledinit(void)
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -143,7 +143,7 @@ void up_ledon(int led)
#endif
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
*
* Description:
* Select the "logical" OFF state:
@ -164,7 +164,7 @@ void up_ledon(int led)
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{

View File

@ -206,14 +206,14 @@ int lpc31_mmcsd_initialize(int slot, int minor)
#endif
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
*
* Description:
* Configure LEDs. LEDs are left in the OFF state.
*
****************************************************************************/
void up_ledinit(void);
void board_led_initialize(void);
#endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_OLIMEX_LPC_H3131_SRC_LPC_H3131_H */

View File

@ -88,6 +88,6 @@ void lpc17_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -99,23 +99,23 @@ static bool g_uninitialized = true;
****************************************************************************/
/****************************************************************************
* Name: lpc17_ledinit/up_ledinit
* Name: lpc17_ledinit/board_led_initialize
****************************************************************************/
#ifndef CONFIG_ARCH_LEDS
void lpc17_ledinit(void) /* Name when invoked externally */
#else
void up_ledinit(void) /* Name when invoked via up_boot.c */
void board_led_initialize(void) /* Name when invoked via up_boot.c */
#endif
{
/* Configure all LED GPIO lines */
led_dumpgpio("up_ledinit() Entry)");
led_dumpgpio("board_led_initialize() Entry)");
lpc17_configgpio(LPC1766STK_LED1);
lpc17_configgpio(LPC1766STK_LED2);
led_dumpgpio("up_ledinit() Exit");
led_dumpgpio("board_led_initialize() Exit");
}
/****************************************************************************
@ -149,11 +149,11 @@ void lpc17_setleds(uint8_t ledset)
#endif
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -181,11 +181,11 @@ void up_ledon(int led)
#endif
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{

View File

@ -90,11 +90,11 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Initilize GIOs P1.16-P1.23 */
@ -104,20 +104,20 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
putled8(~(LEDBIT(led)), LED_MASK_OFFSET);
putled8(LEDBIT(led), LED_SET_OFFSET);
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
putled8(LEDBIT(led), LED_CLR_OFFSET);
}

View File

@ -147,10 +147,10 @@ static inline void led_setbits(unsigned int setbits)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */
@ -161,20 +161,20 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
led_clrbits(BOARD_LED1_BIT | BOARD_LED2_BIT | BOARD_LED3_BIT | BOARD_LED4_BIT);
led_setbits(g_ledbits[led]);
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
led_clrbits(g_ledbits[led]);
}

View File

@ -84,7 +84,7 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Configure on-board BUTTONs if BUTTON support has been selected. */

View File

@ -97,11 +97,11 @@ static void up_setleds(uint16_t setbits, uint16_t clearbits)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
uint16_t reg16;
@ -127,10 +127,10 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
/* The Olimex board has only two LEDs, so following states are faked as
* follows
@ -174,10 +174,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
/* The Olimex board has only two LEDs, so following states are faked as
* follows

View File

@ -248,10 +248,10 @@ static void led_setonoff(unsigned int bits)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */
@ -262,19 +262,19 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
led_setonoff(ON_BITS(g_ledbits[led]));
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
led_setonoff(OFF_BITS(g_ledbits[led]));
}

View File

@ -104,7 +104,7 @@ void lpc17_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Configure the LCD GPIOs if LCD support has been selected. */

View File

@ -129,7 +129,7 @@ void a1x_led_initialize(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
*
* Description:
* Select the "logical" ON state:
@ -153,7 +153,7 @@ void a1x_led_initialize(void)
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledon(int led)
void board_led_on(int led)
{
switch (led)
{
@ -183,7 +183,7 @@ void up_ledon(int led)
#endif
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
*
* Description:
* Select the "logical" OFF state:
@ -207,7 +207,7 @@ void up_ledon(int led)
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{

View File

@ -238,11 +238,11 @@ void pic32mx_setleds(uint8_t ledset)
#endif
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledon(int led)
void board_led_on(int led)
{
if ((unsigned)led < LED_NVALUES)
{
@ -252,11 +252,11 @@ void up_ledon(int led)
#endif
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledoff(int led)
void board_led_off(int led)
{
if ((unsigned)led < LED_NVALUES)
{

View File

@ -247,11 +247,11 @@ void pic32mx_setleds(uint8_t ledset)
#endif
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledon(int led)
void board_led_on(int led)
{
if ((unsigned)led < LED_NVALUES)
{
@ -261,11 +261,11 @@ void up_ledon(int led)
#endif
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledoff(int led)
void board_led_off(int led)
{
if ((unsigned)led < LED_NVALUES)
{

View File

@ -119,11 +119,11 @@ static void _up_putnl(void) __naked
************************************************************************/
/************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Set all ports as outputs */
@ -138,10 +138,10 @@ void up_ledinit(void)
}
/************************************************************************
* Name: up_ledon
* Name: board_led_on
************************************************************************/
void up_ledon(uint8_t led)
void board_led_on(uint8_t led)
{
/* This may be called from an interrupt handler */
@ -172,10 +172,10 @@ void up_ledon(uint8_t led)
}
/************************************************************************
* Name: up_ledoff
* Name: board_led_off
************************************************************************/
void up_ledoff(uint8_t led)
void board_led_off(uint8_t led)
{
/* This may be called from an interrupt handler */

View File

@ -182,7 +182,7 @@ void stm32_boardinitialize(void)
/* Configure LEDs */
up_ledinit();
board_led_initialize();
}
/****************************************************************************
@ -238,7 +238,7 @@ int nsh_archinitialize(void)
if (!spi1)
{
message("[boot] FAILED to initialize SPI port 1\n");
up_ledon(LED_AMBER);
board_led_on(LED_AMBER);
return -ENODEV;
}
@ -261,7 +261,7 @@ int nsh_archinitialize(void)
if (!spi2)
{
message("[boot] FAILED to initialize SPI port 2\n");
up_ledon(LED_AMBER);
board_led_on(LED_AMBER);
return -ENODEV;
}

View File

@ -77,6 +77,6 @@ void up_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -246,11 +246,11 @@ int weak_function sam_hsmciinit(void);
#endif
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
************************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void);
void board_led_initialize(void);
#endif
/************************************************************************************

View File

@ -96,7 +96,7 @@ void sam_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Setup SD card-related PIOs if 1) HSMCI is selected and 2) the weak

View File

@ -162,10 +162,10 @@ static void up_setleds(uint8_t state)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
(void)sam_configgpio(GPIO_LED0);
(void)sam_configgpio(GPIO_LED1);
@ -173,19 +173,19 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
up_setleds(g_ledon[led & 7]);
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
up_setleds(g_ledoff[led & 7]);
}

View File

@ -359,11 +359,11 @@ int sam_slcd_initialize(void);
#endif
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
************************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void);
void board_led_initialize(void);
#endif
#endif /* __ASSEMBLY__ */

View File

@ -105,19 +105,19 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
(void)sam_configgpio(GPIO_LED0);
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
bool ledstate = true;
@ -144,10 +144,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
switch (led)
{

View File

@ -81,6 +81,6 @@ void sam_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -136,11 +136,11 @@ void sam_sram_initialize(void);
#endif
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
************************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void);
void board_led_initialize(void);
#endif
#endif /* __ASSEMBLY__ */

View File

@ -97,10 +97,10 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1-2 GPIOs for output */
@ -109,10 +109,10 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
bool led1on = false;
bool led2on = false;
@ -140,10 +140,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
if (led != 2)
{

View File

@ -76,6 +76,6 @@ void sam_boardinitialize(void)
#ifdef CONFIG_ARCH_LEDS
/* Configure on-board LEDs if LED support has been selected. */
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -115,10 +115,10 @@
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED PIOs for output */
@ -127,10 +127,10 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
bool blueoff = true; /* Low illuminates */
bool redon = false; /* High illuminates */
@ -158,10 +158,10 @@ void up_ledon(int led)
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
if (led != 2)
{

View File

@ -118,7 +118,7 @@ void sam_boardinitialize(void)
#ifdef CONFIG_ARCH_LEDS
/* Configure on-board LEDs if LED support has been selected. */
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -737,11 +737,11 @@ void weak_function sam_netinitialize(void);
#endif
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
************************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void);
void board_led_initialize(void);
#endif
/************************************************************************************

View File

@ -351,11 +351,11 @@ static int led_pm_prepare(struct pm_callback_s *cb , enum pm_state_e pmstate)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */
@ -366,19 +366,19 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
led_setonoff(ON_BITS(g_ledbits[led]));
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
led_setonoff(OFF_BITS(g_ledbits[led]));
}
@ -395,7 +395,7 @@ void up_ledpminitialize(void)
int ret = pm_register(&g_ledscb);
if (ret != OK)
{
up_ledon(LED_ASSERTION);
board_led_on(LED_ASSERTION);
}
}
#endif /* CONFIG_PM */

View File

@ -97,6 +97,6 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -105,7 +105,7 @@ static uint8_t g_nestlevel;
************************************************************************************/
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
************************************************************************************/
static void up_setleds(uint8_t gybits, uint8_t rbit)
@ -128,10 +128,10 @@ static void up_setleds(uint8_t gybits, uint8_t rbit)
************************************************************************************/
/************************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
************************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
register uint8_t regval;
@ -157,10 +157,10 @@ void up_ledinit(void)
}
/************************************************************************************
* Name: up_ledon
* Name: board_led_on
************************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
uint8_t ledset;
@ -193,10 +193,10 @@ void up_ledon(int led)
}
/************************************************************************************
* Name: up_ledoff
* Name: board_led_off
************************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
uint8_t ledset;

View File

@ -223,7 +223,7 @@ extern "C"
************************************************************************************/
/************************************************************************************
* Name: up_ledinit, up_setled, and up_setleds
* Name: board_led_initialize, up_setled, and up_setleds
*
* Description:
* If CONFIG_ARCH_LEDS is defined, then NuttX will control the on-board LEDs. If
@ -233,8 +233,8 @@ extern "C"
************************************************************************************/
#ifndef CONFIG_ARCH_LEDS
#undef up_ledinit // Remove macro definition to reuse name
void up_ledinit(void);
#undef board_led_initialize // Remove macro definition to reuse name
void board_led_initialize(void);
void up_setled(int led, bool ledon);
void up_setleds(uint8_t ledset, uint8_t led_states_set);
#endif

View File

@ -264,10 +264,10 @@ static void led_setonoff(unsigned int bits)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */
@ -278,19 +278,19 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
led_setonoff(ON_BITS(g_ledbits[led]));
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
led_setonoff(OFF_BITS(g_ledbits[led]));
}

View File

@ -74,7 +74,7 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
#ifdef CONFIG_ARCH_HAVE_BUTTONS

View File

@ -89,10 +89,10 @@ static uint32_t g_ledcfg[BOARD_NLEDS] =
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */

View File

@ -103,6 +103,6 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}

View File

@ -68,8 +68,8 @@
*/
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
# define BEGIN_IDLE() up_ledon(LED_IDLE)
# define END_IDLE() up_ledoff(LED_IDLE)
# define BEGIN_IDLE() board_led_on(LED_IDLE)
# define END_IDLE() board_led_off(LED_IDLE)
#else
# define BEGIN_IDLE()
# define END_IDLE()

Some files were not shown because too many files have changed in this diff Show More