summaryrefslogtreecommitdiff
path: root/nuttx/configs/spark
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
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')
-rw-r--r--nuttx/configs/spark/include/board.h6
-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
4 files changed, 12 insertions, 12 deletions
diff --git a/nuttx/configs/spark/include/board.h b/nuttx/configs/spark/include/board.h
index 153c2a67a..c9974bf98 100644
--- a/nuttx/configs/spark/include/board.h
+++ b/nuttx/configs/spark/include/board.h
@@ -223,7 +223,7 @@ extern "C"
************************************************************************************/
/************************************************************************************
- * Name: up_ledinit, up_setled, and up_setleds
+ * Name: board_led_initialize, up_setled, and up_setleds
*
* Description:
* If CONFIG_ARCH_LEDS is defined, then NuttX will control the on-board LEDs. If
@@ -233,8 +233,8 @@ extern "C"
************************************************************************************/
#ifndef CONFIG_ARCH_LEDS
-#undef up_ledinit // Remove macro definition to reuse name
-void up_ledinit(void);
+#undef board_led_initialize // Remove macro definition to reuse name
+void board_led_initialize(void);
void up_setled(int led, bool ledon);
void up_setleds(uint8_t ledset, uint8_t led_states_set);
#endif
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 */