diff options
Diffstat (limited to 'nuttx/configs')
139 files changed, 610 insertions, 610 deletions
diff --git a/nuttx/configs/16z/src/z16f_leds.c b/nuttx/configs/16z/src/z16f_leds.c index dc345cee4..483ec1662 100644 --- a/nuttx/configs/16z/src/z16f_leds.c +++ b/nuttx/configs/16z/src/z16f_leds.c @@ -93,20 +93,20 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* All GPIO initialization is done in up_lowinit() */ } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { #if defined(HAVE_16Z_LED3) || defined(HAVE_16Z_LED4) /* The following operations must be atomic */ @@ -138,10 +138,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { #if defined(HAVE_16Z_LED3) || defined(HAVE_16Z_LED4) /* The following operations must be atomic */ diff --git a/nuttx/configs/arduino-due/src/arduino-due.h b/nuttx/configs/arduino-due/src/arduino-due.h index 0430b8d2d..00fbbe352 100644 --- a/nuttx/configs/arduino-due/src/arduino-due.h +++ b/nuttx/configs/arduino-due/src/arduino-due.h @@ -321,11 +321,11 @@ void sam_sram_initialize(void); #endif /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void); +void board_led_initialize(void); #endif /**************************************************************************** diff --git a/nuttx/configs/arduino-due/src/sam_autoleds.c b/nuttx/configs/arduino-due/src/sam_autoleds.c index e0d7302a8..e88aa059d 100644 --- a/nuttx/configs/arduino-due/src/sam_autoleds.c +++ b/nuttx/configs/arduino-due/src/sam_autoleds.c @@ -116,10 +116,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure RX and TX LED GPIOs for output */ @@ -129,10 +129,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -178,10 +178,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/arduino-due/src/sam_boot.c b/nuttx/configs/arduino-due/src/sam_boot.c index a09e7545d..7b308b22b 100644 --- a/nuttx/configs/arduino-due/src/sam_boot.c +++ b/nuttx/configs/arduino-due/src/sam_boot.c @@ -70,6 +70,6 @@ void sam_boardinitialize(void) #ifdef CONFIG_ARCH_LEDS /* Configure on-board LEDs if LED support has been selected. */ - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/avr32dev1/src/avr32dev1_internal.h b/nuttx/configs/avr32dev1/src/avr32dev1_internal.h index 31561c881..eac54f414 100644 --- a/nuttx/configs/avr32dev1/src/avr32dev1_internal.h +++ b/nuttx/configs/avr32dev1/src/avr32dev1_internal.h @@ -112,14 +112,14 @@ ************************************************************************************/ /************************************************************************************ - * Name: up_ledinitialize + * Name: board_led_initializeialize * * Description: * Configure on-board LEDs if LED support has been selected. ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -extern void up_ledinitialize(void); +extern void board_led_initializeialize(void); #endif #endif /* __ASSEMBLY__ */ diff --git a/nuttx/configs/avr32dev1/src/up_boot.c b/nuttx/configs/avr32dev1/src/up_boot.c index 587168853..317954213 100644 --- a/nuttx/configs/avr32dev1/src/up_boot.c +++ b/nuttx/configs/avr32dev1/src/up_boot.c @@ -79,6 +79,6 @@ void up_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinitialize(); + board_led_initializeialize(); #endif } diff --git a/nuttx/configs/avr32dev1/src/up_leds.c b/nuttx/configs/avr32dev1/src/up_leds.c index 62cde6b21..6106b6532 100644 --- a/nuttx/configs/avr32dev1/src/up_leds.c +++ b/nuttx/configs/avr32dev1/src/up_leds.c @@ -62,30 +62,30 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinitialize + * Name: board_led_initializeialize ****************************************************************************/ -void up_ledinitialize(void) +void board_led_initializeialize(void) { at32uc3_configgpio(PINMUX_GPIO_LED1); at32uc3_configgpio(PINMUX_GPIO_LED2); } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { at32uc3_gpiowrite(PINMUX_GPIO_LED1, (led != 0)); at32uc3_gpiowrite(PINMUX_GPIO_LED2, (led == 2)); } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { at32uc3_gpiowrite(PINMUX_GPIO_LED1, (led == 2)); at32uc3_gpiowrite(PINMUX_GPIO_LED2, false); diff --git a/nuttx/configs/c5471evm/src/up_leds.c b/nuttx/configs/c5471evm/src/up_leds.c index 72811a871..dee08e415 100644 --- a/nuttx/configs/c5471evm/src/up_leds.c +++ b/nuttx/configs/c5471evm/src/up_leds.c @@ -63,11 +63,11 @@ static uint32_t g_ledstate; ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* Enable access to LEDs */ @@ -80,10 +80,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { if (led < 8) { @@ -93,10 +93,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led < 8) { diff --git a/nuttx/configs/cloudctrl/src/up_autoleds.c b/nuttx/configs/cloudctrl/src/up_autoleds.c index bc45a2154..c76c94601 100644 --- a/nuttx/configs/cloudctrl/src/up_autoleds.c +++ b/nuttx/configs/cloudctrl/src/up_autoleds.c @@ -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 */ diff --git a/nuttx/configs/cloudctrl/src/up_boot.c b/nuttx/configs/cloudctrl/src/up_boot.c index fe0093d48..c098e90e9 100644 --- a/nuttx/configs/cloudctrl/src/up_boot.c +++ b/nuttx/configs/cloudctrl/src/up_boot.c @@ -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 } diff --git a/nuttx/configs/demo9s12ne64/src/demo9s12ne64.h b/nuttx/configs/demo9s12ne64/src/demo9s12ne64.h index 0a6c8e2c9..e27f8d62d 100644 --- a/nuttx/configs/demo9s12ne64/src/demo9s12ne64.h +++ b/nuttx/configs/demo9s12ne64/src/demo9s12ne64.h @@ -64,7 +64,7 @@ * Public Functions ************************************************************************************/ /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Configure and initialize on-board LEDs @@ -72,7 +72,7 @@ ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -extern void up_ledinit(void); +extern void board_led_initialize(void); #endif /************************************************************************************ diff --git a/nuttx/configs/demo9s12ne64/src/up_boot.c b/nuttx/configs/demo9s12ne64/src/up_boot.c index a98bb0d90..dfdb4360f 100644 --- a/nuttx/configs/demo9s12ne64/src/up_boot.c +++ b/nuttx/configs/demo9s12ne64/src/up_boot.c @@ -84,6 +84,6 @@ void hcs12_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/demo9s12ne64/src/up_leds.c b/nuttx/configs/demo9s12ne64/src/up_leds.c index 49266aced..39733dcde 100644 --- a/nuttx/configs/demo9s12ne64/src/up_leds.c +++ b/nuttx/configs/demo9s12ne64/src/up_leds.c @@ -75,7 +75,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Configure and initialize on-board LEDs @@ -83,23 +83,23 @@ ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { } diff --git a/nuttx/configs/ea3131/src/up_boot.c b/nuttx/configs/ea3131/src/up_boot.c index 52e0b086c..7d4fe9877 100644 --- a/nuttx/configs/ea3131/src/up_boot.c +++ b/nuttx/configs/ea3131/src/up_boot.c @@ -118,7 +118,7 @@ void lpc31_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif /* Set up mass storage device to support on demand paging */ diff --git a/nuttx/configs/ea3131/src/up_clkinit.c b/nuttx/configs/ea3131/src/up_clkinit.c index 247844a81..6bc7f0e9f 100644 --- a/nuttx/configs/ea3131/src/up_clkinit.c +++ b/nuttx/configs/ea3131/src/up_clkinit.c @@ -439,6 +439,6 @@ const struct lpc31_clkinit_s g_boardclks = ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ diff --git a/nuttx/configs/ea3131/src/up_leds.c b/nuttx/configs/ea3131/src/up_leds.c index 021600cb9..4a0b35d23 100644 --- a/nuttx/configs/ea3131/src/up_leds.c +++ b/nuttx/configs/ea3131/src/up_leds.c @@ -80,27 +80,27 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { } diff --git a/nuttx/configs/ea3152/src/up_boot.c b/nuttx/configs/ea3152/src/up_boot.c index 13a9d7ed5..db1dc035b 100644 --- a/nuttx/configs/ea3152/src/up_boot.c +++ b/nuttx/configs/ea3152/src/up_boot.c @@ -105,7 +105,7 @@ void lpc31_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif /* Set up mass storage device to support on demand paging */ diff --git a/nuttx/configs/ea3152/src/up_clkinit.c b/nuttx/configs/ea3152/src/up_clkinit.c index 04dfe3411..55ec6da97 100644 --- a/nuttx/configs/ea3152/src/up_clkinit.c +++ b/nuttx/configs/ea3152/src/up_clkinit.c @@ -439,6 +439,6 @@ const struct lpc31_clkinit_s g_boardclks = ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ diff --git a/nuttx/configs/ea3152/src/up_leds.c b/nuttx/configs/ea3152/src/up_leds.c index bbd393beb..1a8c9a613 100644 --- a/nuttx/configs/ea3152/src/up_leds.c +++ b/nuttx/configs/ea3152/src/up_leds.c @@ -80,27 +80,27 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { } diff --git a/nuttx/configs/eagle100/src/eagle100_internal.h b/nuttx/configs/eagle100/src/eagle100_internal.h index 48da6b9f7..df4ada90a 100644 --- a/nuttx/configs/eagle100/src/eagle100_internal.h +++ b/nuttx/configs/eagle100/src/eagle100_internal.h @@ -91,7 +91,7 @@ extern void weak_function lm_ssiinitialize(void); /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Initialize on-board LEDs. @@ -99,7 +99,7 @@ extern void weak_function lm_ssiinitialize(void); ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -extern void up_ledinit(void); +extern void board_led_initialize(void); #endif #endif /* __ASSEMBLY__ */ diff --git a/nuttx/configs/eagle100/src/up_boot.c b/nuttx/configs/eagle100/src/up_boot.c index bd46bf288..364e404f6 100644 --- a/nuttx/configs/eagle100/src/up_boot.c +++ b/nuttx/configs/eagle100/src/up_boot.c @@ -87,6 +87,6 @@ void lm_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/eagle100/src/up_leds.c b/nuttx/configs/eagle100/src/up_leds.c index 4976c4bcb..0a5523048 100644 --- a/nuttx/configs/eagle100/src/up_leds.c +++ b/nuttx/configs/eagle100/src/up_leds.c @@ -90,7 +90,7 @@ static uint8_t g_nest; /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Initialize on-board LEDs. @@ -98,23 +98,23 @@ static uint8_t g_nest; ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { leddbg("Initializing\n"); /* Configure Port E, Bit 1 as an output, initial value=OFF */ - led_dumpgpio("up_ledinit before lm_configgpio()"); + led_dumpgpio("board_led_initialize before lm_configgpio()"); lm_configgpio(LED_GPIO); - led_dumpgpio("up_ledinit after lm_configgpio()"); + led_dumpgpio("board_led_initialize after lm_configgpio()"); g_nest = 0; } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -130,18 +130,18 @@ void up_ledon(int led) g_nest++; case LED_IRQSENABLED: case LED_STACKCREATED: - led_dumpgpio("up_ledon: before lm_gpiowrite()"); + led_dumpgpio("board_led_on: before lm_gpiowrite()"); lm_gpiowrite(LED_GPIO, false); - led_dumpgpio("up_ledon: after lm_gpiowrite()"); + led_dumpgpio("board_led_on: after lm_gpiowrite()"); break; } } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { @@ -158,9 +158,9 @@ void up_ledoff(int led) case LED_PANIC: if (--g_nest <= 0) { - led_dumpgpio("up_ledoff: before lm_gpiowrite()"); + led_dumpgpio("board_led_off: before lm_gpiowrite()"); lm_gpiowrite(LED_GPIO, true); - led_dumpgpio("up_ledoff: after lm_gpiowrite()"); + led_dumpgpio("board_led_off: after lm_gpiowrite()"); } break; } diff --git a/nuttx/configs/ekk-lm3s9b96/src/up_boot.c b/nuttx/configs/ekk-lm3s9b96/src/up_boot.c index 312f63adc..4050d1b92 100644 --- a/nuttx/configs/ekk-lm3s9b96/src/up_boot.c +++ b/nuttx/configs/ekk-lm3s9b96/src/up_boot.c @@ -87,6 +87,6 @@ void lm_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/ekk-lm3s9b96/src/up_leds.c b/nuttx/configs/ekk-lm3s9b96/src/up_leds.c index d3c940f5a..4fbb60331 100644 --- a/nuttx/configs/ekk-lm3s9b96/src/up_leds.c +++ b/nuttx/configs/ekk-lm3s9b96/src/up_leds.c @@ -91,27 +91,27 @@ static uint8_t g_nest; /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { leddbg("Initializing\n"); /* Configure Port D, Bit 0 as an output, initial value=OFF */ - led_dumpgpio("up_ledinit before lm_configgpio()"); + led_dumpgpio("board_led_initialize before lm_configgpio()"); lm_configgpio(LED_GPIO); - led_dumpgpio("up_ledinit after lm_configgpio()"); + led_dumpgpio("board_led_initialize after lm_configgpio()"); g_nest = 0; } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -127,18 +127,18 @@ void up_ledon(int led) g_nest++; case LED_IRQSENABLED: case LED_STACKCREATED: - led_dumpgpio("up_ledon: before lm_gpiowrite()"); + led_dumpgpio("board_led_on: before lm_gpiowrite()"); lm_gpiowrite(LED_GPIO, false); - led_dumpgpio("up_ledon: after lm_gpiowrite()"); + led_dumpgpio("board_led_on: after lm_gpiowrite()"); break; } } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { @@ -155,9 +155,9 @@ void up_ledoff(int led) case LED_PANIC: if (--g_nest <= 0) { - led_dumpgpio("up_ledoff: before lm_gpiowrite()"); + led_dumpgpio("board_led_off: before lm_gpiowrite()"); lm_gpiowrite(LED_GPIO, true); - led_dumpgpio("up_ledoff: after lm_gpiowrite()"); + led_dumpgpio("board_led_off: after lm_gpiowrite()"); } break; } diff --git a/nuttx/configs/ez80f910200kitg/src/ez80_leds.c b/nuttx/configs/ez80f910200kitg/src/ez80_leds.c index 588410c8e..a162d57cb 100644 --- a/nuttx/configs/ez80f910200kitg/src/ez80_leds.c +++ b/nuttx/configs/ez80f910200kitg/src/ez80_leds.c @@ -63,27 +63,27 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { } #endif /* CONFIG_ARCH_LEDS */ diff --git a/nuttx/configs/ez80f910200zco/src/ez80_leds.c b/nuttx/configs/ez80f910200zco/src/ez80_leds.c index 7f5af2075..672940c1d 100644 --- a/nuttx/configs/ez80f910200zco/src/ez80_leds.c +++ b/nuttx/configs/ez80f910200zco/src/ez80_leds.c @@ -212,11 +212,11 @@ static int8_t g_intcount = 0; ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { g_currglyph = g_chspace; g_prevglyph = g_chspace; @@ -225,10 +225,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { FAR const uint8_t *tmp = g_currglyph; switch (led) @@ -277,10 +277,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led == LED_INIRQ) { diff --git a/nuttx/configs/fire-stm32v2/src/up_autoleds.c b/nuttx/configs/fire-stm32v2/src/up_autoleds.c index 7127b8608..c16ef3208 100644 --- a/nuttx/configs/fire-stm32v2/src/up_autoleds.c +++ b/nuttx/configs/fire-stm32v2/src/up_autoleds.c @@ -335,11 +335,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 */ @@ -349,19 +349,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])); } @@ -378,7 +378,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/fire-stm32v2/src/up_boot.c b/nuttx/configs/fire-stm32v2/src/up_boot.c index bb87afcdf..6f9d55899 100644 --- a/nuttx/configs/fire-stm32v2/src/up_boot.c +++ b/nuttx/configs/fire-stm32v2/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 } diff --git a/nuttx/configs/freedom-kl25z/src/kl_led.c b/nuttx/configs/freedom-kl25z/src/kl_led.c index 12ab55538..c40cf9a9c 100644 --- a/nuttx/configs/freedom-kl25z/src/kl_led.c +++ b/nuttx/configs/freedom-kl25z/src/kl_led.c @@ -133,10 +133,10 @@ void kl_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { if (led == LED_STACKCREATED) { @@ -153,10 +153,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led == LED_PANIC) { diff --git a/nuttx/configs/hymini-stm32v/src/up_boot.c b/nuttx/configs/hymini-stm32v/src/up_boot.c index db4ad0c81..951238f06 100644 --- a/nuttx/configs/hymini-stm32v/src/up_boot.c +++ b/nuttx/configs/hymini-stm32v/src/up_boot.c @@ -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 } diff --git a/nuttx/configs/hymini-stm32v/src/up_leds.c b/nuttx/configs/hymini-stm32v/src/up_leds.c index 8c678cb99..437999d6b 100644 --- a/nuttx/configs/hymini-stm32v/src/up_leds.c +++ b/nuttx/configs/hymini-stm32v/src/up_leds.c @@ -207,11 +207,11 @@ static void led_setonoff(unsigned int bits) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* Configure LED1 & LED2 GPIOs for output */ stm32_configgpio(GPIO_LED1); @@ -219,19 +219,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/kwikstik-k40/src/kwikstik-internal.h b/nuttx/configs/kwikstik-k40/src/kwikstik-internal.h index 145b62d5f..0a97471af 100644 --- a/nuttx/configs/kwikstik-k40/src/kwikstik-internal.h +++ b/nuttx/configs/kwikstik-k40/src/kwikstik-internal.h @@ -159,7 +159,7 @@ ************************************************************************************/ /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Initialize LED GPIOs so that LEDs can be controlled. @@ -167,7 +167,7 @@ ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -extern void up_ledinit(void); +extern void board_led_initialize(void); #endif /************************************************************************************ diff --git a/nuttx/configs/kwikstik-k40/src/up_boot.c b/nuttx/configs/kwikstik-k40/src/up_boot.c index cf5bba4e7..bac24ab54 100644 --- a/nuttx/configs/kwikstik-k40/src/up_boot.c +++ b/nuttx/configs/kwikstik-k40/src/up_boot.c @@ -97,6 +97,6 @@ void kinetis_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/kwikstik-k40/src/up_leds.c b/nuttx/configs/kwikstik-k40/src/up_leds.c index 71a02df63..07531aa26 100644 --- a/nuttx/configs/kwikstik-k40/src/up_leds.c +++ b/nuttx/configs/kwikstik-k40/src/up_leds.c @@ -71,7 +71,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Initialize LED GPIOs so that LEDs can be controlled. @@ -79,25 +79,25 @@ ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* The KwikStik-K40 board has no MCU driven, GPIO-based LEDs */ } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { /* The KwikStik-K40 board has no MCU driven, GPIO-based LEDs */ } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { /* The KwikStik-K40 board has no MCU driven, GPIO-based LEDs */ } diff --git a/nuttx/configs/lincoln60/src/up_boot.c b/nuttx/configs/lincoln60/src/up_boot.c index 6e67f777b..4acae0b02 100644 --- a/nuttx/configs/lincoln60/src/up_boot.c +++ b/nuttx/configs/lincoln60/src/up_boot.c @@ -76,6 +76,6 @@ void lpc17_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/lincoln60/src/up_leds.c b/nuttx/configs/lincoln60/src/up_leds.c index d0b2016ca..59fb8f049 100644 --- a/nuttx/configs/lincoln60/src/up_leds.c +++ b/nuttx/configs/lincoln60/src/up_leds.c @@ -118,26 +118,26 @@ static int g_nestcount; ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure all LED GPIO lines */ - led_dumpgpio("up_ledinit() Entry)"); + led_dumpgpio("board_led_initialize() Entry)"); lpc17_configgpio(LINCOLN60_LED1); lpc17_configgpio(LINCOLN60_LED2); - led_dumpgpio("up_ledinit() Exit"); + led_dumpgpio("board_led_initialize() Exit"); } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { /* We will control LED1 and LED2 not yet completed the boot sequence. */ @@ -181,10 +181,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { /* In all states, OFF can only mean turning off the HB LED */ diff --git a/nuttx/configs/lm3s6432-s2e/src/up_boot.c b/nuttx/configs/lm3s6432-s2e/src/up_boot.c index 60be9c3cf..4376b8db9 100644 --- a/nuttx/configs/lm3s6432-s2e/src/up_boot.c +++ b/nuttx/configs/lm3s6432-s2e/src/up_boot.c @@ -92,7 +92,7 @@ void lm_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif /* Configure serial transciever */ diff --git a/nuttx/configs/lm3s6432-s2e/src/up_leds.c b/nuttx/configs/lm3s6432-s2e/src/up_leds.c index a159cbb50..715b4a19e 100644 --- a/nuttx/configs/lm3s6432-s2e/src/up_leds.c +++ b/nuttx/configs/lm3s6432-s2e/src/up_leds.c @@ -90,28 +90,28 @@ static uint8_t g_nest; /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { leddbg("Initializing\n"); /* Configure Port F, Bit 2 as an output, initial value=OFF */ - led_dumpgpio("up_ledinit before lm_configgpio()"); + led_dumpgpio("board_led_initialize before lm_configgpio()"); lm_configgpio(LED0_GPIO); lm_configgpio(LED1_GPIO); - led_dumpgpio("up_ledinit after lm_configgpio()"); + led_dumpgpio("board_led_initialize after lm_configgpio()"); g_nest = 0; } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -127,18 +127,18 @@ void up_ledon(int led) g_nest++; case LED_IRQSENABLED: case LED_STACKCREATED: - led_dumpgpio("up_ledon: before lm_gpiowrite()"); + led_dumpgpio("board_led_on: before lm_gpiowrite()"); lm_gpiowrite(LED1_GPIO, false); - led_dumpgpio("up_ledon: after lm_gpiowrite()"); + led_dumpgpio("board_led_on: after lm_gpiowrite()"); break; } } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { @@ -155,9 +155,9 @@ void up_ledoff(int led) case LED_PANIC: if (--g_nest <= 0) { - led_dumpgpio("up_ledoff: before lm_gpiowrite()"); + led_dumpgpio("board_led_off: before lm_gpiowrite()"); lm_gpiowrite(LED1_GPIO, true); - led_dumpgpio("up_ledoff: after lm_gpiowrite()"); + led_dumpgpio("board_led_off: after lm_gpiowrite()"); } break; } diff --git a/nuttx/configs/lm3s6965-ek/src/up_boot.c b/nuttx/configs/lm3s6965-ek/src/up_boot.c index 6229a2a59..3efd2434d 100644 --- a/nuttx/configs/lm3s6965-ek/src/up_boot.c +++ b/nuttx/configs/lm3s6965-ek/src/up_boot.c @@ -88,6 +88,6 @@ void lm_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/lm3s6965-ek/src/up_leds.c b/nuttx/configs/lm3s6965-ek/src/up_leds.c index 6139a7922..e6ca445d6 100644 --- a/nuttx/configs/lm3s6965-ek/src/up_leds.c +++ b/nuttx/configs/lm3s6965-ek/src/up_leds.c @@ -90,27 +90,27 @@ static uint8_t g_nest; /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { leddbg("Initializing\n"); /* Configure Port E, Bit 1 as an output, initial value=OFF */ - led_dumpgpio("up_ledinit before lm_configgpio()"); + led_dumpgpio("board_led_initialize before lm_configgpio()"); lm_configgpio(LED_GPIO); - led_dumpgpio("up_ledinit after lm_configgpio()"); + led_dumpgpio("board_led_initialize after lm_configgpio()"); g_nest = 0; } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -126,18 +126,18 @@ void up_ledon(int led) g_nest++; case LED_IRQSENABLED: case LED_STACKCREATED: - led_dumpgpio("up_ledon: before lm_gpiowrite()"); + led_dumpgpio("board_led_on: before lm_gpiowrite()"); lm_gpiowrite(LED_GPIO, false); - led_dumpgpio("up_ledon: after lm_gpiowrite()"); + led_dumpgpio("board_led_on: after lm_gpiowrite()"); break; } } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { @@ -154,9 +154,9 @@ void up_ledoff(int led) case LED_PANIC: if (--g_nest <= 0) { - led_dumpgpio("up_ledoff: before lm_gpiowrite()"); + led_dumpgpio("board_led_off: before lm_gpiowrite()"); lm_gpiowrite(LED_GPIO, true); - led_dumpgpio("up_ledoff: after lm_gpiowrite()"); + led_dumpgpio("board_led_off: after lm_gpiowrite()"); } break; } diff --git a/nuttx/configs/lm3s8962-ek/src/up_boot.c b/nuttx/configs/lm3s8962-ek/src/up_boot.c index 655aa6993..857d1374f 100644 --- a/nuttx/configs/lm3s8962-ek/src/up_boot.c +++ b/nuttx/configs/lm3s8962-ek/src/up_boot.c @@ -88,6 +88,6 @@ void lm_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/lm3s8962-ek/src/up_leds.c b/nuttx/configs/lm3s8962-ek/src/up_leds.c index 5adf27d42..331af44e7 100644 --- a/nuttx/configs/lm3s8962-ek/src/up_leds.c +++ b/nuttx/configs/lm3s8962-ek/src/up_leds.c @@ -90,27 +90,27 @@ static uint8_t g_nest; /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { leddbg("Initializing\n"); /* Configure Port E, Bit 1 as an output, initial value=OFF */ - led_dumpgpio("up_ledinit before lm_configgpio()"); + led_dumpgpio("board_led_initialize before lm_configgpio()"); lm_configgpio(LED_GPIO); - led_dumpgpio("up_ledinit after lm_configgpio()"); + led_dumpgpio("board_led_initialize after lm_configgpio()"); g_nest = 0; } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -126,18 +126,18 @@ void up_ledon(int led) g_nest++; case LED_IRQSENABLED: case LED_STACKCREATED: - led_dumpgpio("up_ledon: before lm_gpiowrite()"); + led_dumpgpio("board_led_on: before lm_gpiowrite()"); lm_gpiowrite(LED_GPIO, false); - led_dumpgpio("up_ledon: after lm_gpiowrite()"); + led_dumpgpio("board_led_on: after lm_gpiowrite()"); break; } } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { @@ -154,9 +154,9 @@ void up_ledoff(int led) case LED_PANIC: if (--g_nest <= 0) { - led_dumpgpio("up_ledoff: before lm_gpiowrite()"); + led_dumpgpio("board_led_off: before lm_gpiowrite()"); lm_gpiowrite(LED_GPIO, true); - led_dumpgpio("up_ledoff: after lm_gpiowrite()"); + led_dumpgpio("board_led_off: after lm_gpiowrite()"); } break; } diff --git a/nuttx/configs/lm4f120-launchpad/src/lm4f_autoleds.c b/nuttx/configs/lm4f120-launchpad/src/lm4f_autoleds.c index 8cd548f94..6932994a9 100644 --- a/nuttx/configs/lm4f120-launchpad/src/lm4f_autoleds.c +++ b/nuttx/configs/lm4f120-launchpad/src/lm4f_autoleds.c @@ -152,10 +152,10 @@ void lm4f_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -192,10 +192,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c b/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c index badeb9a16..23e23245d 100644 --- a/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c +++ b/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c @@ -136,14 +136,14 @@ static void led_dumppins(FAR const char *msg) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure all LED pins as GPIO outputs */ - led_dumppins("up_ledinit() Entry)"); + led_dumppins("board_led_initialize() Entry)"); /* Configure LED pins as GPIOs, then configure GPIOs as outputs */ @@ -153,14 +153,14 @@ void up_ledinit(void) lpc43_pin_config(PINCONFIG_LED2); lpc43_gpio_config(GPIO_LED2); - led_dumppins("up_ledinit() Exit"); + led_dumppins("board_led_initialize() Exit"); } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -182,10 +182,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/lpc4330-xplorer/src/up_boot.c b/nuttx/configs/lpc4330-xplorer/src/up_boot.c index 8bd4e019b..ab3a32a5b 100644 --- a/nuttx/configs/lpc4330-xplorer/src/up_boot.c +++ b/nuttx/configs/lpc4330-xplorer/src/up_boot.c @@ -76,6 +76,6 @@ void lpc43_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/lpcxpresso-lpc1768/src/up_boot.c b/nuttx/configs/lpcxpresso-lpc1768/src/up_boot.c index 53e4c2a9d..2e09c6bf6 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/src/up_boot.c +++ b/nuttx/configs/lpcxpresso-lpc1768/src/up_boot.c @@ -88,6 +88,6 @@ void lpc17_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/lpcxpresso-lpc1768/src/up_leds.c b/nuttx/configs/lpcxpresso-lpc1768/src/up_leds.c index d0dc19727..11abf9def 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/src/up_leds.c +++ b/nuttx/configs/lpcxpresso-lpc1768/src/up_leds.c @@ -86,10 +86,10 @@ static bool g_ncstate; ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure all LED GPIO lines */ @@ -98,10 +98,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { bool off; @@ -125,10 +125,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { bool off; diff --git a/nuttx/configs/maple/src/up_boot.c b/nuttx/configs/maple/src/up_boot.c index 868e7a6d9..795fa5e7b 100644 --- a/nuttx/configs/maple/src/up_boot.c +++ b/nuttx/configs/maple/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 /* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function diff --git a/nuttx/configs/maple/src/up_leds.c b/nuttx/configs/maple/src/up_leds.c index 638d506e5..0ed4ffcf0 100644 --- a/nuttx/configs/maple/src/up_leds.c +++ b/nuttx/configs/maple/src/up_leds.c @@ -87,11 +87,11 @@ static inline void set_led(bool v) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* Configure LED GPIO for output */ @@ -99,12 +99,12 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { - ledvdbg("up_ledon(%d)\n", led); + ledvdbg("board_led_on(%d)\n", led); switch (led) { case LED_STARTED: @@ -128,12 +128,12 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { - ledvdbg("up_ledoff(%d)\n", led); + ledvdbg("board_led_off(%d)\n", led); switch (led) { diff --git a/nuttx/configs/mbed/src/up_boot.c b/nuttx/configs/mbed/src/up_boot.c index 489c0a58c..2e50e3663 100644 --- a/nuttx/configs/mbed/src/up_boot.c +++ b/nuttx/configs/mbed/src/up_boot.c @@ -76,7 +76,7 @@ void lpc17_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/mbed/src/up_leds.c b/nuttx/configs/mbed/src/up_leds.c index 3a2f160ed..c4c28691a 100644 --- a/nuttx/configs/mbed/src/up_leds.c +++ b/nuttx/configs/mbed/src/up_leds.c @@ -119,28 +119,28 @@ static int g_nestcount; ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure all LED GPIO lines */ - led_dumpgpio("up_ledinit() Entry)"); + led_dumpgpio("board_led_initialize() Entry)"); lpc17_configgpio(MBED_LED1); lpc17_configgpio(MBED_LED2); lpc17_configgpio(MBED_LED3); lpc17_configgpio(MBED_LED4); - led_dumpgpio("up_ledinit() Exit"); + led_dumpgpio("board_led_initialize() Exit"); } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { /* We will control LED1 and LED2 not yet completed the boot sequence. */ @@ -184,10 +184,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { /* In all states, OFF can only mean turning off the HB LED */ diff --git a/nuttx/configs/mcu123-lpc214x/src/up_leds.c b/nuttx/configs/mcu123-lpc214x/src/up_leds.c index 9d399c8cc..d5c3e6437 100644 --- a/nuttx/configs/mcu123-lpc214x/src/up_leds.c +++ b/nuttx/configs/mcu123-lpc214x/src/up_leds.c @@ -82,11 +82,11 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* Initilize GIOs P1.16-P1.23 */ @@ -96,19 +96,19 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { putled(LEDBIT(led),LED_CLR_OFFSET); } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { putled(LEDBIT(led),LED_SET_OFFSET); } diff --git a/nuttx/configs/mikroe-stm32f4/src/up_idle.c b/nuttx/configs/mikroe-stm32f4/src/up_idle.c index d91452722..71928876f 100644 --- a/nuttx/configs/mikroe-stm32f4/src/up_idle.c +++ b/nuttx/configs/mikroe-stm32f4/src/up_idle.c @@ -67,8 +67,8 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() up_ledon(LED_IDLE) -# define END_IDLE() up_ledoff(LED_IDLE) +# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() # define END_IDLE() diff --git a/nuttx/configs/mirtoo/src/up_leds.c b/nuttx/configs/mirtoo/src/up_leds.c index ff9fbc9db..f87cf7b5b 100644 --- a/nuttx/configs/mirtoo/src/up_leds.c +++ b/nuttx/configs/mirtoo/src/up_leds.c @@ -230,11 +230,11 @@ void pic32mx_setleds(uint8_t ledset) #endif /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledon(int led) +void board_led_on(int led) { if ((unsigned)led < LED_NVALUES) { @@ -244,11 +244,11 @@ void up_ledon(int led) #endif /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledoff(int led) +void board_led_off(int led) { if ((unsigned)led < LED_NVALUES) { diff --git a/nuttx/configs/mx1ads/src/up_leds.c b/nuttx/configs/mx1ads/src/up_leds.c index 30ba2bdbe..dea288a06 100644 --- a/nuttx/configs/mx1ads/src/up_leds.c +++ b/nuttx/configs/mx1ads/src/up_leds.c @@ -59,11 +59,11 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* Configure Port A, Bit 2 as an output, initial value=1 */ @@ -71,10 +71,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -96,10 +96,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { imxgpio_clroutput(GPIOA, 2); /* Port A, Bit 2 = 0 */ } diff --git a/nuttx/configs/ne64badge/src/ne64badge_internal.h b/nuttx/configs/ne64badge/src/ne64badge_internal.h index d10618c9a..aee3fc67d 100644 --- a/nuttx/configs/ne64badge/src/ne64badge_internal.h +++ b/nuttx/configs/ne64badge/src/ne64badge_internal.h @@ -178,7 +178,7 @@ * Public Functions ************************************************************************************/ /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Configure and initialize on-board LEDs @@ -186,7 +186,7 @@ ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -extern void up_ledinit(void); +extern void board_led_initialize(void); #endif /************************************************************************************ diff --git a/nuttx/configs/ne64badge/src/up_boot.c b/nuttx/configs/ne64badge/src/up_boot.c index a1d0071d9..888eaf582 100644 --- a/nuttx/configs/ne64badge/src/up_boot.c +++ b/nuttx/configs/ne64badge/src/up_boot.c @@ -84,6 +84,6 @@ void hcs12_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/ne64badge/src/up_leds.c b/nuttx/configs/ne64badge/src/up_leds.c index d4aab0d3b..9d2b714cc 100644 --- a/nuttx/configs/ne64badge/src/up_leds.c +++ b/nuttx/configs/ne64badge/src/up_leds.c @@ -89,30 +89,30 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Configure and initialize on-board LEDs * ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure all LED GPIO lines */ - led_dumpgpio("up_ledinit() Entry)"); + led_dumpgpio("board_led_initialize() Entry)"); hcs12_configgpio(NE64BADGE_LED1); hcs12_configgpio(NE64BADGE_LED2); - led_dumpgpio("up_ledinit() Exit"); + led_dumpgpio("board_led_initialize() Exit"); } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -134,10 +134,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/ntosd-dm320/src/up_leds.c b/nuttx/configs/ntosd-dm320/src/up_leds.c index 9e2336e36..0c47e0510 100644 --- a/nuttx/configs/ntosd-dm320/src/up_leds.c +++ b/nuttx/configs/ntosd-dm320/src/up_leds.c @@ -58,11 +58,11 @@ ************************************************************************/ /************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize ************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { GIO_OUTPUT(GIO_LED_GREEN); GIO_OUTPUT(GIO_LED_RED); @@ -71,10 +71,10 @@ void up_ledinit(void) } /************************************************************************ - * Name: up_ledon + * Name: board_led_on ************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { if (led == GIO_LED_GREEN) { @@ -87,10 +87,10 @@ void up_ledon(int led) } /************************************************************************ - * Name: up_ledoff + * Name: board_led_off ************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led == GIO_LED_GREEN) { diff --git a/nuttx/configs/nucleus2g/src/up_boot.c b/nuttx/configs/nucleus2g/src/up_boot.c index ee2855c2f..ce50c8827 100644 --- a/nuttx/configs/nucleus2g/src/up_boot.c +++ b/nuttx/configs/nucleus2g/src/up_boot.c @@ -106,7 +106,7 @@ void lpc17_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif /* Configure the relay outptus for use on the BMS master board */ diff --git a/nuttx/configs/nucleus2g/src/up_leds.c b/nuttx/configs/nucleus2g/src/up_leds.c index a3d4569cc..1f5ac96a8 100644 --- a/nuttx/configs/nucleus2g/src/up_leds.c +++ b/nuttx/configs/nucleus2g/src/up_leds.c @@ -118,14 +118,14 @@ static int g_nestcount; ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure all LED GPIO lines */ - led_dumpgpio("up_ledinit() Entry)"); + led_dumpgpio("board_led_initialize() Entry)"); lpc17_configgpio(NUCLEUS2G_LED1_A); lpc17_configgpio(NUCLEUS2G_LED1_B); @@ -134,14 +134,14 @@ void up_ledinit(void) lpc17_configgpio(NUCLEUS2G_HEARTBEAT); lpc17_configgpio(NUCLEUS2G_EXTRA_LED); - led_dumpgpio("up_ledinit() Exit"); + led_dumpgpio("board_led_initialize() Exit"); } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { /* We will control LED1 and LED2 not yet completed the boot sequence. */ @@ -185,10 +185,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { /* In all states, OFF can only mean turning off the HB LED */ diff --git a/nuttx/configs/nutiny-nuc120/src/nuc_led.c b/nuttx/configs/nutiny-nuc120/src/nuc_led.c index 64c34ad2b..c39bee5de 100644 --- a/nuttx/configs/nutiny-nuc120/src/nuc_led.c +++ b/nuttx/configs/nutiny-nuc120/src/nuc_led.c @@ -128,19 +128,19 @@ void nuc_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { nuc_gpiowrite(GPIO_LED, false); } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { nuc_gpiowrite(GPIO_LED, true); } diff --git a/nuttx/configs/olimex-lpc-h3131/src/lpc31_boot.c b/nuttx/configs/olimex-lpc-h3131/src/lpc31_boot.c index efaa21134..b3ac6ce7e 100644 --- a/nuttx/configs/olimex-lpc-h3131/src/lpc31_boot.c +++ b/nuttx/configs/olimex-lpc-h3131/src/lpc31_boot.c @@ -113,5 +113,5 @@ void lpc31_boardinitialize(void) /* Configure on-board LEDs in all cases */ - up_ledinit(); + board_led_initialize(); } diff --git a/nuttx/configs/olimex-lpc-h3131/src/lpc31_leds.c b/nuttx/configs/olimex-lpc-h3131/src/lpc31_leds.c index 5f4a94c5d..e0c7dce56 100644 --- a/nuttx/configs/olimex-lpc-h3131/src/lpc31_leds.c +++ b/nuttx/configs/olimex-lpc-h3131/src/lpc31_leds.c @@ -81,14 +81,14 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Configure LEDs. LEDs are left in the OFF state. * ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Turn off both LEDs */ @@ -97,7 +97,7 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on * * Description: * Select the "logical" ON state: @@ -118,7 +118,7 @@ void up_ledinit(void) ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -143,7 +143,7 @@ void up_ledon(int led) #endif /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off * * Description: * Select the "logical" OFF state: @@ -164,7 +164,7 @@ void up_ledon(int led) ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/olimex-lpc-h3131/src/lpc_h3131.h b/nuttx/configs/olimex-lpc-h3131/src/lpc_h3131.h index 4c1e928f8..d7e2951a7 100644 --- a/nuttx/configs/olimex-lpc-h3131/src/lpc_h3131.h +++ b/nuttx/configs/olimex-lpc-h3131/src/lpc_h3131.h @@ -206,14 +206,14 @@ int lpc31_mmcsd_initialize(int slot, int minor) #endif /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Configure LEDs. LEDs are left in the OFF state. * ****************************************************************************/ -void up_ledinit(void); +void board_led_initialize(void); #endif /* __ASSEMBLY__ */ #endif /* __CONFIGS_OLIMEX_LPC_H3131_SRC_LPC_H3131_H */ diff --git a/nuttx/configs/olimex-lpc1766stk/src/up_boot.c b/nuttx/configs/olimex-lpc1766stk/src/up_boot.c index 0d265eaad..b3ce10d1a 100644 --- a/nuttx/configs/olimex-lpc1766stk/src/up_boot.c +++ b/nuttx/configs/olimex-lpc1766stk/src/up_boot.c @@ -88,6 +88,6 @@ void lpc17_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/olimex-lpc1766stk/src/up_leds.c b/nuttx/configs/olimex-lpc1766stk/src/up_leds.c index b55d3a76f..b29f24dd2 100644 --- a/nuttx/configs/olimex-lpc1766stk/src/up_leds.c +++ b/nuttx/configs/olimex-lpc1766stk/src/up_leds.c @@ -99,23 +99,23 @@ static bool g_uninitialized = true; ****************************************************************************/ /**************************************************************************** - * Name: lpc17_ledinit/up_ledinit + * Name: lpc17_ledinit/board_led_initialize ****************************************************************************/ #ifndef CONFIG_ARCH_LEDS void lpc17_ledinit(void) /* Name when invoked externally */ #else -void up_ledinit(void) /* Name when invoked via up_boot.c */ +void board_led_initialize(void) /* Name when invoked via up_boot.c */ #endif { /* Configure all LED GPIO lines */ - led_dumpgpio("up_ledinit() Entry)"); + led_dumpgpio("board_led_initialize() Entry)"); lpc17_configgpio(LPC1766STK_LED1); lpc17_configgpio(LPC1766STK_LED2); - led_dumpgpio("up_ledinit() Exit"); + led_dumpgpio("board_led_initialize() Exit"); } /**************************************************************************** @@ -149,11 +149,11 @@ void lpc17_setleds(uint8_t ledset) #endif /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -181,11 +181,11 @@ void up_ledon(int led) #endif /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/olimex-lpc2378/src/up_leds.c b/nuttx/configs/olimex-lpc2378/src/up_leds.c index a5bb955f5..d936bd1a1 100644 --- a/nuttx/configs/olimex-lpc2378/src/up_leds.c +++ b/nuttx/configs/olimex-lpc2378/src/up_leds.c @@ -90,11 +90,11 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* Initilize GIOs P1.16-P1.23 */ @@ -104,20 +104,20 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { putled8(~(LEDBIT(led)), LED_MASK_OFFSET); putled8(LEDBIT(led), LED_SET_OFFSET); } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { putled8(LEDBIT(led), LED_CLR_OFFSET); } diff --git a/nuttx/configs/olimex-stm32-p207/src/up_autoleds.c b/nuttx/configs/olimex-stm32-p207/src/up_autoleds.c index a8128fdc2..5b2108b6e 100644 --- a/nuttx/configs/olimex-stm32-p207/src/up_autoleds.c +++ b/nuttx/configs/olimex-stm32-p207/src/up_autoleds.c @@ -147,10 +147,10 @@ static inline void led_setbits(unsigned int setbits) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure LED1-4 GPIOs for output */ @@ -161,20 +161,20 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { led_clrbits(BOARD_LED1_BIT | BOARD_LED2_BIT | BOARD_LED3_BIT | BOARD_LED4_BIT); led_setbits(g_ledbits[led]); } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { led_clrbits(g_ledbits[led]); } diff --git a/nuttx/configs/olimex-stm32-p207/src/up_boot.c b/nuttx/configs/olimex-stm32-p207/src/up_boot.c index 29658ae54..ba0a04b26 100644 --- a/nuttx/configs/olimex-stm32-p207/src/up_boot.c +++ b/nuttx/configs/olimex-stm32-p207/src/up_boot.c @@ -84,7 +84,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 /* Configure on-board BUTTONs if BUTTON support has been selected. */ diff --git a/nuttx/configs/olimex-strp711/src/up_leds.c b/nuttx/configs/olimex-strp711/src/up_leds.c index 2d099f6bc..a348d5270 100644 --- a/nuttx/configs/olimex-strp711/src/up_leds.c +++ b/nuttx/configs/olimex-strp711/src/up_leds.c @@ -97,11 +97,11 @@ static void up_setleds(uint16_t setbits, uint16_t clearbits) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { uint16_t reg16; @@ -127,10 +127,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { /* The Olimex board has only two LEDs, so following states are faked as * follows @@ -174,10 +174,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { /* The Olimex board has only two LEDs, so following states are faked as * follows diff --git a/nuttx/configs/open1788/src/lpc17_autoleds.c b/nuttx/configs/open1788/src/lpc17_autoleds.c index a483f5a9a..fb336e1ea 100644 --- a/nuttx/configs/open1788/src/lpc17_autoleds.c +++ b/nuttx/configs/open1788/src/lpc17_autoleds.c @@ -248,10 +248,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 */ @@ -262,19 +262,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/open1788/src/lpc17_boardinitialize.c b/nuttx/configs/open1788/src/lpc17_boardinitialize.c index 0143e58b3..d016f2728 100644 --- a/nuttx/configs/open1788/src/lpc17_boardinitialize.c +++ b/nuttx/configs/open1788/src/lpc17_boardinitialize.c @@ -104,7 +104,7 @@ void lpc17_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif /* Configure the LCD GPIOs if LCD support has been selected. */ diff --git a/nuttx/configs/pcduino-a10/src/a1x_leds.c b/nuttx/configs/pcduino-a10/src/a1x_leds.c index 2596b4518..ae3a70264 100644 --- a/nuttx/configs/pcduino-a10/src/a1x_leds.c +++ b/nuttx/configs/pcduino-a10/src/a1x_leds.c @@ -129,7 +129,7 @@ void a1x_led_initialize(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on * * Description: * Select the "logical" ON state: @@ -153,7 +153,7 @@ void a1x_led_initialize(void) ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -183,7 +183,7 @@ void up_ledon(int led) #endif /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off * * Description: * Select the "logical" OFF state: @@ -207,7 +207,7 @@ void up_ledon(int led) ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/pic32-starterkit/src/up_leds.c b/nuttx/configs/pic32-starterkit/src/up_leds.c index 85460ae15..71e59343f 100644 --- a/nuttx/configs/pic32-starterkit/src/up_leds.c +++ b/nuttx/configs/pic32-starterkit/src/up_leds.c @@ -238,11 +238,11 @@ void pic32mx_setleds(uint8_t ledset) #endif /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledon(int led) +void board_led_on(int led) { if ((unsigned)led < LED_NVALUES) { @@ -252,11 +252,11 @@ void up_ledon(int led) #endif /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledoff(int led) +void board_led_off(int led) { if ((unsigned)led < LED_NVALUES) { diff --git a/nuttx/configs/pic32mx7mmb/src/up_leds.c b/nuttx/configs/pic32mx7mmb/src/up_leds.c index 573565518..333ca0406 100644 --- a/nuttx/configs/pic32mx7mmb/src/up_leds.c +++ b/nuttx/configs/pic32mx7mmb/src/up_leds.c @@ -247,11 +247,11 @@ void pic32mx_setleds(uint8_t ledset) #endif /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledon(int led) +void board_led_on(int led) { if ((unsigned)led < LED_NVALUES) { @@ -261,11 +261,11 @@ void up_ledon(int led) #endif /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledoff(int led) +void board_led_off(int led) { if ((unsigned)led < LED_NVALUES) { diff --git a/nuttx/configs/pjrc-8051/src/up_leds.c b/nuttx/configs/pjrc-8051/src/up_leds.c index 18e7b461d..f2020b540 100644 --- a/nuttx/configs/pjrc-8051/src/up_leds.c +++ b/nuttx/configs/pjrc-8051/src/up_leds.c @@ -119,11 +119,11 @@ static void _up_putnl(void) __naked ************************************************************************/ /************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize ************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* Set all ports as outputs */ @@ -138,10 +138,10 @@ void up_ledinit(void) } /************************************************************************ - * Name: up_ledon + * Name: board_led_on ************************************************************************/ -void up_ledon(uint8_t led) +void board_led_on(uint8_t led) { /* This may be called from an interrupt handler */ @@ -172,10 +172,10 @@ void up_ledon(uint8_t led) } /************************************************************************ - * Name: up_ledoff + * Name: board_led_off ************************************************************************/ -void up_ledoff(uint8_t led) +void board_led_off(uint8_t led) { /* This may be called from an interrupt handler */ diff --git a/nuttx/configs/px4fmu-v2_upstream/src/px4fmu2_init.c b/nuttx/configs/px4fmu-v2_upstream/src/px4fmu2_init.c index 4d0395122..5b6537591 100644 --- a/nuttx/configs/px4fmu-v2_upstream/src/px4fmu2_init.c +++ b/nuttx/configs/px4fmu-v2_upstream/src/px4fmu2_init.c @@ -182,7 +182,7 @@ void stm32_boardinitialize(void) /* Configure LEDs */ - up_ledinit(); + board_led_initialize(); } /**************************************************************************** @@ -238,7 +238,7 @@ int nsh_archinitialize(void) if (!spi1) { message("[boot] FAILED to initialize SPI port 1\n"); - up_ledon(LED_AMBER); + board_led_on(LED_AMBER); return -ENODEV; } @@ -261,7 +261,7 @@ int nsh_archinitialize(void) if (!spi2) { message("[boot] FAILED to initialize SPI port 2\n"); - up_ledon(LED_AMBER); + board_led_on(LED_AMBER); return -ENODEV; } diff --git a/nuttx/configs/qemu-i486/src/up_boot.c b/nuttx/configs/qemu-i486/src/up_boot.c index bd7646992..391f8f2ad 100644 --- a/nuttx/configs/qemu-i486/src/up_boot.c +++ b/nuttx/configs/qemu-i486/src/up_boot.c @@ -77,6 +77,6 @@ void up_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/sam3u-ek/src/sam3u-ek.h b/nuttx/configs/sam3u-ek/src/sam3u-ek.h index b2fe26e3d..3d81f2fd3 100644 --- a/nuttx/configs/sam3u-ek/src/sam3u-ek.h +++ b/nuttx/configs/sam3u-ek/src/sam3u-ek.h @@ -246,11 +246,11 @@ int weak_function sam_hsmciinit(void); #endif /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void); +void board_led_initialize(void); #endif /************************************************************************************ diff --git a/nuttx/configs/sam3u-ek/src/up_boot.c b/nuttx/configs/sam3u-ek/src/up_boot.c index 6892f3c9c..b373b5f71 100644 --- a/nuttx/configs/sam3u-ek/src/up_boot.c +++ b/nuttx/configs/sam3u-ek/src/up_boot.c @@ -96,7 +96,7 @@ void sam_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif /* Setup SD card-related PIOs if 1) HSMCI is selected and 2) the weak diff --git a/nuttx/configs/sam3u-ek/src/up_leds.c b/nuttx/configs/sam3u-ek/src/up_leds.c index 3a6d09a48..6418ac4ed 100644 --- a/nuttx/configs/sam3u-ek/src/up_leds.c +++ b/nuttx/configs/sam3u-ek/src/up_leds.c @@ -162,10 +162,10 @@ static void up_setleds(uint8_t state) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { (void)sam_configgpio(GPIO_LED0); (void)sam_configgpio(GPIO_LED1); @@ -173,19 +173,19 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { up_setleds(g_ledon[led & 7]); } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { up_setleds(g_ledoff[led & 7]); } diff --git a/nuttx/configs/sam4l-xplained/src/sam4l-xplained.h b/nuttx/configs/sam4l-xplained/src/sam4l-xplained.h index bbb88b811..69ed68e2f 100644 --- a/nuttx/configs/sam4l-xplained/src/sam4l-xplained.h +++ b/nuttx/configs/sam4l-xplained/src/sam4l-xplained.h @@ -359,11 +359,11 @@ int sam_slcd_initialize(void); #endif /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void); +void board_led_initialize(void); #endif #endif /* __ASSEMBLY__ */ diff --git a/nuttx/configs/sam4l-xplained/src/sam_autoleds.c b/nuttx/configs/sam4l-xplained/src/sam_autoleds.c index 06d647b63..5a382ea17 100644 --- a/nuttx/configs/sam4l-xplained/src/sam_autoleds.c +++ b/nuttx/configs/sam4l-xplained/src/sam_autoleds.c @@ -105,19 +105,19 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { (void)sam_configgpio(GPIO_LED0); } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { bool ledstate = true; @@ -144,10 +144,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/sam4l-xplained/src/sam_boot.c b/nuttx/configs/sam4l-xplained/src/sam_boot.c index ac831ab7b..e6975562d 100644 --- a/nuttx/configs/sam4l-xplained/src/sam_boot.c +++ b/nuttx/configs/sam4l-xplained/src/sam_boot.c @@ -81,6 +81,6 @@ void sam_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/sam4s-xplained/src/sam4s-xplained.h b/nuttx/configs/sam4s-xplained/src/sam4s-xplained.h index 941c99df2..422cc5a11 100644 --- a/nuttx/configs/sam4s-xplained/src/sam4s-xplained.h +++ b/nuttx/configs/sam4s-xplained/src/sam4s-xplained.h @@ -136,11 +136,11 @@ void sam_sram_initialize(void); #endif /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void); +void board_led_initialize(void); #endif #endif /* __ASSEMBLY__ */ diff --git a/nuttx/configs/sam4s-xplained/src/sam_autoleds.c b/nuttx/configs/sam4s-xplained/src/sam_autoleds.c index 9b912e4ff..4cf01a1a1 100644 --- a/nuttx/configs/sam4s-xplained/src/sam_autoleds.c +++ b/nuttx/configs/sam4s-xplained/src/sam_autoleds.c @@ -97,10 +97,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure LED1-2 GPIOs for output */ @@ -109,10 +109,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { bool led1on = false; bool led2on = false; @@ -140,10 +140,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led != 2) { diff --git a/nuttx/configs/sam4s-xplained/src/sam_boot.c b/nuttx/configs/sam4s-xplained/src/sam_boot.c index bf32af5c1..95f3ba8e2 100644 --- a/nuttx/configs/sam4s-xplained/src/sam_boot.c +++ b/nuttx/configs/sam4s-xplained/src/sam_boot.c @@ -76,6 +76,6 @@ void sam_boardinitialize(void) #ifdef CONFIG_ARCH_LEDS /* Configure on-board LEDs if LED support has been selected. */ - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/sama5d3x-ek/src/sam_autoleds.c b/nuttx/configs/sama5d3x-ek/src/sam_autoleds.c index afef4f3b2..f0a5da5b7 100644 --- a/nuttx/configs/sama5d3x-ek/src/sam_autoleds.c +++ b/nuttx/configs/sama5d3x-ek/src/sam_autoleds.c @@ -115,10 +115,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure LED PIOs for output */ @@ -127,10 +127,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { bool blueoff = true; /* Low illuminates */ bool redon = false; /* High illuminates */ @@ -158,10 +158,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led != 2) { diff --git a/nuttx/configs/sama5d3x-ek/src/sam_boot.c b/nuttx/configs/sama5d3x-ek/src/sam_boot.c index a1efeeb98..660529f08 100644 --- a/nuttx/configs/sama5d3x-ek/src/sam_boot.c +++ b/nuttx/configs/sama5d3x-ek/src/sam_boot.c @@ -118,7 +118,7 @@ void sam_boardinitialize(void) #ifdef CONFIG_ARCH_LEDS /* Configure on-board LEDs if LED support has been selected. */ - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h b/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h index 3273c3b25..e19773c75 100644 --- a/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h +++ b/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h @@ -737,11 +737,11 @@ void weak_function sam_netinitialize(void); #endif /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void); +void board_led_initialize(void); #endif /************************************************************************************ 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 } diff --git a/nuttx/configs/skp16c26/src/up_leds.c b/nuttx/configs/skp16c26/src/up_leds.c index 024d8f143..66e4bc009 100644 --- a/nuttx/configs/skp16c26/src/up_leds.c +++ b/nuttx/configs/skp16c26/src/up_leds.c @@ -105,7 +105,7 @@ static uint8_t g_nestlevel; ************************************************************************************/ /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize ************************************************************************************/ static void up_setleds(uint8_t gybits, uint8_t rbit) @@ -128,10 +128,10 @@ static void up_setleds(uint8_t gybits, uint8_t rbit) ************************************************************************************/ /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize ************************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { register uint8_t regval; @@ -157,10 +157,10 @@ void up_ledinit(void) } /************************************************************************************ - * Name: up_ledon + * Name: board_led_on ************************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { uint8_t ledset; @@ -193,10 +193,10 @@ void up_ledon(int led) } /************************************************************************************ - * Name: up_ledoff + * Name: board_led_off ************************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { uint8_t ledset; 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 */ diff --git a/nuttx/configs/stm3210e-eval/src/up_boot.c b/nuttx/configs/stm3210e-eval/src/up_boot.c index 576094c5e..16e8f22e2 100644 --- a/nuttx/configs/stm3210e-eval/src/up_boot.c +++ b/nuttx/configs/stm3210e-eval/src/up_boot.c @@ -103,6 +103,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 } diff --git a/nuttx/configs/stm3210e-eval/src/up_idle.c b/nuttx/configs/stm3210e-eval/src/up_idle.c index 7b682e2bb..e3fb2c6c0 100644 --- a/nuttx/configs/stm3210e-eval/src/up_idle.c +++ b/nuttx/configs/stm3210e-eval/src/up_idle.c @@ -68,8 +68,8 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() up_ledon(LED_IDLE) -# define END_IDLE() up_ledoff(LED_IDLE) +# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() # define END_IDLE() diff --git a/nuttx/configs/stm3210e-eval/src/up_leds.c b/nuttx/configs/stm3210e-eval/src/up_leds.c index 1266b7203..06c8ce889 100644 --- a/nuttx/configs/stm3210e-eval/src/up_leds.c +++ b/nuttx/configs/stm3210e-eval/src/up_leds.c @@ -347,11 +347,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 */ @@ -362,19 +362,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])); } @@ -391,7 +391,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/stm3220g-eval/src/up_autoleds.c b/nuttx/configs/stm3220g-eval/src/up_autoleds.c index 85010c504..4a97b284b 100644 --- a/nuttx/configs/stm3220g-eval/src/up_autoleds.c +++ b/nuttx/configs/stm3220g-eval/src/up_autoleds.c @@ -224,10 +224,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 */ @@ -238,19 +238,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/stm3220g-eval/src/up_boot.c b/nuttx/configs/stm3220g-eval/src/up_boot.c index fa24a86b4..17dc7cd22 100644 --- a/nuttx/configs/stm3220g-eval/src/up_boot.c +++ b/nuttx/configs/stm3220g-eval/src/up_boot.c @@ -103,6 +103,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 } diff --git a/nuttx/configs/stm3240g-eval/src/up_autoleds.c b/nuttx/configs/stm3240g-eval/src/up_autoleds.c index 8474a0476..5e2cc44de 100644 --- a/nuttx/configs/stm3240g-eval/src/up_autoleds.c +++ b/nuttx/configs/stm3240g-eval/src/up_autoleds.c @@ -224,10 +224,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 */ @@ -238,19 +238,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/stm3240g-eval/src/up_boot.c b/nuttx/configs/stm3240g-eval/src/up_boot.c index 6317b0717..cd184a368 100644 --- a/nuttx/configs/stm3240g-eval/src/up_boot.c +++ b/nuttx/configs/stm3240g-eval/src/up_boot.c @@ -239,7 +239,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 } diff --git a/nuttx/configs/stm32_tiny/src/up_boot.c b/nuttx/configs/stm32_tiny/src/up_boot.c index 525cae8fa..f9a274b1b 100644 --- a/nuttx/configs/stm32_tiny/src/up_boot.c +++ b/nuttx/configs/stm32_tiny/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 /* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function diff --git a/nuttx/configs/stm32_tiny/src/up_leds.c b/nuttx/configs/stm32_tiny/src/up_leds.c index f5ee45358..e476fabc8 100644 --- a/nuttx/configs/stm32_tiny/src/up_leds.c +++ b/nuttx/configs/stm32_tiny/src/up_leds.c @@ -86,23 +86,23 @@ static inline void set_led(bool v) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* Configure LED GPIO for output */ stm32_configgpio(GPIO_LED); } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { - ledvdbg("up_ledon(%d)\n",led); + ledvdbg("board_led_on(%d)\n",led); switch (led) { case LED_STARTED: @@ -118,10 +118,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/stm32f100rc_generic/src/up_boot.c b/nuttx/configs/stm32f100rc_generic/src/up_boot.c index d1922b9bf..ca9f89d68 100644 --- a/nuttx/configs/stm32f100rc_generic/src/up_boot.c +++ b/nuttx/configs/stm32f100rc_generic/src/up_boot.c @@ -65,6 +65,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 } diff --git a/nuttx/configs/stm32f100rc_generic/src/up_leds.c b/nuttx/configs/stm32f100rc_generic/src/up_leds.c index 83e1761dc..ea453d15a 100644 --- a/nuttx/configs/stm32f100rc_generic/src/up_leds.c +++ b/nuttx/configs/stm32f100rc_generic/src/up_leds.c @@ -74,30 +74,30 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { stm32_configgpio(GPIO_LED1); /* Configure LED1 GPIO for output */ } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { if (led == 1) stm32_gpiowrite(GPIO_LED1, true); } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led == 0) stm32_gpiowrite(GPIO_LED1, false); diff --git a/nuttx/configs/stm32f3discovery/src/up_autoleds.c b/nuttx/configs/stm32f3discovery/src/up_autoleds.c index 1191fb689..582b2e55e 100644 --- a/nuttx/configs/stm32f3discovery/src/up_autoleds.c +++ b/nuttx/configs/stm32f3discovery/src/up_autoleds.c @@ -85,10 +85,10 @@ static const uint32_t g_ledcfg[BOARD_NLEDS] = ****************************************************************************/ /**************************************************************************** - * Name: up_ledonoff + * Name: board_led_onoff ****************************************************************************/ -void up_ledonoff(int led, bool state) +void board_led_onoff(int led, bool state) { if ((unsigned)led < BOARD_NLEDS) { @@ -101,10 +101,10 @@ void up_ledonoff(int led, bool state) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { int i; @@ -117,21 +117,21 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { - up_ledonoff(led, true); + board_led_onoff(led, true); } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { - up_ledonoff(led, false); + board_led_onoff(led, false); } #endif /* CONFIG_ARCH_LEDS */ diff --git a/nuttx/configs/stm32f3discovery/src/up_boot.c b/nuttx/configs/stm32f3discovery/src/up_boot.c index 8055c3810..5d2c99697 100644 --- a/nuttx/configs/stm32f3discovery/src/up_boot.c +++ b/nuttx/configs/stm32f3discovery/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 } diff --git a/nuttx/configs/stm32f429i-disco/src/up_autoleds.c b/nuttx/configs/stm32f429i-disco/src/up_autoleds.c index d7bc03668..e93a94969 100644 --- a/nuttx/configs/stm32f429i-disco/src/up_autoleds.c +++ b/nuttx/configs/stm32f429i-disco/src/up_autoleds.c @@ -204,10 +204,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 */ @@ -216,19 +216,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/stm32f429i-disco/src/up_boot.c b/nuttx/configs/stm32f429i-disco/src/up_boot.c index d6eb2df16..1f1d59fb0 100644 --- a/nuttx/configs/stm32f429i-disco/src/up_boot.c +++ b/nuttx/configs/stm32f429i-disco/src/up_boot.c @@ -99,7 +99,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_STM32_FSMC diff --git a/nuttx/configs/stm32f429i-disco/src/up_idle.c b/nuttx/configs/stm32f429i-disco/src/up_idle.c index 4ba71ac9a..bd8d00816 100644 --- a/nuttx/configs/stm32f429i-disco/src/up_idle.c +++ b/nuttx/configs/stm32f429i-disco/src/up_idle.c @@ -67,8 +67,8 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() up_ledon(LED_IDLE) -# define END_IDLE() up_ledoff(LED_IDLE) +# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() # define END_IDLE() diff --git a/nuttx/configs/stm32f429i-disco/src/up_userleds.c b/nuttx/configs/stm32f429i-disco/src/up_userleds.c index a4224f975..c8b5038c4 100644 --- a/nuttx/configs/stm32f429i-disco/src/up_userleds.c +++ b/nuttx/configs/stm32f429i-disco/src/up_userleds.c @@ -234,7 +234,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/stm32f4discovery/src/up_autoleds.c b/nuttx/configs/stm32f4discovery/src/up_autoleds.c index 985c1000f..04a87c67c 100644 --- a/nuttx/configs/stm32f4discovery/src/up_autoleds.c +++ b/nuttx/configs/stm32f4discovery/src/up_autoleds.c @@ -224,10 +224,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 */ @@ -238,19 +238,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/stm32f4discovery/src/up_boot.c b/nuttx/configs/stm32f4discovery/src/up_boot.c index ad92809f2..5737ebc20 100644 --- a/nuttx/configs/stm32f4discovery/src/up_boot.c +++ b/nuttx/configs/stm32f4discovery/src/up_boot.c @@ -98,7 +98,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 } diff --git a/nuttx/configs/stm32f4discovery/src/up_idle.c b/nuttx/configs/stm32f4discovery/src/up_idle.c index c8563acb9..30f3a77f1 100644 --- a/nuttx/configs/stm32f4discovery/src/up_idle.c +++ b/nuttx/configs/stm32f4discovery/src/up_idle.c @@ -67,8 +67,8 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() up_ledon(LED_IDLE) -# define END_IDLE() up_ledoff(LED_IDLE) +# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() # define END_IDLE() diff --git a/nuttx/configs/stm32f4discovery/src/up_userleds.c b/nuttx/configs/stm32f4discovery/src/up_userleds.c index 919919c3e..51ba5ad55 100644 --- a/nuttx/configs/stm32f4discovery/src/up_userleds.c +++ b/nuttx/configs/stm32f4discovery/src/up_userleds.c @@ -238,7 +238,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/stm32ldiscovery/src/stm32_autoleds.c b/nuttx/configs/stm32ldiscovery/src/stm32_autoleds.c index 6fcdbcc21..fa5b09402 100644 --- a/nuttx/configs/stm32ldiscovery/src/stm32_autoleds.c +++ b/nuttx/configs/stm32ldiscovery/src/stm32_autoleds.c @@ -97,10 +97,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure LED1-2 GPIOs for output */ @@ -109,10 +109,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { bool led1on = false; bool led2on = false; @@ -140,10 +140,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led != 2) { diff --git a/nuttx/configs/stm32ldiscovery/src/stm32_boot.c b/nuttx/configs/stm32ldiscovery/src/stm32_boot.c index db515e458..d006342a4 100644 --- a/nuttx/configs/stm32ldiscovery/src/stm32_boot.c +++ b/nuttx/configs/stm32ldiscovery/src/stm32_boot.c @@ -85,6 +85,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 } diff --git a/nuttx/configs/stm32vldiscovery/src/stm32_leds.c b/nuttx/configs/stm32vldiscovery/src/stm32_leds.c index 5bfd6a60a..a45a1ef0b 100644 --- a/nuttx/configs/stm32vldiscovery/src/stm32_leds.c +++ b/nuttx/configs/stm32vldiscovery/src/stm32_leds.c @@ -84,10 +84,10 @@ void stm32_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { if (led == 1) { @@ -96,10 +96,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led == 0) { diff --git a/nuttx/configs/sure-pic32mx/src/pic32mx_autoleds.c b/nuttx/configs/sure-pic32mx/src/pic32mx_autoleds.c index dabbf679f..431190baf 100644 --- a/nuttx/configs/sure-pic32mx/src/pic32mx_autoleds.c +++ b/nuttx/configs/sure-pic32mx/src/pic32mx_autoleds.c @@ -187,10 +187,10 @@ void pic32mx_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { if (led < LED_NVALUES) { @@ -199,10 +199,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led < LED_NVALUES) { diff --git a/nuttx/configs/teensy/src/up_leds.c b/nuttx/configs/teensy/src/up_leds.c index 545148709..50e84471a 100644 --- a/nuttx/configs/teensy/src/up_leds.c +++ b/nuttx/configs/teensy/src/up_leds.c @@ -104,10 +104,10 @@ void at90usb_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { /* ON OFF * LED_STARTED 0 OFF ON (never happens) @@ -146,10 +146,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { /* ON OFF * LED_STARTED 0 OFF ON (never happens) diff --git a/nuttx/configs/twr-k60n512/src/twrk60-internal.h b/nuttx/configs/twr-k60n512/src/twrk60-internal.h index 9a8b16c9c..e9d8b798a 100644 --- a/nuttx/configs/twr-k60n512/src/twrk60-internal.h +++ b/nuttx/configs/twr-k60n512/src/twrk60-internal.h @@ -273,7 +273,7 @@ ************************************************************************************/ /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Initialize LED GPIOs so that LEDs can be controlled. @@ -281,7 +281,7 @@ ************************************************************************************/ #ifdef CONFIG_ARCH_LEDS -extern void up_ledinit(void); +extern void board_led_initialize(void); #endif /************************************************************************************ diff --git a/nuttx/configs/twr-k60n512/src/up_boot.c b/nuttx/configs/twr-k60n512/src/up_boot.c index d811658c3..ee6d4fa0d 100644 --- a/nuttx/configs/twr-k60n512/src/up_boot.c +++ b/nuttx/configs/twr-k60n512/src/up_boot.c @@ -97,6 +97,6 @@ void kinetis_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/twr-k60n512/src/up_leds.c b/nuttx/configs/twr-k60n512/src/up_leds.c index 4c3c35006..ba6a18302 100644 --- a/nuttx/configs/twr-k60n512/src/up_leds.c +++ b/nuttx/configs/twr-k60n512/src/up_leds.c @@ -222,7 +222,7 @@ static void led_setonoff(unsigned int bits) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Initialize LED GPIOs so that LEDs can be controlled. @@ -230,7 +230,7 @@ static void led_setonoff(unsigned int bits) ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* Configure LED1-4 GPIOs for output */ @@ -241,19 +241,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/ubw32/src/up_leds.c b/nuttx/configs/ubw32/src/up_leds.c index 0fb6fa14a..a2d9cbd58 100644 --- a/nuttx/configs/ubw32/src/up_leds.c +++ b/nuttx/configs/ubw32/src/up_leds.c @@ -238,11 +238,11 @@ void pic32mx_setleds(uint8_t ledset) #endif /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledon(int led) +void board_led_on(int led) { if ((unsigned)led < LED_NVALUES) { @@ -252,11 +252,11 @@ void up_ledon(int led) #endif /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledoff(int led) +void board_led_off(int led) { if ((unsigned)led < LED_NVALUES) { diff --git a/nuttx/configs/us7032evb1/src/up_leds.c b/nuttx/configs/us7032evb1/src/up_leds.c index d532bc355..6d48909a6 100644 --- a/nuttx/configs/us7032evb1/src/up_leds.c +++ b/nuttx/configs/us7032evb1/src/up_leds.c @@ -70,11 +70,11 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { uint16_t reg16; @@ -98,10 +98,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { uint16_t reg16; @@ -116,10 +116,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { uint16_t reg16; diff --git a/nuttx/configs/viewtool-stm32f107/src/stm32_leds.c b/nuttx/configs/viewtool-stm32f107/src/stm32_leds.c index 8bc42d707..3b468a9aa 100644 --- a/nuttx/configs/viewtool-stm32f107/src/stm32_leds.c +++ b/nuttx/configs/viewtool-stm32f107/src/stm32_leds.c @@ -157,7 +157,7 @@ void stm32_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on * * Description: * Select the "logical" ON state: @@ -178,7 +178,7 @@ void stm32_ledinit(void) ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledon(int led) +void board_led_on(int led) { switch (led) { @@ -210,7 +210,7 @@ void up_ledon(int led) #endif /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off * * Description: * Select the "logical" OFF state: @@ -231,7 +231,7 @@ void up_ledon(int led) ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledoff(int led) +void board_led_off(int led) { switch (led) { diff --git a/nuttx/configs/viewtool-stm32f107/src/viewtool_stm32f107.h b/nuttx/configs/viewtool-stm32f107/src/viewtool_stm32f107.h index 8bfc7b57f..0bb250943 100644 --- a/nuttx/configs/viewtool-stm32f107/src/viewtool_stm32f107.h +++ b/nuttx/configs/viewtool-stm32f107/src/viewtool_stm32f107.h @@ -317,7 +317,7 @@ void weak_function stm32_usbdev_initialize(void); int stm32_sdinitialize(int minor); /************************************************************************************ - * Name: up_ledinit + * Name: board_led_initialize * * Description: * Configure LEDs. LEDs are left in the OFF state. diff --git a/nuttx/configs/vsn/include/power.h b/nuttx/configs/vsn/include/power.h index 5be7ab795..23ec8e20c 100644 --- a/nuttx/configs/vsn/include/power.h +++ b/nuttx/configs/vsn/include/power.h @@ -1,72 +1,72 @@ -/************************************************************************************
- * configs/vsn/include/power.h
- * include/arch/board/power.h
- *
- * Copyright (C) 2011 Uros Platise. All rights reserved
- *
- * Authors: Uros Platise <uros.platise@isotel.eu>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name NuttX nor the names of its contributors may be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- ************************************************************************************/
-
-#ifndef __ARCH_BOARD_POWER_H
-#define __ARCH_BOARD_POWER_H
-
-#ifndef __ASSEMBLY__
-#undef EXTERN
-#if defined(__cplusplus)
-#define EXTERN extern "C"
-extern "C" {
-#else
-#define EXTERN extern
-#endif
-
-/************************************************************************************
- * Public Functions
- ************************************************************************************/
-
-/** Perform system reset on board level
- */
-void board_power_reboot(void);
-
-/** Power off the board
- *
- * If it returns, then it was not possible to power-off the board due to some
- * other constraints. In the case of VSN due to external power supply, press
- * of a push-button or RTC alarm.
- */
-void board_power_off(void);
-
-#undef EXTERN
-#if defined(__cplusplus)
-}
-#endif
-
-#endif /* __ASSEMBLY__ */
-#endif /* __ARCH_BOARD_POWER_H */
+/************************************************************************************ + * configs/vsn/include/power.h + * include/arch/board/power.h + * + * Copyright (C) 2011 Uros Platise. All rights reserved + * + * Authors: Uros Platise <uros.platise@isotel.eu> + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * 3. Neither the name NuttX nor the names of its contributors may be + * used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + ************************************************************************************/ + +#ifndef __ARCH_BOARD_POWER_H +#define __ARCH_BOARD_POWER_H + +#ifndef __ASSEMBLY__ +#undef EXTERN +#if defined(__cplusplus) +#define EXTERN extern "C" +extern "C" { +#else +#define EXTERN extern +#endif + +/************************************************************************************ + * Public Functions + ************************************************************************************/ + +/** Perform system reset on board level + */ +void board_power_reboot(void); + +/** Power off the board + * + * If it returns, then it was not possible to power-off the board due to some + * other constraints. In the case of VSN due to external power supply, press + * of a push-button or RTC alarm. + */ +void board_power_off(void); + +#undef EXTERN +#if defined(__cplusplus) +} +#endif + +#endif /* __ASSEMBLY__ */ +#endif /* __ARCH_BOARD_POWER_H */ diff --git a/nuttx/configs/vsn/src/boot.c b/nuttx/configs/vsn/src/boot.c index 94dcd0043..e9ce24fbe 100644 --- a/nuttx/configs/vsn/src/boot.c +++ b/nuttx/configs/vsn/src/boot.c @@ -85,6 +85,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 } diff --git a/nuttx/configs/vsn/src/leds.c b/nuttx/configs/vsn/src/leds.c index 5a674465d..141b39593 100644 --- a/nuttx/configs/vsn/src/leds.c +++ b/nuttx/configs/vsn/src/leds.c @@ -89,13 +89,13 @@ static void led_setonoff(unsigned int bits) ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { stm32_configgpio(GPIO_LED); } -void up_ledon(int led) +void board_led_on(int led) { if (led==LED_IDLE) { irqidle_mask = irqsave(); @@ -104,7 +104,7 @@ void up_ledon(int led) } -void up_ledoff(int led) +void board_led_off(int led) { if (led==LED_IDLE) { stm32_gpiowrite(GPIO_LED, false); diff --git a/nuttx/configs/z16f2800100zcog/src/z16f_leds.c b/nuttx/configs/z16f2800100zcog/src/z16f_leds.c index dfcf96fec..e08d33ad7 100644 --- a/nuttx/configs/z16f2800100zcog/src/z16f_leds.c +++ b/nuttx/configs/z16f2800100zcog/src/z16f_leds.c @@ -67,11 +67,11 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { /* The following is performed up_lowinit() as well */ @@ -80,10 +80,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { if ((unsigned)led <= 7) { @@ -92,14 +92,14 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led >= 1) { - up_ledon(led-1); + board_led_on(led-1); } } #endif /* CONFIG_ARCH_LEDS */ diff --git a/nuttx/configs/z8encore000zco/src/z8_leds.c b/nuttx/configs/z8encore000zco/src/z8_leds.c index 097b27efa..c6f7f1819 100644 --- a/nuttx/configs/z8encore000zco/src/z8_leds.c +++ b/nuttx/configs/z8encore000zco/src/z8_leds.c @@ -195,11 +195,11 @@ static void z8_putarray(FAR const struct z8_ledarray_s *array) ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { putreg8(0x00, PEAF); /* PE Alt func = Port */ putreg8(0x00, PGAF); /* PG Alt func = Port */ @@ -218,10 +218,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { if ((unsigned)led <= 8) { @@ -230,14 +230,14 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { if (led >= 1) { - up_ledon(led-1); + board_led_on(led-1); } } #endif /* CONFIG_ARCH_LEDS */ diff --git a/nuttx/configs/z8f64200100kit/src/z8_leds.c b/nuttx/configs/z8f64200100kit/src/z8_leds.c index c5b6ec8af..1e54b1b21 100644 --- a/nuttx/configs/z8f64200100kit/src/z8_leds.c +++ b/nuttx/configs/z8f64200100kit/src/z8_leds.c @@ -63,27 +63,27 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -void up_ledinit(void) +void board_led_initialize(void) { } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { } #endif /* CONFIG_ARCH_LEDS */ diff --git a/nuttx/configs/zkit-arm-1769/src/up_boot.c b/nuttx/configs/zkit-arm-1769/src/up_boot.c index 96f8af645..7e47ac398 100644 --- a/nuttx/configs/zkit-arm-1769/src/up_boot.c +++ b/nuttx/configs/zkit-arm-1769/src/up_boot.c @@ -92,6 +92,6 @@ void lpc17_boardinitialize(void) /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS - up_ledinit(); + board_led_initialize(); #endif } diff --git a/nuttx/configs/zkit-arm-1769/src/up_leds.c b/nuttx/configs/zkit-arm-1769/src/up_leds.c index 2b331b5bb..41bf0caca 100644 --- a/nuttx/configs/zkit-arm-1769/src/up_leds.c +++ b/nuttx/configs/zkit-arm-1769/src/up_leds.c @@ -116,10 +116,10 @@ static int g_nestcount; ****************************************************************************/ /**************************************************************************** - * Name: up_ledinit + * Name: board_led_initialize ****************************************************************************/ -void up_ledinit(void) +void board_led_initialize(void) { /* Configure all LED GPIO lines */ @@ -128,10 +128,10 @@ void up_ledinit(void) } /**************************************************************************** - * Name: up_ledon + * Name: board_led_on ****************************************************************************/ -void up_ledon(int led) +void board_led_on(int led) { /* We will control LED1 and LED2 not yet completed the boot sequence. */ @@ -178,10 +178,10 @@ void up_ledon(int led) } /**************************************************************************** - * Name: up_ledoff + * Name: board_led_off ****************************************************************************/ -void up_ledoff(int led) +void board_led_off(int led) { /* In all states, OFF can only mean turning off the HB LED */ |