Rename board_led_on to board_autoled_on

This commit is contained in:
Gregory Nutt 2015-11-01 09:07:36 -06:00
parent 88c506d843
commit 78f19bbefb
102 changed files with 217 additions and 217 deletions

View File

@ -133,10 +133,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -73,10 +73,10 @@ void board_autoled_initializeialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
at32uc3_gpiowrite(PINMUX_GPIO_LED1, (led != 0)); at32uc3_gpiowrite(PINMUX_GPIO_LED1, (led != 0));
at32uc3_gpiowrite(PINMUX_GPIO_LED2, (led == 2)); at32uc3_gpiowrite(PINMUX_GPIO_LED2, (led == 2));

View File

@ -83,10 +83,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led < 8) if (led < 8)
{ {

View File

@ -134,7 +134,7 @@
* Name: up_ledon * Name: up_ledon
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -369,10 +369,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }
@ -398,7 +398,7 @@ void up_ledpminitialize(void)
int ret = pm_register(&g_ledscb); int ret = pm_register(&g_ledscb);
if (ret != OK) if (ret != OK)
{ {
board_led_on(LED_ASSERTION); board_autoled_on(LED_ASSERTION);
} }
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */

View File

@ -88,10 +88,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
} }

View File

@ -70,10 +70,10 @@ void tm4c_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
/* --------------- ------- ---- ----- -------------------- /* --------------- ------- ---- ----- --------------------
* STATE VALUE RED GREEN BLUE * STATE VALUE RED GREEN BLUE

View File

@ -89,10 +89,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
} }

View File

@ -89,10 +89,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
} }

View File

@ -111,10 +111,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {
@ -130,9 +130,9 @@ void board_led_on(int led)
g_nest++; g_nest++;
case LED_IRQSENABLED: case LED_IRQSENABLED:
case LED_STACKCREATED: case LED_STACKCREATED:
led_dumpgpio("board_led_on: before tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
tiva_gpiowrite(LED_GPIO, false); tiva_gpiowrite(LED_GPIO, false);
led_dumpgpio("board_led_on: after tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
break; break;
} }
} }

View File

@ -239,10 +239,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }

View File

@ -237,7 +237,7 @@ void efm32_led_pminitialize(void)
int ret = pm_register(&g_ledscb); int ret = pm_register(&g_ledscb);
if (ret != OK) if (ret != OK)
{ {
board_led_on(LED_ASSERTION); board_autoled_on(LED_ASSERTION);
} }
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */

View File

@ -130,10 +130,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool led0on = false; /* High illuminates */ bool led0on = false; /* High illuminates */
bool led1on = false; /* High illuminates */ bool led1on = false; /* High illuminates */

View File

@ -108,10 +108,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {
@ -127,9 +127,9 @@ void board_led_on(int led)
g_nest++; g_nest++;
case LED_IRQSENABLED: case LED_IRQSENABLED:
case LED_STACKCREATED: case LED_STACKCREATED:
led_dumpgpio("board_led_on: before tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
tiva_gpiowrite(LED_GPIO, false); tiva_gpiowrite(LED_GPIO, false);
led_dumpgpio("board_led_on: after tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
break; break;
} }
} }

View File

@ -74,10 +74,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
} }

View File

@ -227,10 +227,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
FAR const uint8_t *tmp = g_currglyph; FAR const uint8_t *tmp = g_currglyph;
switch (led) switch (led)

View File

@ -349,10 +349,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }
@ -378,7 +378,7 @@ void up_ledpminitialize(void)
int ret = pm_register(&g_ledscb); int ret = pm_register(&g_ledscb);
if (ret != OK) if (ret != OK)
{ {
board_led_on(LED_ASSERTION); board_autoled_on(LED_ASSERTION);
} }
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */

View File

@ -133,10 +133,10 @@ void kl_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led == LED_STACKCREATED) if (led == LED_STACKCREATED)
{ {

View File

@ -133,10 +133,10 @@ void kl_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led == LED_STACKCREATED) if (led == LED_STACKCREATED)
{ {

View File

@ -219,10 +219,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }

View File

@ -86,10 +86,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
/* The KwikStik-K40 board has no MCU driven, GPIO-based LEDs */ /* The KwikStik-K40 board has no MCU driven, GPIO-based LEDs */
} }

View File

@ -134,10 +134,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
/* We will control LED1 and LED2 not yet completed the boot sequence. */ /* We will control LED1 and LED2 not yet completed the boot sequence. */

View File

@ -108,10 +108,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {
@ -127,9 +127,9 @@ void board_led_on(int led)
g_nest++; g_nest++;
case LED_IRQSENABLED: case LED_IRQSENABLED:
case LED_STACKCREATED: case LED_STACKCREATED:
led_dumpgpio("board_led_on: before tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
tiva_gpiowrite(LED1_GPIO, false); tiva_gpiowrite(LED1_GPIO, false);
led_dumpgpio("board_led_on: after tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
break; break;
} }
} }

View File

@ -107,10 +107,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {
@ -126,9 +126,9 @@ void board_led_on(int led)
g_nest++; g_nest++;
case LED_IRQSENABLED: case LED_IRQSENABLED:
case LED_STACKCREATED: case LED_STACKCREATED:
led_dumpgpio("board_led_on: before tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
tiva_gpiowrite(LED_GPIO, false); tiva_gpiowrite(LED_GPIO, false);
led_dumpgpio("board_led_on: after tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
break; break;
} }
} }

View File

@ -107,10 +107,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {
@ -126,9 +126,9 @@ void board_led_on(int led)
g_nest++; g_nest++;
case LED_IRQSENABLED: case LED_IRQSENABLED:
case LED_STACKCREATED: case LED_STACKCREATED:
led_dumpgpio("board_led_on: before tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
tiva_gpiowrite(LED_GPIO, false); tiva_gpiowrite(LED_GPIO, false);
led_dumpgpio("board_led_on: after tiva_gpiowrite()"); led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
break; break;
} }
} }

View File

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

View File

@ -157,10 +157,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -151,10 +151,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool ledon = true; /* OFF. Low illuminates */ bool ledon = true; /* OFF. Low illuminates */

View File

@ -123,10 +123,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool ledon = true; /* OFF. Low illuminates */ bool ledon = true; /* OFF. Low illuminates */

View File

@ -99,10 +99,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool off; bool off;

View File

@ -99,10 +99,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool off; bool off;

View File

@ -100,12 +100,12 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
ledvdbg("board_led_on(%d)\n", led); ledvdbg("board_autoled_on(%d)\n", led);
switch (led) switch (led)
{ {
case LED_STARTED: case LED_STARTED:

View File

@ -137,10 +137,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
/* We will control LED1 and LED2 not yet completed the boot sequence. */ /* We will control LED1 and LED2 not yet completed the boot sequence. */

View File

@ -97,10 +97,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
putled(LEDBIT(led),LED_CLR_OFFSET); putled(LEDBIT(led),LED_CLR_OFFSET);
} }

View File

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

View File

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

View File

@ -105,10 +105,10 @@ void atmega_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
/* ON OFF /* ON OFF
* LED_STARTED 0 OFF ON (never happens) * LED_STARTED 0 OFF ON (never happens)

View File

@ -71,10 +71,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -109,10 +109,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -73,10 +73,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led == GIO_LED_GREEN) if (led == GIO_LED_GREEN)
{ {

View File

@ -97,10 +97,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led == BOARD_LED1) if (led == BOARD_LED1)
{ {

View File

@ -94,10 +94,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led == 1) if (led == 1)
{ {

View File

@ -138,10 +138,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
/* We will control LED1 and LED2 not yet completed the boot sequence. */ /* We will control LED1 and LED2 not yet completed the boot sequence. */

View File

@ -128,10 +128,10 @@ void nuc_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
nuc_gpiowrite(GPIO_LED, false); nuc_gpiowrite(GPIO_LED, false);
} }

View File

@ -98,7 +98,7 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
* *
* Description: * Description:
* Select the "logical" ON state: * Select the "logical" ON state:
@ -119,7 +119,7 @@ void board_autoled_initialize(void)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_ARCH_LEDS #ifdef CONFIG_ARCH_LEDS
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -149,11 +149,11 @@ void lpc17_setleds(uint8_t ledset)
#endif #endif
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_ARCH_LEDS #ifdef CONFIG_ARCH_LEDS
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -97,10 +97,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
putled8(~(LEDBIT(led)), LED_MASK_OFFSET); putled8(~(LEDBIT(led)), LED_MASK_OFFSET);
putled8(LEDBIT(led), LED_SET_OFFSET); putled8(LEDBIT(led), LED_SET_OFFSET);

View File

@ -91,10 +91,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if(led == LED_STARTED) if(led == LED_STARTED)
stm32_gpiowrite(GPIO_LED_STATUS, true); stm32_gpiowrite(GPIO_LED_STATUS, true);

View File

@ -163,10 +163,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_clrbits(BOARD_LED1_BIT | BOARD_LED2_BIT | BOARD_LED3_BIT | BOARD_LED4_BIT); led_clrbits(BOARD_LED1_BIT | BOARD_LED2_BIT | BOARD_LED3_BIT | BOARD_LED4_BIT);
led_setbits(g_ledbits[led]); led_setbits(g_ledbits[led]);

View File

@ -129,10 +129,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
/* The Olimex board has only two LEDs, so following states are faked as /* The Olimex board has only two LEDs, so following states are faked as
* follows * follows

View File

@ -143,11 +143,11 @@ void stm32_setleds(uint8_t ledset)
#endif #endif
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_ARCH_LEDS #ifdef CONFIG_ARCH_LEDS
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -262,10 +262,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }

View File

@ -130,7 +130,7 @@ void a1x_led_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
* *
* Description: * Description:
* Select the "logical" ON state: * Select the "logical" ON state:
@ -154,7 +154,7 @@ void a1x_led_initialize(void)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_ARCH_LEDS #ifdef CONFIG_ARCH_LEDS
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

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

View File

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

View File

@ -190,10 +190,10 @@ void pic32mz_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if ((unsigned)led < LED_NVALUES) if ((unsigned)led < LED_NVALUES)
{ {

View File

@ -174,10 +174,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
up_setleds(g_ledon[led & 7]); up_setleds(g_ledon[led & 7]);
} }

View File

@ -196,10 +196,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
sam_setleds(g_ledon[led & 7]); sam_setleds(g_ledon[led & 7]);
} }

View File

@ -115,10 +115,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool ledstate = true; bool ledstate = true;

View File

@ -110,10 +110,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -110,10 +110,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool led1on = false; bool led1on = false;
bool led2on = false; bool led2on = false;

View File

@ -125,10 +125,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -128,10 +128,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool blueoff = true; /* Low illuminates */ bool blueoff = true; /* Low illuminates */
bool redon = false; /* High illuminates */ bool redon = false; /* High illuminates */

View File

@ -130,10 +130,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool blueoff = true; /* Low illuminates */ bool blueoff = true; /* Low illuminates */
#ifndef CONFIG_SAMA5D3xEK_NOREDLED #ifndef CONFIG_SAMA5D3xEK_NOREDLED

View File

@ -133,10 +133,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -115,10 +115,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool ledstate = true; bool ledstate = true;

View File

@ -115,10 +115,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool ledstate = true; bool ledstate = true;

View File

@ -115,10 +115,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool ledstate = true; bool ledstate = true;

View File

@ -134,10 +134,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -366,10 +366,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }
@ -395,7 +395,7 @@ void up_ledpminitialize(void)
int ret = pm_register(&g_ledscb); int ret = pm_register(&g_ledscb);
if (ret != OK) if (ret != OK)
{ {
board_led_on(LED_ASSERTION); board_autoled_on(LED_ASSERTION);
} }
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */

View File

@ -160,10 +160,10 @@ void board_autoled_initialize(void)
} }
/************************************************************************************ /************************************************************************************
* Name: board_led_on * Name: board_autoled_on
************************************************************************************/ ************************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
uint8_t ledset; uint8_t ledset;

View File

@ -279,10 +279,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }

View File

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

View File

@ -362,10 +362,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }
@ -391,7 +391,7 @@ void stm32_ledpminitialize(void)
int ret = pm_register(&g_ledscb); int ret = pm_register(&g_ledscb);
if (ret != OK) if (ret != OK)
{ {
board_led_on(LED_ASSERTION); board_autoled_on(LED_ASSERTION);
} }
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */

View File

@ -238,10 +238,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }

View File

@ -238,10 +238,10 @@ void stm32_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }

View File

@ -98,12 +98,12 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
ledvdbg("board_led_on(%d)\n",led); ledvdbg("board_autoled_on(%d)\n",led);
switch (led) switch (led)
{ {
case LED_STARTED: case LED_STARTED:

View File

@ -85,10 +85,10 @@ static const uint32_t g_ledcfg[BOARD_NLEDS] =
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Name: board_led_onoff * Name: board_autoled_onoff
****************************************************************************/ ****************************************************************************/
void board_led_onoff(int led, bool state) void board_autoled_onoff(int led, bool state)
{ {
if ((unsigned)led < BOARD_NLEDS) if ((unsigned)led < BOARD_NLEDS)
{ {
@ -117,12 +117,12 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
board_led_onoff(led, true); board_autoled_onoff(led, true);
} }
/**************************************************************************** /****************************************************************************
@ -131,7 +131,7 @@ void board_led_on(int led)
void board_led_off(int led) void board_led_off(int led)
{ {
board_led_onoff(led, false); board_autoled_onoff(led, false);
} }
#endif /* CONFIG_ARCH_LEDS */ #endif /* CONFIG_ARCH_LEDS */

View File

@ -216,10 +216,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }

View File

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

View File

@ -233,7 +233,7 @@ void stm32_ledpminitialize(void)
int ret = pm_register(&g_ledscb); int ret = pm_register(&g_ledscb);
if (ret != OK) if (ret != OK)
{ {
board_led_on(LED_ASSERTION); board_autoled_on(LED_ASSERTION);
} }
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */

View File

@ -238,10 +238,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }

View File

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

View File

@ -238,7 +238,7 @@ void stm32_led_pminitialize(void)
int ret = pm_register(&g_ledscb); int ret = pm_register(&g_ledscb);
if (ret != OK) if (ret != OK)
{ {
board_led_on(LED_ASSERTION); board_autoled_on(LED_ASSERTION);
} }
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */

View File

@ -81,10 +81,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool ledstate = false; bool ledstate = false;

View File

@ -110,10 +110,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
bool led1on = false; bool led1on = false;
bool led2on = false; bool led2on = false;

View File

@ -85,10 +85,10 @@ void stm32_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led == 1) if (led == 1)
{ {

View File

@ -188,10 +188,10 @@ void pic32mx_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led < LED_NVALUES) if (led < LED_NVALUES)
{ {

View File

@ -105,10 +105,10 @@ void at90usb_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
/* ON OFF /* ON OFF
* LED_STARTED 0 OFF ON (never happens) * LED_STARTED 0 OFF ON (never happens)

View File

@ -78,10 +78,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led != 2) if (led != 2)
{ {

View File

@ -98,10 +98,10 @@ void kl_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led != 0) if (led != 0)
{ {

View File

@ -152,10 +152,10 @@ void tm4c_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -70,10 +70,10 @@ void tm4c_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
/* --------------- ------- ----- ----- ----- ----- ---------- /* --------------- ------- ----- ----- ----- ----- ----------
* STATE VALUE LED1 LED2 LED3 LED4 * STATE VALUE LED1 LED2 LED3 LED4

View File

@ -242,10 +242,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
led_setonoff(ON_BITS(g_ledbits[led])); led_setonoff(ON_BITS(g_ledbits[led]));
} }

View File

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

View File

@ -101,10 +101,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
uint16_t reg16; uint16_t reg16;

View File

@ -158,7 +158,7 @@ void stm32_ledinit(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
* *
* Description: * Description:
* Select the "logical" ON state: * Select the "logical" ON state:
@ -179,7 +179,7 @@ void stm32_ledinit(void)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_ARCH_LEDS #ifdef CONFIG_ARCH_LEDS
void board_led_on(int led) void board_autoled_on(int led)
{ {
switch (led) switch (led)
{ {

View File

@ -85,7 +85,7 @@ void board_autoled_initialize(void)
stm32_configgpio(GPIO_LED); stm32_configgpio(GPIO_LED);
} }
void board_led_on(int led) void board_autoled_on(int led)
{ {
if (led == LED_IDLE) if (led == LED_IDLE)
{ {

View File

@ -82,10 +82,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if ((unsigned)led <= 7) if ((unsigned)led <= 7)
{ {
@ -101,7 +101,7 @@ void board_led_off(int led)
{ {
if (led >= 1) if (led >= 1)
{ {
board_led_on(led-1); board_autoled_on(led-1);
} }
} }
#endif /* CONFIG_ARCH_LEDS */ #endif /* CONFIG_ARCH_LEDS */

View File

@ -222,10 +222,10 @@ void board_autoled_initialize(void)
} }
/**************************************************************************** /****************************************************************************
* Name: board_led_on * Name: board_autoled_on
****************************************************************************/ ****************************************************************************/
void board_led_on(int led) void board_autoled_on(int led)
{ {
if ((unsigned)led <= 8) if ((unsigned)led <= 8)
{ {
@ -241,7 +241,7 @@ void board_led_off(int led)
{ {
if (led >= 1) if (led >= 1)
{ {
board_led_on(led-1); board_autoled_on(led-1);
} }
} }
#endif /* CONFIG_ARCH_LEDS */ #endif /* CONFIG_ARCH_LEDS */

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