mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Rename board_led_off to board_autoled_off
This commit is contained in:
@@ -318,7 +318,7 @@ static void _up_assert(int errorcode)
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -130,5 +130,5 @@ void up_doirq(int irq, uint32_t *regs)
|
||||
|
||||
current_regs = NULL;
|
||||
#endif
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ void up_sigdeliver(void)
|
||||
|
||||
/* Then restore the correct state for this thread of execution. */
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
}
|
||||
|
||||
|
||||
@@ -373,7 +373,7 @@ static void _up_assert(int errorcode)
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -116,6 +116,6 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
|
||||
|
||||
current_regs = savestate;
|
||||
#endif
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ void up_sigdeliver(void)
|
||||
* execution.
|
||||
*/
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
}
|
||||
|
||||
|
||||
@@ -373,7 +373,7 @@ static void _up_assert(int errorcode)
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -128,6 +128,6 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
|
||||
current_regs = NULL;
|
||||
#endif
|
||||
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ void up_sigdeliver(void)
|
||||
|
||||
/* Then restore the correct state for this thread of execution. */
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
}
|
||||
|
||||
|
||||
@@ -382,7 +382,7 @@ static void _up_assert(int errorcode)
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -116,6 +116,6 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
|
||||
|
||||
current_regs = savestate;
|
||||
#endif
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ void up_sigdeliver(void)
|
||||
* execution.
|
||||
*/
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
|
||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||
# define BEGIN_IDLE() board_autoled_on(LED_IDLE)
|
||||
# define END_IDLE() board_led_off(LED_IDLE)
|
||||
# define END_IDLE() board_autoled_off(LED_IDLE)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
# define END_IDLE()
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||
# define BEGIN_IDLE() board_autoled_on(LED_IDLE)
|
||||
# define END_IDLE() board_led_off(LED_IDLE)
|
||||
# define END_IDLE() board_autoled_off(LED_IDLE)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
# define END_IDLE()
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||
# define BEGIN_IDLE() board_autoled_on(LED_IDLE)
|
||||
# define END_IDLE() board_led_off(LED_IDLE)
|
||||
# define END_IDLE() board_autoled_off(LED_IDLE)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
# define END_IDLE()
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||
# define BEGIN_IDLE() board_autoled_on(LED_IDLE)
|
||||
# define END_IDLE() board_led_off(LED_IDLE)
|
||||
# define END_IDLE() board_autoled_off(LED_IDLE)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
# define END_IDLE()
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||
# define BEGIN_IDLE() board_autoled_on(LED_IDLE)
|
||||
# define END_IDLE() board_led_off(LED_IDLE)
|
||||
# define END_IDLE() board_autoled_off(LED_IDLE)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
# define END_IDLE()
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||
# define BEGIN_IDLE() board_autoled_on(LED_IDLE)
|
||||
# define END_IDLE() board_led_off(LED_IDLE)
|
||||
# define END_IDLE() board_autoled_off(LED_IDLE)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
# define END_IDLE()
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||
# define BEGIN_IDLE() board_autoled_on(LED_IDLE)
|
||||
# define END_IDLE() board_led_off(LED_IDLE)
|
||||
# define END_IDLE() board_autoled_off(LED_IDLE)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
# define END_IDLE()
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||
# define BEGIN_IDLE() board_autoled_on(LED_IDLE)
|
||||
# define END_IDLE() board_led_off(LED_IDLE)
|
||||
# define END_IDLE() board_autoled_off(LED_IDLE)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
# define END_IDLE()
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||
# define BEGIN_IDLE() board_autoled_on(LED_IDLE)
|
||||
# define END_IDLE() board_led_off(LED_IDLE)
|
||||
# define END_IDLE() board_autoled_off(LED_IDLE)
|
||||
#else
|
||||
# define BEGIN_IDLE()
|
||||
# define END_IDLE()
|
||||
|
||||
@@ -138,6 +138,6 @@ void up_decodeirq(uint32_t *regs)
|
||||
PANIC(); /* Normally never happens */
|
||||
}
|
||||
#endif
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ uint8_t *up_doirq(uint8_t irq, uint8_t *regs)
|
||||
|
||||
current_regs = savestate;
|
||||
#endif
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ void up_sigdeliver(void)
|
||||
* to the size of register save structure size will protect its contents.
|
||||
*/
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
|
||||
|
||||
current_regs = NULL;
|
||||
#endif
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ void up_sigdeliver(void)
|
||||
* to the size of register save structure size will protect its contents.
|
||||
*/
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ static void _up_assert(int errorcode)
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -133,6 +133,6 @@ uint8_t *up_doirq(int irq, uint8_t *regs)
|
||||
|
||||
current_regs = NULL;
|
||||
#endif
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
||||
@@ -301,7 +301,7 @@ static void _up_assert(int errorcode)
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ static void _up_assert(int errorcode)
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -143,6 +143,6 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
|
||||
|
||||
up_enable_irq(irq);
|
||||
#endif
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ void up_sigdeliver(void)
|
||||
* execution.
|
||||
*/
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
|
||||
/* up_fullcontextrestore() should not return but could if the software
|
||||
|
||||
@@ -189,11 +189,11 @@ uint32_t *pic32mx_decodeirq(uint32_t *regs)
|
||||
current_regs = savestate;
|
||||
if (current_regs == NULL)
|
||||
{
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
}
|
||||
#else
|
||||
current_regs = NULL;
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
#endif
|
||||
|
||||
return regs;
|
||||
|
||||
@@ -189,11 +189,11 @@ uint32_t *pic32mz_decodeirq(uint32_t *regs)
|
||||
current_regs = savestate;
|
||||
if (current_regs == NULL)
|
||||
{
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
}
|
||||
#else
|
||||
current_regs = NULL;
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
#endif
|
||||
|
||||
return regs;
|
||||
|
||||
@@ -101,7 +101,7 @@ static void _up_assert(int errorcode)
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ uint32_t *up_doirq(int irq, uint32_t* regs)
|
||||
current_regs = NULL;
|
||||
}
|
||||
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
#endif
|
||||
return regs;
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ void up_sigdeliver(void)
|
||||
* execution.
|
||||
*/
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ void up_sigdeliver(void)
|
||||
|
||||
/* Then restore the correct state for this thread of execution. */
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ static void _up_assert(int errorcode)
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ void up_sigdeliver(void)
|
||||
|
||||
/* Then restore the correct state for this thread of execution. */
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
}
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ uint32_t *isr_handler(uint32_t *regs)
|
||||
|
||||
board_autoled_on(LED_INIRQ);
|
||||
ret = common_handler((int)regs[REG_IRQNO], regs);
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
@@ -220,7 +220,7 @@ uint32_t *irq_handler(uint32_t *regs)
|
||||
/* Dispatch the interrupt */
|
||||
|
||||
ret = common_handler(irq, regs);
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ static void _up_assert(int errorcode) /* noreturn_function */
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ FAR chipreg_t *up_doirq(int irq, FAR chipreg_t *regs)
|
||||
current_regs = savestate;
|
||||
}
|
||||
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -92,7 +92,7 @@ void up_idle(void)
|
||||
}
|
||||
else if (g_ledtoggle == 0x00)
|
||||
{
|
||||
board_led_off(LED_IDLE);
|
||||
board_autoled_off(LED_IDLE);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ void up_sigdeliver(void)
|
||||
|
||||
/* Then restore the correct state for this thread of execution. */
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
SIGNAL_RETURN(regs);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ static void _up_assert(int errorcode) /* noreturn_function */
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_autoled_on(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
board_led_off(LED_PANIC);
|
||||
board_autoled_off(LED_PANIC);
|
||||
up_mdelay(250);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ FAR chipreg_t *up_doirq(uint8_t irq, FAR chipreg_t *regs)
|
||||
IRQ_LEAVE(irq);
|
||||
}
|
||||
|
||||
board_led_off(LED_INIRQ);
|
||||
board_autoled_off(LED_INIRQ);
|
||||
return regs;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ void up_idle(void)
|
||||
}
|
||||
else if (g_ledtoggle == 0x00)
|
||||
{
|
||||
board_led_off(LED_IDLE);
|
||||
board_autoled_off(LED_IDLE);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ void up_sigdeliver(void)
|
||||
* execution.
|
||||
*/
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
ez80_restorecontext(regs);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ void up_sigdeliver(void)
|
||||
|
||||
/* Then restore the correct state for this thread of execution. */
|
||||
|
||||
board_led_off(LED_SIGNAL);
|
||||
board_autoled_off(LED_SIGNAL);
|
||||
z180_restoreusercontext(regs);
|
||||
#endif
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user