rename up_led*() functions to board_led_*()

This commit is contained in:
Gregory Nutt
2014-01-24 14:28:49 -06:00
parent 1d5b2d3d3e
commit 2f837ccd2a
256 changed files with 1969 additions and 1966 deletions
+7 -7
View File
@@ -354,11 +354,11 @@ static int led_pm_prepare(struct pm_callback_s *cb , enum pm_state_e pmstate)
****************************************************************************/
/****************************************************************************
* Name: up_ledinit
* Name: board_led_initialize
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void)
void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */
@@ -369,19 +369,19 @@ void up_ledinit(void)
}
/****************************************************************************
* Name: up_ledon
* Name: board_led_on
****************************************************************************/
void up_ledon(int led)
void board_led_on(int led)
{
led_setonoff(ON_BITS(g_ledbits[led]));
}
/****************************************************************************
* Name: up_ledoff
* Name: board_led_off
****************************************************************************/
void up_ledoff(int led)
void board_led_off(int led)
{
led_setonoff(OFF_BITS(g_ledbits[led]));
}
@@ -398,7 +398,7 @@ void up_ledpminitialize(void)
int ret = pm_register(&g_ledscb);
if (ret != OK)
{
up_ledon(LED_ASSERTION);
board_led_on(LED_ASSERTION);
}
}
#endif /* CONFIG_PM */
+1 -1
View File
@@ -98,6 +98,6 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
}