summaryrefslogtreecommitdiff
path: root/nuttx/configs/shenzhou/src
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/shenzhou/src')
-rw-r--r--nuttx/configs/shenzhou/src/up_autoleds.c14
-rw-r--r--nuttx/configs/shenzhou/src/up_boot.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/configs/shenzhou/src/up_autoleds.c b/nuttx/configs/shenzhou/src/up_autoleds.c
index 522859f3e..6e9ffe61d 100644
--- a/nuttx/configs/shenzhou/src/up_autoleds.c
+++ b/nuttx/configs/shenzhou/src/up_autoleds.c
@@ -351,11 +351,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 */
@@ -366,19 +366,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]));
}
@@ -395,7 +395,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 */
diff --git a/nuttx/configs/shenzhou/src/up_boot.c b/nuttx/configs/shenzhou/src/up_boot.c
index efc4f26bd..ace4978fe 100644
--- a/nuttx/configs/shenzhou/src/up_boot.c
+++ b/nuttx/configs/shenzhou/src/up_boot.c
@@ -97,6 +97,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
}