summaryrefslogtreecommitdiff
path: root/nuttx/configs/spark/src
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-24 14:28:49 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-24 14:28:49 -0600
commitce7d02b55783779750eb4da036ad2185e7f7cf44 (patch)
tree8d1eebba9a1bb5c7942bcf89c617fff85df96045 /nuttx/configs/spark/src
parentcafcbeb3a0d16b13048d14fa8ef75cce2a87f738 (diff)
downloadpx4-nuttx-ce7d02b55783779750eb4da036ad2185e7f7cf44.tar.gz
px4-nuttx-ce7d02b55783779750eb4da036ad2185e7f7cf44.tar.bz2
px4-nuttx-ce7d02b55783779750eb4da036ad2185e7f7cf44.zip
rename up_led*() functions to board_led_*()
Diffstat (limited to 'nuttx/configs/spark/src')
-rw-r--r--nuttx/configs/spark/src/up_autoleds.c12
-rw-r--r--nuttx/configs/spark/src/up_boot.c2
-rw-r--r--nuttx/configs/spark/src/up_userleds.c4
3 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/configs/spark/src/up_autoleds.c b/nuttx/configs/spark/src/up_autoleds.c
index 7f054cf1d..dc34fa03b 100644
--- a/nuttx/configs/spark/src/up_autoleds.c
+++ b/nuttx/configs/spark/src/up_autoleds.c
@@ -264,10 +264,10 @@ static void led_setonoff(unsigned int bits)
****************************************************************************/
/****************************************************************************
- * Name: up_ledinit
+ * Name: board_led_initialize
****************************************************************************/
-void up_ledinit(void)
+void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */
@@ -278,19 +278,19 @@ void up_ledinit(void)
}
/****************************************************************************
- * Name: up_ledon
+ * Name: board_led_on
****************************************************************************/
-void up_ledon(int led)
+void board_led_on(int led)
{
led_setonoff(ON_BITS(g_ledbits[led]));
}
/****************************************************************************
- * Name: up_ledoff
+ * Name: board_led_off
****************************************************************************/
-void up_ledoff(int led)
+void board_led_off(int led)
{
led_setonoff(OFF_BITS(g_ledbits[led]));
}
diff --git a/nuttx/configs/spark/src/up_boot.c b/nuttx/configs/spark/src/up_boot.c
index 774b3c03e..1aae93509 100644
--- a/nuttx/configs/spark/src/up_boot.c
+++ b/nuttx/configs/spark/src/up_boot.c
@@ -74,7 +74,7 @@ void stm32_boardinitialize(void)
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
- up_ledinit();
+ board_led_initialize();
#endif
#ifdef CONFIG_ARCH_HAVE_BUTTONS
diff --git a/nuttx/configs/spark/src/up_userleds.c b/nuttx/configs/spark/src/up_userleds.c
index 44326af68..6cb47d017 100644
--- a/nuttx/configs/spark/src/up_userleds.c
+++ b/nuttx/configs/spark/src/up_userleds.c
@@ -89,10 +89,10 @@ static uint32_t g_ledcfg[BOARD_NLEDS] =
****************************************************************************/
/****************************************************************************
- * Name: up_ledinit
+ * Name: board_led_initialize
****************************************************************************/
-void up_ledinit(void)
+void board_led_initialize(void)
{
/* Configure LED1-4 GPIOs for output */