Rename board_led_on to board_autoled_on
This commit is contained in:
parent
88c506d843
commit
78f19bbefb
@ -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)
|
||||
{
|
||||
|
@ -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_LED2, (led == 2));
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -134,7 +134,7 @@
|
||||
* Name: up_ledon
|
||||
****************************************************************************/
|
||||
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
switch (led)
|
||||
{
|
||||
|
@ -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]));
|
||||
}
|
||||
@ -398,7 +398,7 @@ void up_ledpminitialize(void)
|
||||
int ret = pm_register(&g_ledscb);
|
||||
if (ret != OK)
|
||||
{
|
||||
board_led_on(LED_ASSERTION);
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
@ -130,9 +130,9 @@ void board_led_on(int led)
|
||||
g_nest++;
|
||||
case LED_IRQSENABLED:
|
||||
case LED_STACKCREATED:
|
||||
led_dumpgpio("board_led_on: before tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
|
||||
tiva_gpiowrite(LED_GPIO, false);
|
||||
led_dumpgpio("board_led_on: after tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -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]));
|
||||
}
|
||||
|
@ -237,7 +237,7 @@ void efm32_led_pminitialize(void)
|
||||
int ret = pm_register(&g_ledscb);
|
||||
if (ret != OK)
|
||||
{
|
||||
board_led_on(LED_ASSERTION);
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
@ -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 led1on = false; /* High illuminates */
|
||||
|
@ -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)
|
||||
{
|
||||
@ -127,9 +127,9 @@ void board_led_on(int led)
|
||||
g_nest++;
|
||||
case LED_IRQSENABLED:
|
||||
case LED_STACKCREATED:
|
||||
led_dumpgpio("board_led_on: before tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
|
||||
tiva_gpiowrite(LED_GPIO, false);
|
||||
led_dumpgpio("board_led_on: after tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
switch (led)
|
||||
|
@ -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]));
|
||||
}
|
||||
@ -378,7 +378,7 @@ void up_ledpminitialize(void)
|
||||
int ret = pm_register(&g_ledscb);
|
||||
if (ret != OK)
|
||||
{
|
||||
board_led_on(LED_ASSERTION);
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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]));
|
||||
}
|
||||
|
@ -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 */
|
||||
}
|
||||
|
@ -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. */
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
@ -127,9 +127,9 @@ void board_led_on(int led)
|
||||
g_nest++;
|
||||
case LED_IRQSENABLED:
|
||||
case LED_STACKCREATED:
|
||||
led_dumpgpio("board_led_on: before tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
|
||||
tiva_gpiowrite(LED1_GPIO, false);
|
||||
led_dumpgpio("board_led_on: after tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
@ -126,9 +126,9 @@ void board_led_on(int led)
|
||||
g_nest++;
|
||||
case LED_IRQSENABLED:
|
||||
case LED_STACKCREATED:
|
||||
led_dumpgpio("board_led_on: before tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
|
||||
tiva_gpiowrite(LED_GPIO, false);
|
||||
led_dumpgpio("board_led_on: after tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
@ -126,9 +126,9 @@ void board_led_on(int led)
|
||||
g_nest++;
|
||||
case LED_IRQSENABLED:
|
||||
case LED_STACKCREATED:
|
||||
led_dumpgpio("board_led_on: before tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
|
||||
tiva_gpiowrite(LED_GPIO, false);
|
||||
led_dumpgpio("board_led_on: after tiva_gpiowrite()");
|
||||
led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
case LED_STARTED:
|
||||
|
@ -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. */
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -67,7 +67,7 @@
|
||||
*/
|
||||
|
||||
#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)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
|
@ -230,11 +230,11 @@ void pic32mx_setleds(uint8_t ledset)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_on
|
||||
* Name: board_autoled_on
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
if ((unsigned)led < LED_NVALUES)
|
||||
{
|
||||
|
@ -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
|
||||
* LED_STARTED 0 OFF ON (never happens)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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. */
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ void board_autoled_initialize(void)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_on
|
||||
* Name: board_autoled_on
|
||||
*
|
||||
* Description:
|
||||
* Select the "logical" ON state:
|
||||
@ -119,7 +119,7 @@ void board_autoled_initialize(void)
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
switch (led)
|
||||
{
|
||||
|
@ -149,11 +149,11 @@ void lpc17_setleds(uint8_t ledset)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_on
|
||||
* Name: board_autoled_on
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
switch (led)
|
||||
{
|
||||
|
@ -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_SET_OFFSET);
|
||||
|
@ -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)
|
||||
stm32_gpiowrite(GPIO_LED_STATUS, true);
|
||||
|
@ -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_setbits(g_ledbits[led]);
|
||||
|
@ -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
|
||||
* follows
|
||||
|
@ -143,11 +143,11 @@ void stm32_setleds(uint8_t ledset)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_on
|
||||
* Name: board_autoled_on
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
switch (led)
|
||||
{
|
||||
|
@ -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]));
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ void a1x_led_initialize(void)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_on
|
||||
* Name: board_autoled_on
|
||||
*
|
||||
* Description:
|
||||
* Select the "logical" ON state:
|
||||
@ -154,7 +154,7 @@ void a1x_led_initialize(void)
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
switch (led)
|
||||
{
|
||||
|
@ -238,11 +238,11 @@ void pic32mx_setleds(uint8_t ledset)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_on
|
||||
* Name: board_autoled_on
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
if ((unsigned)led < LED_NVALUES)
|
||||
{
|
||||
|
@ -247,11 +247,11 @@ void pic32mx_setleds(uint8_t ledset)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_on
|
||||
* Name: board_autoled_on
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
if ((unsigned)led < LED_NVALUES)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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]);
|
||||
}
|
||||
|
@ -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]);
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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 led2on = false;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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 redon = false; /* High illuminates */
|
||||
|
@ -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 */
|
||||
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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]));
|
||||
}
|
||||
@ -395,7 +395,7 @@ void up_ledpminitialize(void)
|
||||
int ret = pm_register(&g_ledscb);
|
||||
if (ret != OK)
|
||||
{
|
||||
board_led_on(LED_ASSERTION);
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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]));
|
||||
}
|
||||
|
@ -68,7 +68,7 @@
|
||||
*/
|
||||
|
||||
#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)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
|
@ -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]));
|
||||
}
|
||||
@ -391,7 +391,7 @@ void stm32_ledpminitialize(void)
|
||||
int ret = pm_register(&g_ledscb);
|
||||
if (ret != OK)
|
||||
{
|
||||
board_led_on(LED_ASSERTION);
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
@ -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]));
|
||||
}
|
||||
|
@ -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]));
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
case LED_STARTED:
|
||||
|
@ -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)
|
||||
{
|
||||
@ -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)
|
||||
{
|
||||
board_led_onoff(led, false);
|
||||
board_autoled_onoff(led, false);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ARCH_LEDS */
|
||||
|
@ -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]));
|
||||
}
|
||||
|
@ -67,7 +67,7 @@
|
||||
*/
|
||||
|
||||
#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)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
|
@ -233,7 +233,7 @@ void stm32_ledpminitialize(void)
|
||||
int ret = pm_register(&g_ledscb);
|
||||
if (ret != OK)
|
||||
{
|
||||
board_led_on(LED_ASSERTION);
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
@ -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]));
|
||||
}
|
||||
|
@ -67,7 +67,7 @@
|
||||
*/
|
||||
|
||||
#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)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
|
@ -238,7 +238,7 @@ void stm32_led_pminitialize(void)
|
||||
int ret = pm_register(&g_ledscb);
|
||||
if (ret != OK)
|
||||
{
|
||||
board_led_on(LED_ASSERTION);
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 led2on = false;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
* LED_STARTED 0 OFF ON (never happens)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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]));
|
||||
}
|
||||
|
@ -238,11 +238,11 @@ void pic32mx_setleds(uint8_t ledset)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_on
|
||||
* Name: board_autoled_on
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
if ((unsigned)led < LED_NVALUES)
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
@ -158,7 +158,7 @@ void stm32_ledinit(void)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_on
|
||||
* Name: board_autoled_on
|
||||
*
|
||||
* Description:
|
||||
* Select the "logical" ON state:
|
||||
@ -179,7 +179,7 @@ void stm32_ledinit(void)
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
switch (led)
|
||||
{
|
||||
|
@ -85,7 +85,7 @@ void board_autoled_initialize(void)
|
||||
stm32_configgpio(GPIO_LED);
|
||||
}
|
||||
|
||||
void board_led_on(int led)
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
if (led == LED_IDLE)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
@ -101,7 +101,7 @@ void board_led_off(int led)
|
||||
{
|
||||
if (led >= 1)
|
||||
{
|
||||
board_led_on(led-1);
|
||||
board_autoled_on(led-1);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_ARCH_LEDS */
|
||||
|
@ -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)
|
||||
{
|
||||
@ -241,7 +241,7 @@ void board_led_off(int led)
|
||||
{
|
||||
if (led >= 1)
|
||||
{
|
||||
board_led_on(led-1);
|
||||
board_autoled_on(led-1);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_ARCH_LEDS */
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user