diff --git a/arch/arm/src/arm/up_assert.c b/arch/arm/src/arm/up_assert.c index f8cd706fa56..c9ed3cff3b0 100644 --- a/arch/arm/src/arm/up_assert.c +++ b/arch/arm/src/arm/up_assert.c @@ -316,7 +316,7 @@ static void _up_assert(int errorcode) for (; ; ) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -343,7 +343,7 @@ void up_assert(const uint8_t *filename, int lineno) struct tcb_s *rtcb = (struct tcb_s *)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_PRINT_TASKNAME lldbg("Assertion failed at file:%s line: %d task: %s\n", diff --git a/arch/arm/src/arm/up_doirq.c b/arch/arm/src/arm/up_doirq.c index 35ba735cdb6..7df75a436d1 100644 --- a/arch/arm/src/arm/up_doirq.c +++ b/arch/arm/src/arm/up_doirq.c @@ -74,7 +74,7 @@ void up_doirq(int irq, uint32_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/arm/src/arm/up_sigdeliver.c b/arch/arm/src/arm/up_sigdeliver.c index 625a0993ae5..38127a706a2 100644 --- a/arch/arm/src/arm/up_sigdeliver.c +++ b/arch/arm/src/arm/up_sigdeliver.c @@ -93,7 +93,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/arm/src/armv6-m/up_assert.c b/arch/arm/src/armv6-m/up_assert.c index 4c570637a5e..9f196926a33 100644 --- a/arch/arm/src/armv6-m/up_assert.c +++ b/arch/arm/src/armv6-m/up_assert.c @@ -371,7 +371,7 @@ static void _up_assert(int errorcode) for (; ; ) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -398,7 +398,7 @@ void up_assert(const uint8_t *filename, int lineno) struct tcb_s *rtcb = (struct tcb_s *)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_PRINT_TASKNAME lldbg("Assertion failed at file:%s line: %d task: %s\n", diff --git a/arch/arm/src/armv6-m/up_doirq.c b/arch/arm/src/armv6-m/up_doirq.c index 54557585f22..4be88b4c088 100644 --- a/arch/arm/src/armv6-m/up_doirq.c +++ b/arch/arm/src/armv6-m/up_doirq.c @@ -72,7 +72,7 @@ uint32_t *up_doirq(int irq, uint32_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/arm/src/armv6-m/up_sigdeliver.c b/arch/arm/src/armv6-m/up_sigdeliver.c index f0f4dd54bfe..153c9bd4d05 100644 --- a/arch/arm/src/armv6-m/up_sigdeliver.c +++ b/arch/arm/src/armv6-m/up_sigdeliver.c @@ -98,7 +98,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/arm/src/armv7-a/arm_assert.c b/arch/arm/src/armv7-a/arm_assert.c index 19630740eb6..166de067acc 100644 --- a/arch/arm/src/armv7-a/arm_assert.c +++ b/arch/arm/src/armv7-a/arm_assert.c @@ -371,7 +371,7 @@ static void _up_assert(int errorcode) for (; ; ) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -397,7 +397,7 @@ void up_assert(const uint8_t *filename, int lineno) #ifdef CONFIG_PRINT_TASKNAME struct tcb_s *rtcb = (struct tcb_s *)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_PRINT_TASKNAME lldbg("Assertion failed at file:%s line: %d task: %s\n", diff --git a/arch/arm/src/armv7-a/arm_doirq.c b/arch/arm/src/armv7-a/arm_doirq.c index d126f565dbc..f62fc7f60c1 100644 --- a/arch/arm/src/armv7-a/arm_doirq.c +++ b/arch/arm/src/armv7-a/arm_doirq.c @@ -74,7 +74,7 @@ uint32_t *arm_doirq(int irq, uint32_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/arm/src/armv7-a/arm_sigdeliver.c b/arch/arm/src/armv7-a/arm_sigdeliver.c index 0ea2b4c13e1..1cfa8884219 100644 --- a/arch/arm/src/armv7-a/arm_sigdeliver.c +++ b/arch/arm/src/armv7-a/arm_sigdeliver.c @@ -93,7 +93,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/arm/src/armv7-m/up_assert.c b/arch/arm/src/armv7-m/up_assert.c index 0a264cb8cb2..74ac5e30e5e 100644 --- a/arch/arm/src/armv7-m/up_assert.c +++ b/arch/arm/src/armv7-m/up_assert.c @@ -380,7 +380,7 @@ static void _up_assert(int errorcode) for (; ; ) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -407,7 +407,7 @@ void up_assert(const uint8_t *filename, int lineno) struct tcb_s *rtcb = (struct tcb_s *)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_PRINT_TASKNAME lldbg("Assertion failed at file:%s line: %d task: %s\n", diff --git a/arch/arm/src/armv7-m/up_doirq.c b/arch/arm/src/armv7-m/up_doirq.c index 0582000c582..27740d2704f 100644 --- a/arch/arm/src/armv7-m/up_doirq.c +++ b/arch/arm/src/armv7-m/up_doirq.c @@ -72,7 +72,7 @@ uint32_t *up_doirq(int irq, uint32_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/arm/src/armv7-m/up_sigdeliver.c b/arch/arm/src/armv7-m/up_sigdeliver.c index df5c17fbcfb..085380fb5a9 100644 --- a/arch/arm/src/armv7-m/up_sigdeliver.c +++ b/arch/arm/src/armv7-m/up_sigdeliver.c @@ -93,7 +93,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/arm/src/common/up_allocateheap.c b/arch/arm/src/common/up_allocateheap.c index f1f219ebc8e..b4aa3d05d00 100644 --- a/arch/arm/src/common/up_allocateheap.c +++ b/arch/arm/src/common/up_allocateheap.c @@ -142,14 +142,14 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the user-space heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)ubase; *heap_size = usize; #else /* Return the heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; #endif diff --git a/arch/arm/src/common/up_createstack.c b/arch/arm/src/common/up_createstack.c index 7cec83a18ff..5d03ee4556e 100644 --- a/arch/arm/src/common/up_createstack.c +++ b/arch/arm/src/common/up_createstack.c @@ -227,7 +227,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) up_stack_color(tcb->stack_alloc_ptr, tcb->adj_stack_size); #endif - board_led_on(LED_STACKCREATED); + board_autoled_on(LED_STACKCREATED); return OK; } diff --git a/arch/arm/src/common/up_initialize.c b/arch/arm/src/common/up_initialize.c index 21b5ea2d6ef..2cb332671b6 100644 --- a/arch/arm/src/common/up_initialize.c +++ b/arch/arm/src/common/up_initialize.c @@ -275,5 +275,5 @@ void up_initialize(void) /* Initialize the L2 cache if present and selected */ up_l2ccinitialize(); - board_led_on(LED_IRQSENABLED); + board_autoled_on(LED_IRQSENABLED); } diff --git a/arch/arm/src/dm320/dm320_allocateheap.c b/arch/arm/src/dm320/dm320_allocateheap.c index c6802c4c5c6..d1a96f8020a 100644 --- a/arch/arm/src/dm320/dm320_allocateheap.c +++ b/arch/arm/src/dm320/dm320_allocateheap.c @@ -85,7 +85,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = (DM320_SDRAM_VADDR + CONFIG_RAM_SIZE) - g_idle_topstack; } diff --git a/arch/arm/src/efm32/efm32_idle.c b/arch/arm/src/efm32/efm32_idle.c index 5740d14f6a5..75c9905c1b9 100644 --- a/arch/arm/src/efm32/efm32_idle.c +++ b/arch/arm/src/efm32/efm32_idle.c @@ -61,7 +61,7 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define BEGIN_IDLE() board_autoled_on(LED_IDLE) # define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() diff --git a/arch/arm/src/imx/imx_allocateheap.c b/arch/arm/src/imx/imx_allocateheap.c index 2447d6a2b2b..179c4751eda 100644 --- a/arch/arm/src/imx/imx_allocateheap.c +++ b/arch/arm/src/imx/imx_allocateheap.c @@ -85,7 +85,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = (IMX_SDRAM_VSECTION + CONFIG_RAM_SIZE) - g_idle_topstack; } diff --git a/arch/arm/src/kinetis/kinetis_allocateheap.c b/arch/arm/src/kinetis/kinetis_allocateheap.c index ac96b2d455d..1eb21eeb4d9 100644 --- a/arch/arm/src/kinetis/kinetis_allocateheap.c +++ b/arch/arm/src/kinetis/kinetis_allocateheap.c @@ -131,7 +131,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the user-space heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)ubase; *heap_size = usize; @@ -142,7 +142,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; #endif diff --git a/arch/arm/src/kinetis/kinetis_idle.c b/arch/arm/src/kinetis/kinetis_idle.c index 8e58beb8841..b47e56a668b 100644 --- a/arch/arm/src/kinetis/kinetis_idle.c +++ b/arch/arm/src/kinetis/kinetis_idle.c @@ -54,7 +54,7 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define BEGIN_IDLE() board_autoled_on(LED_IDLE) # define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() diff --git a/arch/arm/src/kl/kl_idle.c b/arch/arm/src/kl/kl_idle.c index a198ad8b27d..8e34a7a1a40 100644 --- a/arch/arm/src/kl/kl_idle.c +++ b/arch/arm/src/kl/kl_idle.c @@ -58,7 +58,7 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define BEGIN_IDLE() board_autoled_on(LED_IDLE) # define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() diff --git a/arch/arm/src/lpc11xx/lpc11_idle.c b/arch/arm/src/lpc11xx/lpc11_idle.c index f258c2b0c96..e45cf3068b9 100644 --- a/arch/arm/src/lpc11xx/lpc11_idle.c +++ b/arch/arm/src/lpc11xx/lpc11_idle.c @@ -53,7 +53,7 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define BEGIN_IDLE() board_autoled_on(LED_IDLE) # define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() diff --git a/arch/arm/src/lpc17xx/lpc17_allocateheap.c b/arch/arm/src/lpc17xx/lpc17_allocateheap.c index e6969326b65..20568f0457f 100644 --- a/arch/arm/src/lpc17xx/lpc17_allocateheap.c +++ b/arch/arm/src/lpc17xx/lpc17_allocateheap.c @@ -249,7 +249,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the user-space heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)ubase; *heap_size = usize; @@ -260,7 +260,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; #endif diff --git a/arch/arm/src/lpc17xx/lpc17_idle.c b/arch/arm/src/lpc17xx/lpc17_idle.c index baf62b0155b..db90892e448 100644 --- a/arch/arm/src/lpc17xx/lpc17_idle.c +++ b/arch/arm/src/lpc17xx/lpc17_idle.c @@ -55,7 +55,7 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define BEGIN_IDLE() board_autoled_on(LED_IDLE) # define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() diff --git a/arch/arm/src/lpc31xx/lpc31_allocateheap.c b/arch/arm/src/lpc31xx/lpc31_allocateheap.c index b6d77b190a1..9c54871eaf7 100644 --- a/arch/arm/src/lpc31xx/lpc31_allocateheap.c +++ b/arch/arm/src/lpc31xx/lpc31_allocateheap.c @@ -180,7 +180,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = LPC31_HEAP_VEND - g_idle_topstack; } diff --git a/arch/arm/src/lpc43xx/lpc43_allocateheap.c b/arch/arm/src/lpc43xx/lpc43_allocateheap.c index b914b4d8bb7..243ea98b61c 100644 --- a/arch/arm/src/lpc43xx/lpc43_allocateheap.c +++ b/arch/arm/src/lpc43xx/lpc43_allocateheap.c @@ -248,7 +248,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { /* Start with the first SRAM region */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; } diff --git a/arch/arm/src/lpc43xx/lpc43_idle.c b/arch/arm/src/lpc43xx/lpc43_idle.c index 029a55f1f89..476c36c91f4 100644 --- a/arch/arm/src/lpc43xx/lpc43_idle.c +++ b/arch/arm/src/lpc43xx/lpc43_idle.c @@ -57,7 +57,7 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define BEGIN_IDLE() board_autoled_on(LED_IDLE) # define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() diff --git a/arch/arm/src/nuc1xx/nuc_idle.c b/arch/arm/src/nuc1xx/nuc_idle.c index 3236b572c86..d656767e7ed 100644 --- a/arch/arm/src/nuc1xx/nuc_idle.c +++ b/arch/arm/src/nuc1xx/nuc_idle.c @@ -58,7 +58,7 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define BEGIN_IDLE() board_autoled_on(LED_IDLE) # define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() diff --git a/arch/arm/src/sam34/sam_allocateheap.c b/arch/arm/src/sam34/sam_allocateheap.c index 0f0b981ee48..3e1d5e6efe9 100644 --- a/arch/arm/src/sam34/sam_allocateheap.c +++ b/arch/arm/src/sam34/sam_allocateheap.c @@ -230,7 +230,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the user-space heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)ubase; *heap_size = usize; @@ -241,7 +241,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; #endif diff --git a/arch/arm/src/sama5/sam_allocateheap.c b/arch/arm/src/sama5/sam_allocateheap.c index 33e4fe1c6a8..14388795f98 100644 --- a/arch/arm/src/sama5/sam_allocateheap.c +++ b/arch/arm/src/sama5/sam_allocateheap.c @@ -258,7 +258,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * heap is at the end of BSS through the configured end of SDRAM. */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)&_ebss; *heap_size = SAMA5_PRIMARY_HEAP_END - (size_t)&_ebss; @@ -267,7 +267,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * IDLE stack through the configured end of ISRAM. */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = SAMA5_PRIMARY_HEAP_END - g_idle_topstack; #endif diff --git a/arch/arm/src/samdl/sam_idle.c b/arch/arm/src/samdl/sam_idle.c index f0baac5f9b0..743b26a4f78 100644 --- a/arch/arm/src/samdl/sam_idle.c +++ b/arch/arm/src/samdl/sam_idle.c @@ -58,7 +58,7 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define BEGIN_IDLE() board_autoled_on(LED_IDLE) # define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() diff --git a/arch/arm/src/samv7/sam_allocateheap.c b/arch/arm/src/samv7/sam_allocateheap.c index 65ba3f425ff..1e8dc087963 100644 --- a/arch/arm/src/samv7/sam_allocateheap.c +++ b/arch/arm/src/samv7/sam_allocateheap.c @@ -237,7 +237,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the user-space heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)ubase; *heap_size = usize; @@ -248,7 +248,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; #endif diff --git a/arch/arm/src/stm32/stm32_allocateheap.c b/arch/arm/src/stm32/stm32_allocateheap.c index 8350b859e18..8a844b6d22d 100644 --- a/arch/arm/src/stm32/stm32_allocateheap.c +++ b/arch/arm/src/stm32/stm32_allocateheap.c @@ -511,7 +511,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the user-space heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)ubase; *heap_size = usize; @@ -526,7 +526,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = SRAM1_END - g_idle_topstack; diff --git a/arch/arm/src/stm32/stm32_idle.c b/arch/arm/src/stm32/stm32_idle.c index 7108956cae4..2934cc3e4c3 100644 --- a/arch/arm/src/stm32/stm32_idle.c +++ b/arch/arm/src/stm32/stm32_idle.c @@ -60,7 +60,7 @@ */ #if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE) -# define BEGIN_IDLE() board_led_on(LED_IDLE) +# define BEGIN_IDLE() board_autoled_on(LED_IDLE) # define END_IDLE() board_led_off(LED_IDLE) #else # define BEGIN_IDLE() diff --git a/arch/arm/src/stm32f7/stm32_allocateheap.c b/arch/arm/src/stm32f7/stm32_allocateheap.c index 628a83ff4fb..919890b8334 100644 --- a/arch/arm/src/stm32f7/stm32_allocateheap.c +++ b/arch/arm/src/stm32f7/stm32_allocateheap.c @@ -240,7 +240,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the user-space heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)ubase; *heap_size = usize; @@ -255,7 +255,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = SRAM1_END - g_idle_topstack; diff --git a/arch/arm/src/str71x/str71x_decodeirq.c b/arch/arm/src/str71x/str71x_decodeirq.c index 363590f2666..72e4da677cb 100644 --- a/arch/arm/src/str71x/str71x_decodeirq.c +++ b/arch/arm/src/str71x/str71x_decodeirq.c @@ -90,7 +90,7 @@ void up_decodeirq(uint32_t *regs) { #ifdef CONFIG_SUPPRESS_INTERRUPTS - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); lowsyslog(LOG_ERR, "Unexpected IRQ\n"); current_regs = regs; PANIC(); @@ -101,7 +101,7 @@ void up_decodeirq(uint32_t *regs) * info from CIC register without the setup). */ - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); irq = getreg32(STR71X_EIC_IVR); /* Verify that the resulting IRQ number is valid */ diff --git a/arch/arm/src/tiva/tiva_allocateheap.c b/arch/arm/src/tiva/tiva_allocateheap.c index 4bca5ff2bd7..06df87bb31b 100644 --- a/arch/arm/src/tiva/tiva_allocateheap.c +++ b/arch/arm/src/tiva/tiva_allocateheap.c @@ -131,7 +131,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the user-space heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)ubase; *heap_size = usize; @@ -142,7 +142,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Return the heap settings */ - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; #endif diff --git a/arch/avr/src/avr/up_createstack.c b/arch/avr/src/avr/up_createstack.c index 3a30888ab6b..781258e702d 100644 --- a/arch/avr/src/avr/up_createstack.c +++ b/arch/avr/src/avr/up_createstack.c @@ -160,7 +160,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) tcb->adj_stack_ptr = (FAR void *)top_of_stack; tcb->adj_stack_size = stack_size; - board_led_on(LED_STACKCREATED); + board_autoled_on(LED_STACKCREATED); return OK; } diff --git a/arch/avr/src/avr/up_doirq.c b/arch/avr/src/avr/up_doirq.c index a6768cf1994..b692420a4d4 100644 --- a/arch/avr/src/avr/up_doirq.c +++ b/arch/avr/src/avr/up_doirq.c @@ -72,7 +72,7 @@ uint8_t *up_doirq(uint8_t irq, uint8_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/avr/src/avr/up_sigdeliver.c b/arch/avr/src/avr/up_sigdeliver.c index ae2d70f8e34..92604bcf14d 100644 --- a/arch/avr/src/avr/up_sigdeliver.c +++ b/arch/avr/src/avr/up_sigdeliver.c @@ -92,7 +92,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/avr/src/avr32/up_createstack.c b/arch/avr/src/avr32/up_createstack.c index f4ad76a679e..db76abc38d9 100644 --- a/arch/avr/src/avr32/up_createstack.c +++ b/arch/avr/src/avr32/up_createstack.c @@ -186,7 +186,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) tcb->adj_stack_ptr = (FAR void *)top_of_stack; tcb->adj_stack_size = size_of_stack; - board_led_on(LED_STACKCREATED); + board_autoled_on(LED_STACKCREATED); return OK; } diff --git a/arch/avr/src/avr32/up_doirq.c b/arch/avr/src/avr32/up_doirq.c index ba0dfe4cca2..6acf3c9f099 100644 --- a/arch/avr/src/avr32/up_doirq.c +++ b/arch/avr/src/avr32/up_doirq.c @@ -74,7 +74,7 @@ uint32_t *up_doirq(int irq, uint32_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/avr/src/avr32/up_sigdeliver.c b/arch/avr/src/avr32/up_sigdeliver.c index 691fe8cc8fc..e4be7e7d164 100644 --- a/arch/avr/src/avr32/up_sigdeliver.c +++ b/arch/avr/src/avr32/up_sigdeliver.c @@ -96,7 +96,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/avr/src/common/up_allocateheap.c b/arch/avr/src/common/up_allocateheap.c index 7e2c03022a2..052876f6740 100644 --- a/arch/avr/src/common/up_allocateheap.c +++ b/arch/avr/src/common/up_allocateheap.c @@ -82,7 +82,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; } diff --git a/arch/avr/src/common/up_assert.c b/arch/avr/src/common/up_assert.c index a1a22956856..cddb4a7c861 100644 --- a/arch/avr/src/common/up_assert.c +++ b/arch/avr/src/common/up_assert.c @@ -111,7 +111,7 @@ static void _up_assert(int errorcode) for (; ; ) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -163,7 +163,7 @@ void up_assert(const uint8_t *filename, int lineno) struct tcb_s *rtcb = (struct tcb_s *)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_PRINT_TASKNAME lldbg("Assertion failed at file:%s line: %d task: %s\n", diff --git a/arch/avr/src/common/up_initialize.c b/arch/avr/src/common/up_initialize.c index fdd05dd72f2..f44b421c6d0 100644 --- a/arch/avr/src/common/up_initialize.c +++ b/arch/avr/src/common/up_initialize.c @@ -286,6 +286,6 @@ void up_initialize(void) up_usbinitialize(); - board_led_on(LED_IRQSENABLED); + board_autoled_on(LED_IRQSENABLED); } diff --git a/arch/hc/src/common/up_allocateheap.c b/arch/hc/src/common/up_allocateheap.c index fb1a24f177d..946fbf69ec1 100644 --- a/arch/hc/src/common/up_allocateheap.c +++ b/arch/hc/src/common/up_allocateheap.c @@ -81,7 +81,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void*)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; } diff --git a/arch/hc/src/common/up_createstack.c b/arch/hc/src/common/up_createstack.c index 278a643f7bc..9afb471e470 100644 --- a/arch/hc/src/common/up_createstack.c +++ b/arch/hc/src/common/up_createstack.c @@ -185,7 +185,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) tcb->adj_stack_ptr = (uint32_t*)top_of_stack; tcb->adj_stack_size = size_of_stack; - board_led_on(LED_STACKCREATED); + board_autoled_on(LED_STACKCREATED); return OK; } diff --git a/arch/hc/src/common/up_doirq.c b/arch/hc/src/common/up_doirq.c index 1a81731dc04..a0cb7998aa2 100644 --- a/arch/hc/src/common/up_doirq.c +++ b/arch/hc/src/common/up_doirq.c @@ -74,7 +74,7 @@ uint8_t *up_doirq(int irq, uint8_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/hc/src/common/up_initialize.c b/arch/hc/src/common/up_initialize.c index 315064354f6..5628c3aaecd 100644 --- a/arch/hc/src/common/up_initialize.c +++ b/arch/hc/src/common/up_initialize.c @@ -210,5 +210,5 @@ void up_initialize(void) up_usbinitialize(); - board_led_on(LED_IRQSENABLED); + board_autoled_on(LED_IRQSENABLED); } diff --git a/arch/hc/src/m9s12/m9s12_assert.c b/arch/hc/src/m9s12/m9s12_assert.c index efc5d6492a0..a99da66185d 100644 --- a/arch/hc/src/m9s12/m9s12_assert.c +++ b/arch/hc/src/m9s12/m9s12_assert.c @@ -299,7 +299,7 @@ static void _up_assert(int errorcode) for (;;) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -326,7 +326,7 @@ void up_assert(const uint8_t *filename, int lineno) struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_PRINT_TASKNAME lldbg("Assertion failed at file:%s line: %d task: %s\n", diff --git a/arch/mips/src/common/up_allocateheap.c b/arch/mips/src/common/up_allocateheap.c index 1e99b86ceeb..7bcb04de738 100644 --- a/arch/mips/src/common/up_allocateheap.c +++ b/arch/mips/src/common/up_allocateheap.c @@ -82,7 +82,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void *)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; } diff --git a/arch/mips/src/common/up_createstack.c b/arch/mips/src/common/up_createstack.c index 541633683b9..5540b8bc4f8 100644 --- a/arch/mips/src/common/up_createstack.c +++ b/arch/mips/src/common/up_createstack.c @@ -206,7 +206,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) tcb->adj_stack_ptr = (FAR uint32_t *)top_of_stack; tcb->adj_stack_size = size_of_stack; - board_led_on(LED_STACKCREATED); + board_autoled_on(LED_STACKCREATED); return OK; } diff --git a/arch/mips/src/common/up_initialize.c b/arch/mips/src/common/up_initialize.c index 4ee09a2acac..1274772249a 100644 --- a/arch/mips/src/common/up_initialize.c +++ b/arch/mips/src/common/up_initialize.c @@ -211,5 +211,5 @@ void up_initialize(void) /* Initialize USB -- device and/or host */ up_usbinitialize(); - board_led_on(LED_IRQSENABLED); + board_autoled_on(LED_IRQSENABLED); } diff --git a/arch/mips/src/mips32/up_assert.c b/arch/mips/src/mips32/up_assert.c index 3ddb82a87d3..a02750874e3 100644 --- a/arch/mips/src/mips32/up_assert.c +++ b/arch/mips/src/mips32/up_assert.c @@ -111,7 +111,7 @@ static void _up_assert(int errorcode) for (; ; ) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -163,7 +163,7 @@ void up_assert(const uint8_t *filename, int lineno) struct tcb_s *rtcb = (struct tcb_s *)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_PRINT_TASKNAME lldbg("Assertion failed at file:%s line: %d task: %s\n", diff --git a/arch/mips/src/mips32/up_doirq.c b/arch/mips/src/mips32/up_doirq.c index 6c55ed9cc99..debc56b6421 100644 --- a/arch/mips/src/mips32/up_doirq.c +++ b/arch/mips/src/mips32/up_doirq.c @@ -74,7 +74,7 @@ uint32_t *up_doirq(int irq, uint32_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/mips/src/mips32/up_sigdeliver.c b/arch/mips/src/mips32/up_sigdeliver.c index 74c2c5b170d..d255b2b820f 100644 --- a/arch/mips/src/mips32/up_sigdeliver.c +++ b/arch/mips/src/mips32/up_sigdeliver.c @@ -94,7 +94,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/mips/src/pic32mx/pic32mx-decodeirq.c b/arch/mips/src/pic32mx/pic32mx-decodeirq.c index f9cf81d467e..24b13217651 100644 --- a/arch/mips/src/pic32mx/pic32mx-decodeirq.c +++ b/arch/mips/src/pic32mx/pic32mx-decodeirq.c @@ -97,7 +97,7 @@ uint32_t *pic32mx_decodeirq(uint32_t *regs) * processing an interrupt. */ - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); /* Save the current value of current_regs (to support nested interrupt * handling). Then set current_regs to regs, indicating that this is diff --git a/arch/mips/src/pic32mx/pic32mx-exception.c b/arch/mips/src/pic32mx/pic32mx-exception.c index aaf7b4805f4..0ca9bdfa3e8 100644 --- a/arch/mips/src/pic32mx/pic32mx-exception.c +++ b/arch/mips/src/pic32mx/pic32mx-exception.c @@ -94,7 +94,7 @@ uint32_t *pic32mx_exception(uint32_t *regs) * processing an interrupt. */ - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_DEBUG /* Get the cause of the exception from the CAUSE register */ diff --git a/arch/mips/src/pic32mz/pic32mz-decodeirq.c b/arch/mips/src/pic32mz/pic32mz-decodeirq.c index f2766ff3317..bcf35488f86 100644 --- a/arch/mips/src/pic32mz/pic32mz-decodeirq.c +++ b/arch/mips/src/pic32mz/pic32mz-decodeirq.c @@ -97,7 +97,7 @@ uint32_t *pic32mz_decodeirq(uint32_t *regs) * processing an interrupt. */ - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); /* Save the current value of current_regs (to support nested interrupt * handling). Then set current_regs to regs, indicating that this is diff --git a/arch/mips/src/pic32mz/pic32mz-exception.c b/arch/mips/src/pic32mz/pic32mz-exception.c index 81766676ac6..3b6b3bb3f46 100644 --- a/arch/mips/src/pic32mz/pic32mz-exception.c +++ b/arch/mips/src/pic32mz/pic32mz-exception.c @@ -94,7 +94,7 @@ uint32_t *pic32mz_exception(uint32_t *regs) * processing an interrupt. */ - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_DEBUG /* Get the cause of the exception from the CAUSE register */ diff --git a/arch/sh/src/common/up_allocateheap.c b/arch/sh/src/common/up_allocateheap.c index b1a2c818b6e..ddf287983a1 100644 --- a/arch/sh/src/common/up_allocateheap.c +++ b/arch/sh/src/common/up_allocateheap.c @@ -81,7 +81,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void*)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; } diff --git a/arch/sh/src/common/up_assert.c b/arch/sh/src/common/up_assert.c index 9568b33ae0f..2a3b89eaeb9 100644 --- a/arch/sh/src/common/up_assert.c +++ b/arch/sh/src/common/up_assert.c @@ -99,7 +99,7 @@ static void _up_assert(int errorcode) for (;;) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -151,7 +151,7 @@ void up_assert(const uint8_t *filename, int lineno) struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #if CONFIG_TASK_NAME_SIZE > 0 lldbg("Assertion failed at file:%s line: %d task: %s\n", diff --git a/arch/sh/src/common/up_createstack.c b/arch/sh/src/common/up_createstack.c index 825efb8cf3b..f52f03386ed 100644 --- a/arch/sh/src/common/up_createstack.c +++ b/arch/sh/src/common/up_createstack.c @@ -185,7 +185,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) tcb->adj_stack_ptr = (uint32_t*)top_of_stack; tcb->adj_stack_size = size_of_stack; - board_led_on(LED_STACKCREATED); + board_autoled_on(LED_STACKCREATED); return OK; } diff --git a/arch/sh/src/common/up_doirq.c b/arch/sh/src/common/up_doirq.c index 6c9854ba754..530a6e41af2 100644 --- a/arch/sh/src/common/up_doirq.c +++ b/arch/sh/src/common/up_doirq.c @@ -73,7 +73,7 @@ uint32_t *up_doirq(int irq, uint32_t* regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/sh/src/common/up_initialize.c b/arch/sh/src/common/up_initialize.c index fb38f4a8288..f4e067489f8 100644 --- a/arch/sh/src/common/up_initialize.c +++ b/arch/sh/src/common/up_initialize.c @@ -200,5 +200,5 @@ void up_initialize(void) up_usbinitialize(); - board_led_on(LED_IRQSENABLED); + board_autoled_on(LED_IRQSENABLED); } diff --git a/arch/sh/src/m16c/m16c_sigdeliver.c b/arch/sh/src/m16c/m16c_sigdeliver.c index 817d3bc02d4..e27ef794522 100644 --- a/arch/sh/src/m16c/m16c_sigdeliver.c +++ b/arch/sh/src/m16c/m16c_sigdeliver.c @@ -93,7 +93,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/sh/src/sh1/sh1_sigdeliver.c b/arch/sh/src/sh1/sh1_sigdeliver.c index c395d49c6ac..7d53f29c654 100644 --- a/arch/sh/src/sh1/sh1_sigdeliver.c +++ b/arch/sh/src/sh1/sh1_sigdeliver.c @@ -93,7 +93,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/x86/src/common/up_allocateheap.c b/arch/x86/src/common/up_allocateheap.c index 22b1ed5ba35..5fb0a9f288f 100644 --- a/arch/x86/src/common/up_allocateheap.c +++ b/arch/x86/src/common/up_allocateheap.c @@ -82,7 +82,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); *heap_start = (FAR void*)g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack; } diff --git a/arch/x86/src/common/up_assert.c b/arch/x86/src/common/up_assert.c index a3b82d3b7f4..025f121f125 100644 --- a/arch/x86/src/common/up_assert.c +++ b/arch/x86/src/common/up_assert.c @@ -261,7 +261,7 @@ static void _up_assert(int errorcode) for (;;) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -288,7 +288,7 @@ void up_assert(const uint8_t *filename, int lineno) struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_PRINT_TASKNAME lldbg("Assertion failed at file:%s line: %d task: %s\n", diff --git a/arch/x86/src/common/up_initialize.c b/arch/x86/src/common/up_initialize.c index f720c2ae107..21d4eba7cb7 100644 --- a/arch/x86/src/common/up_initialize.c +++ b/arch/x86/src/common/up_initialize.c @@ -211,5 +211,5 @@ void up_initialize(void) /* Initialize USB -- device and/or host */ up_usbinitialize(); - board_led_on(LED_IRQSENABLED); + board_autoled_on(LED_IRQSENABLED); } diff --git a/arch/x86/src/i486/up_createstack.c b/arch/x86/src/i486/up_createstack.c index 8a7146f32a1..1d9b1008d09 100644 --- a/arch/x86/src/i486/up_createstack.c +++ b/arch/x86/src/i486/up_createstack.c @@ -185,7 +185,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) tcb->adj_stack_ptr = (uint32_t*)top_of_stack; tcb->adj_stack_size = size_of_stack; - board_led_on(LED_STACKCREATED); + board_autoled_on(LED_STACKCREATED); return OK; } diff --git a/arch/x86/src/i486/up_sigdeliver.c b/arch/x86/src/i486/up_sigdeliver.c index 0996e7eb92f..4824bbb4737 100644 --- a/arch/x86/src/i486/up_sigdeliver.c +++ b/arch/x86/src/i486/up_sigdeliver.c @@ -93,7 +93,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/x86/src/qemu/qemu_handlers.c b/arch/x86/src/qemu/qemu_handlers.c index fce1969faa5..26a2de452ac 100644 --- a/arch/x86/src/qemu/qemu_handlers.c +++ b/arch/x86/src/qemu/qemu_handlers.c @@ -88,7 +88,7 @@ static void idt_outb(uint8_t val, uint16_t addr) #ifndef CONFIG_SUPPRESS_INTERRUPTS static uint32_t *common_handler(int irq, uint32_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); /* Current regs non-zero indicates that we are processing an interrupt; * current_regs is also used to manage interrupt level context switches. @@ -163,7 +163,7 @@ static uint32_t *common_handler(int irq, uint32_t *regs) uint32_t *isr_handler(uint32_t *regs) { #ifdef CONFIG_SUPPRESS_INTERRUPTS - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); PANIC(); /* Doesn't return */ return regs; /* To keep the compiler happy */ #else @@ -171,7 +171,7 @@ uint32_t *isr_handler(uint32_t *regs) /* Dispatch the interrupt */ - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); ret = common_handler((int)regs[REG_IRQNO], regs); board_led_off(LED_INIRQ); return ret; @@ -189,14 +189,14 @@ uint32_t *isr_handler(uint32_t *regs) uint32_t *irq_handler(uint32_t *regs) { #ifdef CONFIG_SUPPRESS_INTERRUPTS - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); PANIC(); /* Doesn't return */ return regs; /* To keep the compiler happy */ #else uint32_t *ret; int irq; - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); /* Get the IRQ number */ diff --git a/arch/z16/src/common/up_allocateheap.c b/arch/z16/src/common/up_allocateheap.c index 57a4ade72e2..f307a8a73e2 100644 --- a/arch/z16/src/common/up_allocateheap.c +++ b/arch/z16/src/common/up_allocateheap.c @@ -92,7 +92,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { *heap_start = (FAR void*)CONFIG_HEAP1_BASE; *heap_size = CONFIG_HEAP1_END - CONFIG_HEAP1_BASE; - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); } /**************************************************************************** diff --git a/arch/z16/src/common/up_assert.c b/arch/z16/src/common/up_assert.c index 55d98535785..cf55172dca8 100644 --- a/arch/z16/src/common/up_assert.c +++ b/arch/z16/src/common/up_assert.c @@ -98,7 +98,7 @@ static void _up_assert(int errorcode) /* noreturn_function */ for (;;) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -154,7 +154,7 @@ void up_assert(void) struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_HAVE_FILENAME #if CONFIG_TASK_NAME_SIZE > 0 diff --git a/arch/z16/src/common/up_createstack.c b/arch/z16/src/common/up_createstack.c index e395bae4369..c4d55370408 100644 --- a/arch/z16/src/common/up_createstack.c +++ b/arch/z16/src/common/up_createstack.c @@ -166,7 +166,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) tcb->adj_stack_ptr = (uint32_t*)top_of_stack; tcb->adj_stack_size = size_of_stack; - board_led_on(LED_STACKCREATED); + board_autoled_on(LED_STACKCREATED); return OK; } diff --git a/arch/z16/src/common/up_doirq.c b/arch/z16/src/common/up_doirq.c index 9d9a38361d5..38f89c49e0d 100644 --- a/arch/z16/src/common/up_doirq.c +++ b/arch/z16/src/common/up_doirq.c @@ -82,7 +82,7 @@ FAR chipreg_t *up_doirq(int irq, FAR chipreg_t *regs) { FAR chipreg_t *ret = regs; - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS PANIC(); #else diff --git a/arch/z16/src/common/up_idle.c b/arch/z16/src/common/up_idle.c index 8bbbc7c04b6..364fd615e94 100644 --- a/arch/z16/src/common/up_idle.c +++ b/arch/z16/src/common/up_idle.c @@ -88,7 +88,7 @@ void up_idle(void) g_ledtoggle++; if (g_ledtoggle == 0x80) { - board_led_on(LED_IDLE); + board_autoled_on(LED_IDLE); } else if (g_ledtoggle == 0x00) { diff --git a/arch/z16/src/common/up_initialize.c b/arch/z16/src/common/up_initialize.c index 79cf4617ed0..747d448b0cb 100644 --- a/arch/z16/src/common/up_initialize.c +++ b/arch/z16/src/common/up_initialize.c @@ -212,5 +212,5 @@ void up_initialize(void) (void)tun_initialize(); #endif - board_led_on(LED_IRQSENABLED); + board_autoled_on(LED_IRQSENABLED); } diff --git a/arch/z16/src/common/up_sigdeliver.c b/arch/z16/src/common/up_sigdeliver.c index d1113addc55..893a7661213 100644 --- a/arch/z16/src/common/up_sigdeliver.c +++ b/arch/z16/src/common/up_sigdeliver.c @@ -94,7 +94,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/z80/src/common/up_allocateheap.c b/arch/z80/src/common/up_allocateheap.c index 4cb3b02ff61..7ea677c5f94 100644 --- a/arch/z80/src/common/up_allocateheap.c +++ b/arch/z80/src/common/up_allocateheap.c @@ -101,7 +101,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { *heap_start = (FAR void*)CONFIG_HEAP1_BASE; *heap_size = CONFIG_HEAP1_END - CONFIG_HEAP1_BASE; - board_led_on(LED_HEAPALLOCATE); + board_autoled_on(LED_HEAPALLOCATE); } /**************************************************************************** diff --git a/arch/z80/src/common/up_assert.c b/arch/z80/src/common/up_assert.c index be886dc44db..f6d92719a5e 100644 --- a/arch/z80/src/common/up_assert.c +++ b/arch/z80/src/common/up_assert.c @@ -97,7 +97,7 @@ static void _up_assert(int errorcode) /* noreturn_function */ for (;;) { #ifdef CONFIG_ARCH_LEDS - board_led_on(LED_PANIC); + board_autoled_on(LED_PANIC); up_mdelay(250); board_led_off(LED_PANIC); up_mdelay(250); @@ -153,7 +153,7 @@ void up_assert(void) struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head; #endif - board_led_on(LED_ASSERTION); + board_autoled_on(LED_ASSERTION); #ifdef CONFIG_HAVE_FILENAME #if CONFIG_TASK_NAME_SIZE > 0 diff --git a/arch/z80/src/common/up_createstack.c b/arch/z80/src/common/up_createstack.c index e3880a0c612..60c4733d99e 100644 --- a/arch/z80/src/common/up_createstack.c +++ b/arch/z80/src/common/up_createstack.c @@ -184,7 +184,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) tcb->adj_stack_ptr = (uint32_t*)top_of_stack; tcb->adj_stack_size = size_of_stack; - board_led_on(LED_STACKCREATED); + board_autoled_on(LED_STACKCREATED); return OK; } diff --git a/arch/z80/src/common/up_doirq.c b/arch/z80/src/common/up_doirq.c index f123782c2c7..bd9d0adbc3b 100644 --- a/arch/z80/src/common/up_doirq.c +++ b/arch/z80/src/common/up_doirq.c @@ -74,7 +74,7 @@ FAR chipreg_t *up_doirq(uint8_t irq, FAR chipreg_t *regs) { - board_led_on(LED_INIRQ); + board_autoled_on(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS diff --git a/arch/z80/src/common/up_idle.c b/arch/z80/src/common/up_idle.c index 29ac104df02..bb6c028a797 100644 --- a/arch/z80/src/common/up_idle.c +++ b/arch/z80/src/common/up_idle.c @@ -88,7 +88,7 @@ void up_idle(void) g_ledtoggle++; if (g_ledtoggle == 0x80) { - board_led_on(LED_IDLE); + board_autoled_on(LED_IDLE); } else if (g_ledtoggle == 0x00) { diff --git a/arch/z80/src/common/up_initialize.c b/arch/z80/src/common/up_initialize.c index 12e5cff6d85..2bc7420c391 100644 --- a/arch/z80/src/common/up_initialize.c +++ b/arch/z80/src/common/up_initialize.c @@ -195,5 +195,5 @@ void up_initialize(void) (void)tun_initialize(); #endif - board_led_on(LED_IRQSENABLED); + board_autoled_on(LED_IRQSENABLED); } diff --git a/arch/z80/src/ez80/ez80_sigdeliver.c b/arch/z80/src/ez80/ez80_sigdeliver.c index 3b3f5ec8605..a9a2e3f3c6d 100644 --- a/arch/z80/src/ez80/ez80_sigdeliver.c +++ b/arch/z80/src/ez80/ez80_sigdeliver.c @@ -93,7 +93,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/z80/src/z180/z180_sigdeliver.c b/arch/z80/src/z180/z180_sigdeliver.c index 484508e831f..35b1647f21a 100644 --- a/arch/z80/src/z180/z180_sigdeliver.c +++ b/arch/z80/src/z180/z180_sigdeliver.c @@ -92,7 +92,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/z80/src/z8/z8_sigdeliver.c b/arch/z80/src/z8/z8_sigdeliver.c index fed589ef775..ea2a589d301 100644 --- a/arch/z80/src/z8/z8_sigdeliver.c +++ b/arch/z80/src/z8/z8_sigdeliver.c @@ -107,7 +107,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); diff --git a/arch/z80/src/z80/z80_sigdeliver.c b/arch/z80/src/z80/z80_sigdeliver.c index 60058879b58..0e19072b5fa 100644 --- a/arch/z80/src/z80/z80_sigdeliver.c +++ b/arch/z80/src/z80/z80_sigdeliver.c @@ -92,7 +92,7 @@ void up_sigdeliver(void) int saved_errno = rtcb->pterrno; - board_led_on(LED_SIGNAL); + board_autoled_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);