From 2f837ccd2a4122a1cb0a0c80b2d1018fc692043a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 24 Jan 2014 14:28:49 -0600 Subject: [PATCH] rename up_led*() functions to board_led_*() --- ChangeLog | 3 + Documentation/NuttxPortingGuide.html | 18 +- arch/8051/src/up_allocateheap.c | 2 +- arch/8051/src/up_assert.c | 6 +- arch/8051/src/up_head.S | 6 +- arch/8051/src/up_idle.c | 4 +- arch/8051/src/up_initialize.c | 2 +- arch/8051/src/up_internal.h | 12 +- arch/8051/src/up_irqtest.c | 8 +- arch/arm/src/arm/up_assert.c | 6 +- arch/arm/src/arm/up_doirq.c | 4 +- arch/arm/src/arm/up_nommuhead.S | 2 +- arch/arm/src/arm/up_sigdeliver.c | 4 +- arch/arm/src/armv6-m/up_assert.c | 6 +- arch/arm/src/armv6-m/up_doirq.c | 4 +- arch/arm/src/armv6-m/up_sigdeliver.c | 4 +- arch/arm/src/armv7-a/arm_assert.c | 6 +- arch/arm/src/armv7-a/arm_doirq.c | 4 +- arch/arm/src/armv7-a/arm_sigdeliver.c | 4 +- arch/arm/src/armv7-m/up_assert.c | 6 +- arch/arm/src/armv7-m/up_doirq.c | 4 +- arch/arm/src/armv7-m/up_sigdeliver.c | 4 +- arch/arm/src/common/up_allocateheap.c | 4 +- arch/arm/src/common/up_createstack.c | 2 +- arch/arm/src/common/up_initialize.c | 2 +- arch/arm/src/common/up_internal.h | 12 +- arch/arm/src/dm320/dm320_allocateheap.c | 2 +- arch/arm/src/dm320/dm320_boot.c | 2 +- arch/arm/src/efm32/efm32_idle.c | 4 +- arch/arm/src/imx/imx_allocateheap.c | 2 +- arch/arm/src/imx/imx_boot.c | 2 +- arch/arm/src/kinetis/kinetis_allocateheap.c | 4 +- arch/arm/src/kinetis/kinetis_idle.c | 4 +- arch/arm/src/kl/kl_idle.c | 4 +- arch/arm/src/lm/lm_allocateheap.c | 4 +- arch/arm/src/lpc17xx/lpc17_allocateheap.c | 4 +- arch/arm/src/lpc17xx/lpc17_idle.c | 4 +- arch/arm/src/lpc214x/lpc214x_head.S | 2 +- arch/arm/src/lpc2378/lpc23xx_head.S | 2 +- arch/arm/src/lpc31xx/lpc31_allocateheap.c | 2 +- arch/arm/src/lpc43xx/lpc43_allocateheap.c | 2 +- arch/arm/src/lpc43xx/lpc43_idle.c | 4 +- arch/arm/src/nuc1xx/nuc_idle.c | 4 +- arch/arm/src/sam34/sam_allocateheap.c | 4 +- arch/arm/src/sama5/sam_allocateheap.c | 4 +- arch/arm/src/stm32/stm32_allocateheap.c | 4 +- arch/arm/src/stm32/stm32_idle.c | 4 +- arch/arm/src/str71x/str71x_decodeirq.c | 6 +- arch/arm/src/str71x/str71x_head.S | 4 +- arch/avr/src/avr/up_createstack.c | 2 +- arch/avr/src/avr/up_doirq.c | 4 +- arch/avr/src/avr/up_sigdeliver.c | 4 +- arch/avr/src/avr32/up_createstack.c | 2 +- arch/avr/src/avr32/up_doirq.c | 4 +- arch/avr/src/avr32/up_sigdeliver.c | 4 +- arch/avr/src/common/up_allocateheap.c | 2 +- arch/avr/src/common/up_assert.c | 6 +- arch/avr/src/common/up_initialize.c | 2 +- arch/avr/src/common/up_internal.h | 8 +- arch/hc/src/common/up_allocateheap.c | 2 +- arch/hc/src/common/up_createstack.c | 2 +- arch/hc/src/common/up_doirq.c | 4 +- arch/hc/src/common/up_initialize.c | 2 +- arch/hc/src/common/up_internal.h | 12 +- arch/hc/src/m9s12/m9s12_assert.c | 6 +- arch/mips/include/pic32mx/cp0.h | 792 +++++++++--------- arch/mips/src/common/up_allocateheap.c | 2 +- arch/mips/src/common/up_createstack.c | 2 +- arch/mips/src/common/up_initialize.c | 2 +- arch/mips/src/common/up_internal.h | 10 +- arch/mips/src/mips32/up_assert.c | 6 +- arch/mips/src/mips32/up_doirq.c | 4 +- arch/mips/src/mips32/up_sigdeliver.c | 4 +- arch/mips/src/pic32mx/pic32mx-cvr.h | 226 ++--- arch/mips/src/pic32mx/pic32mx-decodeirq.c | 6 +- arch/mips/src/pic32mx/pic32mx-exception.c | 2 +- arch/mips/src/pic32mx/pic32mx-ic.h | 332 ++++---- arch/mips/src/pic32mx/pic32mx-oc.h | 422 +++++----- arch/mips/src/pic32mx/pic32mx-timer.h | 444 +++++----- arch/sh/src/common/up_allocateheap.c | 2 +- arch/sh/src/common/up_assert.c | 6 +- arch/sh/src/common/up_createstack.c | 2 +- arch/sh/src/common/up_doirq.c | 4 +- arch/sh/src/common/up_initialize.c | 2 +- arch/sh/src/common/up_internal.h | 12 +- arch/sh/src/m16c/m16c_head.S | 4 +- arch/sh/src/m16c/m16c_sigdeliver.c | 4 +- arch/sh/src/sh1/sh1_head.S | 6 +- arch/sh/src/sh1/sh1_sigdeliver.c | 4 +- arch/x86/src/common/up_allocateheap.c | 2 +- arch/x86/src/common/up_assert.c | 6 +- arch/x86/src/common/up_initialize.c | 2 +- arch/x86/src/common/up_internal.h | 12 +- arch/x86/src/i486/up_createstack.c | 2 +- arch/x86/src/i486/up_sigdeliver.c | 4 +- arch/x86/src/qemu/qemu_handlers.c | 14 +- arch/z16/src/common/up_allocateheap.c | 2 +- arch/z16/src/common/up_assert.c | 6 +- arch/z16/src/common/up_createstack.c | 2 +- arch/z16/src/common/up_doirq.c | 4 +- arch/z16/src/common/up_idle.c | 4 +- arch/z16/src/common/up_initialize.c | 2 +- arch/z16/src/common/up_internal.h | 12 +- arch/z16/src/common/up_sigdeliver.c | 4 +- arch/z16/src/z16f/z16f_head.S | 4 +- arch/z80/src/common/up_allocateheap.c | 2 +- arch/z80/src/common/up_assert.c | 6 +- arch/z80/src/common/up_createstack.c | 2 +- arch/z80/src/common/up_doirq.c | 4 +- arch/z80/src/common/up_idle.c | 4 +- arch/z80/src/common/up_initialize.c | 2 +- arch/z80/src/common/up_internal.h | 12 +- arch/z80/src/ez80/ez80_sigdeliver.c | 4 +- arch/z80/src/z180/z180_sigdeliver.c | 4 +- arch/z80/src/z8/z8_head.S | 2 +- arch/z80/src/z8/z8_sigdeliver.c | 4 +- arch/z80/src/z80/z80_sigdeliver.c | 4 +- configs/16z/src/z16f_leds.c | 12 +- configs/arduino-due/src/arduino-due.h | 4 +- configs/arduino-due/src/sam_autoleds.c | 12 +- configs/arduino-due/src/sam_boot.c | 2 +- configs/avr32dev1/src/avr32dev1_internal.h | 4 +- configs/avr32dev1/src/up_boot.c | 2 +- configs/avr32dev1/src/up_leds.c | 12 +- configs/c5471evm/src/up_leds.c | 12 +- configs/cloudctrl/src/up_autoleds.c | 14 +- configs/cloudctrl/src/up_boot.c | 2 +- configs/demo9s12ne64/src/demo9s12ne64.h | 4 +- configs/demo9s12ne64/src/up_boot.c | 2 +- configs/demo9s12ne64/src/up_leds.c | 12 +- configs/ea3131/src/up_boot.c | 2 +- configs/ea3131/src/up_clkinit.c | 2 +- configs/ea3131/src/up_leds.c | 12 +- configs/ea3152/src/up_boot.c | 2 +- configs/ea3152/src/up_clkinit.c | 2 +- configs/ea3152/src/up_leds.c | 12 +- configs/eagle100/src/eagle100_internal.h | 4 +- configs/eagle100/src/up_boot.c | 2 +- configs/eagle100/src/up_leds.c | 24 +- configs/ekk-lm3s9b96/src/up_boot.c | 2 +- configs/ekk-lm3s9b96/src/up_leds.c | 24 +- configs/ez80f910200kitg/src/ez80_leds.c | 12 +- configs/ez80f910200zco/src/ez80_leds.c | 12 +- configs/fire-stm32v2/src/up_autoleds.c | 14 +- configs/fire-stm32v2/src/up_boot.c | 2 +- configs/freedom-kl25z/src/kl_led.c | 8 +- configs/hymini-stm32v/src/up_boot.c | 2 +- configs/hymini-stm32v/src/up_leds.c | 12 +- configs/kwikstik-k40/src/kwikstik-internal.h | 4 +- configs/kwikstik-k40/src/up_boot.c | 2 +- configs/kwikstik-k40/src/up_leds.c | 12 +- configs/lincoln60/src/up_boot.c | 2 +- configs/lincoln60/src/up_leds.c | 16 +- configs/lm3s6432-s2e/src/up_boot.c | 2 +- configs/lm3s6432-s2e/src/up_leds.c | 24 +- configs/lm3s6965-ek/src/up_boot.c | 2 +- configs/lm3s6965-ek/src/up_leds.c | 24 +- configs/lm3s8962-ek/src/up_boot.c | 2 +- configs/lm3s8962-ek/src/up_leds.c | 24 +- configs/lm4f120-launchpad/src/lm4f_autoleds.c | 8 +- configs/lpc4330-xplorer/src/up_autoleds.c | 16 +- configs/lpc4330-xplorer/src/up_boot.c | 2 +- configs/lpcxpresso-lpc1768/src/up_boot.c | 2 +- configs/lpcxpresso-lpc1768/src/up_leds.c | 12 +- configs/maple/src/up_boot.c | 2 +- configs/maple/src/up_leds.c | 16 +- configs/mbed/src/up_boot.c | 2 +- configs/mbed/src/up_leds.c | 16 +- configs/mcu123-lpc214x/src/up_leds.c | 12 +- configs/mikroe-stm32f4/src/up_idle.c | 4 +- configs/mirtoo/src/up_leds.c | 8 +- configs/mx1ads/src/up_leds.c | 12 +- configs/ne64badge/src/ne64badge_internal.h | 4 +- configs/ne64badge/src/up_boot.c | 2 +- configs/ne64badge/src/up_leds.c | 16 +- configs/ntosd-dm320/src/up_leds.c | 12 +- configs/nucleus2g/src/up_boot.c | 2 +- configs/nucleus2g/src/up_leds.c | 16 +- configs/nutiny-nuc120/src/nuc_led.c | 8 +- configs/olimex-lpc-h3131/src/lpc31_boot.c | 2 +- configs/olimex-lpc-h3131/src/lpc31_leds.c | 12 +- configs/olimex-lpc-h3131/src/lpc_h3131.h | 4 +- configs/olimex-lpc1766stk/src/up_boot.c | 2 +- configs/olimex-lpc1766stk/src/up_leds.c | 16 +- configs/olimex-lpc2378/src/up_leds.c | 12 +- configs/olimex-stm32-p207/src/up_autoleds.c | 12 +- configs/olimex-stm32-p207/src/up_boot.c | 2 +- configs/olimex-strp711/src/up_leds.c | 12 +- configs/open1788/src/lpc17_autoleds.c | 12 +- configs/open1788/src/lpc17_boardinitialize.c | 2 +- configs/pcduino-a10/src/a1x_leds.c | 8 +- configs/pic32-starterkit/src/up_leds.c | 8 +- configs/pic32mx7mmb/src/up_leds.c | 8 +- configs/pjrc-8051/src/up_leds.c | 12 +- configs/px4fmu-v2_upstream/src/px4fmu2_init.c | 6 +- configs/qemu-i486/src/up_boot.c | 2 +- configs/sam3u-ek/src/sam3u-ek.h | 4 +- configs/sam3u-ek/src/up_boot.c | 2 +- configs/sam3u-ek/src/up_leds.c | 12 +- configs/sam4l-xplained/src/sam4l-xplained.h | 4 +- configs/sam4l-xplained/src/sam_autoleds.c | 12 +- configs/sam4l-xplained/src/sam_boot.c | 2 +- configs/sam4s-xplained/src/sam4s-xplained.h | 4 +- configs/sam4s-xplained/src/sam_autoleds.c | 12 +- configs/sam4s-xplained/src/sam_boot.c | 2 +- configs/sama5d3x-ek/src/sam_autoleds.c | 12 +- configs/sama5d3x-ek/src/sam_boot.c | 2 +- configs/sama5d3x-ek/src/sama5d3x-ek.h | 4 +- configs/shenzhou/src/up_autoleds.c | 14 +- configs/shenzhou/src/up_boot.c | 2 +- configs/skp16c26/src/up_leds.c | 14 +- configs/spark/include/board.h | 6 +- configs/spark/src/up_autoleds.c | 12 +- configs/spark/src/up_boot.c | 2 +- configs/spark/src/up_userleds.c | 4 +- configs/stm3210e-eval/src/up_boot.c | 2 +- configs/stm3210e-eval/src/up_idle.c | 4 +- configs/stm3210e-eval/src/up_leds.c | 14 +- configs/stm3220g-eval/src/up_autoleds.c | 12 +- configs/stm3220g-eval/src/up_boot.c | 2 +- configs/stm3240g-eval/src/up_autoleds.c | 12 +- configs/stm3240g-eval/src/up_boot.c | 2 +- configs/stm32_tiny/src/up_boot.c | 2 +- configs/stm32_tiny/src/up_leds.c | 14 +- configs/stm32f100rc_generic/src/up_boot.c | 2 +- configs/stm32f100rc_generic/src/up_leds.c | 12 +- configs/stm32f3discovery/src/up_autoleds.c | 20 +- configs/stm32f3discovery/src/up_boot.c | 2 +- configs/stm32f429i-disco/src/up_autoleds.c | 12 +- configs/stm32f429i-disco/src/up_boot.c | 2 +- configs/stm32f429i-disco/src/up_idle.c | 4 +- configs/stm32f429i-disco/src/up_userleds.c | 2 +- configs/stm32f4discovery/src/up_autoleds.c | 12 +- configs/stm32f4discovery/src/up_boot.c | 2 +- configs/stm32f4discovery/src/up_idle.c | 4 +- configs/stm32f4discovery/src/up_userleds.c | 2 +- configs/stm32ldiscovery/src/stm32_autoleds.c | 12 +- configs/stm32ldiscovery/src/stm32_boot.c | 2 +- configs/stm32vldiscovery/src/stm32_leds.c | 8 +- configs/sure-pic32mx/src/pic32mx_autoleds.c | 8 +- configs/teensy/src/up_leds.c | 8 +- configs/twr-k60n512/src/twrk60-internal.h | 4 +- configs/twr-k60n512/src/up_boot.c | 2 +- configs/twr-k60n512/src/up_leds.c | 12 +- configs/ubw32/src/up_leds.c | 8 +- configs/us7032evb1/src/up_leds.c | 12 +- configs/viewtool-stm32f107/src/stm32_leds.c | 8 +- .../src/viewtool_stm32f107.h | 2 +- configs/vsn/include/power.h | 144 ++-- configs/vsn/src/boot.c | 2 +- configs/vsn/src/leds.c | 6 +- configs/z16f2800100zcog/src/z16f_leds.c | 14 +- configs/z8encore000zco/src/z8_leds.c | 14 +- configs/z8f64200100kit/src/z8_leds.c | 12 +- configs/zkit-arm-1769/src/up_boot.c | 2 +- configs/zkit-arm-1769/src/up_leds.c | 12 +- 256 files changed, 1969 insertions(+), 1966 deletions(-) diff --git a/ChangeLog b/ChangeLog index 77a4005454..f92bd9ce30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6515,4 +6515,7 @@ * Rename up_buttons() to board_buttons() for the same reason (2014- 1-14). * Rename up_irqbutton() to board_button_irq() (2014-1-24). + * Rename up_ledinit() to board_led_intialize() (2014-1-24). + * Rename up_ledon() to board_led_on() and up_ledoff() to board_led_off() + (2014-1-24). diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 8c67c28ada..57f1383884 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -2679,13 +2679,13 @@ else /* Defined in board/up_leds.c */ #ifdef CONFIG_ARCH_LEDS -extern void up_ledinit(void); -extern void up_ledon(int led); -extern void up_ledoff(int led); +extern void board_led_initialize(void); +extern void board_led_on(int led); +extern void board_led_off(int led); #else -# define up_ledinit() -# define up_ledon(led) -# define up_ledoff(led) +# define board_led_initialize() +# define board_led_on(led) +# define board_led_off(led) #endif

@@ -2693,14 +2693,14 @@ extern void up_ledoff(int led);