rename up_led*() functions to board_led_*()

This commit is contained in:
Gregory Nutt
2014-01-24 14:28:49 -06:00
parent 58d53a3599
commit a26b03d0d0
115 changed files with 1347 additions and 1347 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{
*heap_start = (FAR void*)UP_HEAP1_BASE;
*heap_size = UP_HEAP1_END - UP_HEAP1_BASE;
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
}
#if CONFIG_MM_REGIONS > 1
+3 -3
View File
@@ -76,9 +76,9 @@ static void _up_assert(int errorcode)
for(;;)
{
#ifdef CONFIG_ARCH_LEDS
up_ledon(LED_PANIC);
board_led_on(LED_PANIC);
up_delay(250);
up_ledoff(LED_PANIC);
board_led_off(LED_PANIC);
up_delay(250);
#endif
}
@@ -103,7 +103,7 @@ void up_assert(const uint8_t *filename, int lineno)
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
#endif
up_ledon(LED_ASSERTION);
board_led_on(LED_ASSERTION);
#if CONFIG_TASK_NAME_SIZE > 0
lldbg("Assertion failed at file:%s line: %d task: %s\n",
+3 -3
View File
@@ -137,7 +137,7 @@ start:
mov sp, #(STACK_BASE-1)
#ifdef CONFIG_ARCH_LEDS
lcall _up_ledinit
lcall _board_led_initialize
#endif
ljmp _os_start
@@ -251,7 +251,7 @@ _up_timer0join:
#ifdef CONFIG_ARCH_LEDS
mov dpl, #LED_INIRQ
lcall _up_ledon
lcall _board_led_on
#endif
/* Save the IRQ number in r2 */
@@ -443,7 +443,7 @@ _up_timer0join:
push dpl
push dph
mov dpl, #LED_INIRQ
lcall _up_ledoff
lcall _board_led_off
pop dph
pop dpl
#endif
+2 -2
View File
@@ -85,11 +85,11 @@ void up_idle(void)
g_ledtoggle++;
if (g_ledtoggle == 0x80)
{
up_ledon(LED_IDLE);
board_led_on(LED_IDLE);
}
else if (g_ledtoggle == 0x00)
{
up_ledoff(LED_IDLE);
board_led_off(LED_IDLE);
}
#endif
}
+1 -1
View File
@@ -139,6 +139,6 @@ void up_initialize(void)
up_timerinit();
#endif
up_ledon(LED_IRQSENABLED);
board_led_on(LED_IRQSENABLED);
}
+6 -6
View File
@@ -139,13 +139,13 @@ extern void up_dumpframe(FAR struct xcptcontext *context);
/* Defined in board/up_leds.c */
#ifdef CONFIG_ARCH_LEDS
extern void up_ledinit(void);
extern void up_ledon(uint8_t led);
extern void up_ledoff(uint8_t led);
extern void board_led_initialize(void);
extern void board_led_on(uint8_t led);
extern void board_led_off(uint8_t 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
#endif /* __ASSEMBLY */
+4 -4
View File
@@ -251,23 +251,23 @@ void up_dumpframe(FAR struct xcptcontext *context)
}
/************************************************************************
* Name: up_ledinit, up_ledon, up_ledoff
* Name: board_led_initialize, board_led_on, board_led_off
*
* Description:
* "Fake" LED routines if needed
*
************************************************************************/
void up_ledinit(void)
void board_led_initialize(void)
{
}
void up_ledon(uint8_t led)
void board_led_on(uint8_t led)
{
led;
}
void up_ledoff(uint8_t led)
void board_led_off(uint8_t led)
{
led;
}
+3 -3
View File
@@ -263,9 +263,9 @@ static void _up_assert(int errorcode)
for(;;)
{
#ifdef CONFIG_ARCH_LEDS
up_ledon(LED_PANIC);
board_led_on(LED_PANIC);
up_mdelay(250);
up_ledoff(LED_PANIC);
board_led_off(LED_PANIC);
up_mdelay(250);
#endif
}
@@ -290,7 +290,7 @@ void up_assert(const uint8_t *filename, int lineno)
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
#endif
up_ledon(LED_ASSERTION);
board_led_on(LED_ASSERTION);
#ifdef CONFIG_PRINT_TASKNAME
lldbg("Assertion failed at file:%s line: %d task: %s\n",
+2 -2
View File
@@ -72,7 +72,7 @@
void up_doirq(int irq, uint32_t *regs)
{
up_ledon(LED_INIRQ);
board_led_on(LED_INIRQ);
#ifdef CONFIG_SUPPRESS_INTERRUPTS
PANIC();
#else
@@ -112,5 +112,5 @@ void up_doirq(int irq, uint32_t *regs)
up_enable_irq(irq);
#endif
up_ledoff(LED_INIRQ);
board_led_off(LED_INIRQ);
}
+1 -1
View File
@@ -125,7 +125,7 @@ __start:
/* Initialize onboard LEDs */
#ifdef CONFIG_ARCH_LEDS
bl up_ledinit
bl board_led_initialize
#endif
#ifdef CONFIG_DEBUG_STACK
+2 -2
View File
@@ -92,7 +92,7 @@ void up_sigdeliver(void)
int saved_errno = rtcb->pterrno;
up_ledon(LED_SIGNAL);
board_led_on(LED_SIGNAL);
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
@@ -131,7 +131,7 @@ void up_sigdeliver(void)
/* Then restore the correct state for this thread of execution. */
up_ledoff(LED_SIGNAL);
board_led_off(LED_SIGNAL);
up_fullcontextrestore(regs);
}
+3 -3
View File
@@ -279,9 +279,9 @@ static void _up_assert(int errorcode)
for(;;)
{
#ifdef CONFIG_ARCH_LEDS
up_ledon(LED_PANIC);
board_led_on(LED_PANIC);
up_mdelay(250);
up_ledoff(LED_PANIC);
board_led_off(LED_PANIC);
up_mdelay(250);
#endif
}
@@ -306,7 +306,7 @@ void up_assert(const uint8_t *filename, int lineno)
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
#endif
up_ledon(LED_ASSERTION);
board_led_on(LED_ASSERTION);
#ifdef CONFIG_PRINT_TASKNAME
lldbg("Assertion failed at file:%s line: %d task: %s\n",
+2 -2
View File
@@ -72,7 +72,7 @@
uint32_t *up_doirq(int irq, uint32_t *regs)
{
up_ledon(LED_INIRQ);
board_led_on(LED_INIRQ);
#ifdef CONFIG_SUPPRESS_INTERRUPTS
PANIC();
#else
@@ -116,6 +116,6 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
current_regs = savestate;
#endif
up_ledoff(LED_INIRQ);
board_led_off(LED_INIRQ);
return regs;
}
+2 -2
View File
@@ -97,7 +97,7 @@ void up_sigdeliver(void)
int saved_errno = rtcb->pterrno;
up_ledon(LED_SIGNAL);
board_led_on(LED_SIGNAL);
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
@@ -139,7 +139,7 @@ void up_sigdeliver(void)
* execution.
*/
up_ledoff(LED_SIGNAL);
board_led_off(LED_SIGNAL);
up_fullcontextrestore(regs);
}
+3 -3
View File
@@ -273,9 +273,9 @@ static void _up_assert(int errorcode)
for(;;)
{
#ifdef CONFIG_ARCH_LEDS
up_ledon(LED_PANIC);
board_led_on(LED_PANIC);
up_mdelay(250);
up_ledoff(LED_PANIC);
board_led_off(LED_PANIC);
up_mdelay(250);
#endif
}
@@ -299,7 +299,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
up_ledon(LED_ASSERTION);
board_led_on(LED_ASSERTION);
#ifdef CONFIG_PRINT_TASKNAME
lldbg("Assertion failed at file:%s line: %d task: %s\n",
+2 -2
View File
@@ -72,7 +72,7 @@
uint32_t *arm_doirq(int irq, uint32_t *regs)
{
up_ledon(LED_INIRQ);
board_led_on(LED_INIRQ);
#ifdef CONFIG_SUPPRESS_INTERRUPTS
PANIC();
#else
@@ -121,6 +121,6 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
up_enable_irq(irq);
#endif
up_ledoff(LED_INIRQ);
board_led_off(LED_INIRQ);
return regs;
}
+2 -2
View File
@@ -92,7 +92,7 @@ void up_sigdeliver(void)
int saved_errno = rtcb->pterrno;
up_ledon(LED_SIGNAL);
board_led_on(LED_SIGNAL);
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
@@ -131,7 +131,7 @@ void up_sigdeliver(void)
/* Then restore the correct state for this thread of execution. */
up_ledoff(LED_SIGNAL);
board_led_off(LED_SIGNAL);
up_fullcontextrestore(regs);
}
+3 -3
View File
@@ -290,9 +290,9 @@ static void _up_assert(int errorcode)
for(;;)
{
#ifdef CONFIG_ARCH_LEDS
up_ledon(LED_PANIC);
board_led_on(LED_PANIC);
up_mdelay(250);
up_ledoff(LED_PANIC);
board_led_off(LED_PANIC);
up_mdelay(250);
#endif
}
@@ -317,7 +317,7 @@ void up_assert(const uint8_t *filename, int lineno)
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
#endif
up_ledon(LED_ASSERTION);
board_led_on(LED_ASSERTION);
#ifdef CONFIG_PRINT_TASKNAME
lldbg("Assertion failed at file:%s line: %d task: %s\n",
+2 -2
View File
@@ -72,7 +72,7 @@
uint32_t *up_doirq(int irq, uint32_t *regs)
{
up_ledon(LED_INIRQ);
board_led_on(LED_INIRQ);
#ifdef CONFIG_SUPPRESS_INTERRUPTS
PANIC();
#else
@@ -116,6 +116,6 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
current_regs = savestate;
#endif
up_ledoff(LED_INIRQ);
board_led_off(LED_INIRQ);
return regs;
}
+2 -2
View File
@@ -92,7 +92,7 @@ void up_sigdeliver(void)
int saved_errno = rtcb->pterrno;
up_ledon(LED_SIGNAL);
board_led_on(LED_SIGNAL);
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
@@ -142,7 +142,7 @@ void up_sigdeliver(void)
* execution.
*/
up_ledoff(LED_SIGNAL);
board_led_off(LED_SIGNAL);
up_fullcontextrestore(regs);
}
+2 -2
View File
@@ -118,14 +118,14 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the user-space heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)ubase;
*heap_size = usize;
#else
/* Return the heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif
+1 -1
View File
@@ -226,7 +226,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
up_ledon(LED_STACKCREATED);
board_led_on(LED_STACKCREATED);
return OK;
}
+1 -1
View File
@@ -207,5 +207,5 @@ void up_initialize(void)
/* Initialize USB -- device and/or host */
up_usbinitialize();
up_ledon(LED_IRQSENABLED);
board_led_on(LED_IRQSENABLED);
}
+6 -6
View File
@@ -456,13 +456,13 @@ void up_wdtinit(void);
/* LED interfaces provided by board-level logic *****************************/
#ifdef CONFIG_ARCH_LEDS
void up_ledinit(void);
void up_ledon(int led);
void up_ledoff(int led);
void board_led_initialize(void);
void board_led_on(int led);
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
/* Networking ***************************************************************/
+1 -1
View File
@@ -84,7 +84,7 @@
void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = (DM320_SDRAM_VADDR + CONFIG_RAM_SIZE) - g_idle_topstack;
}
+1 -1
View File
@@ -227,7 +227,7 @@ void up_boot(void)
/* Set up the board-specific LEDs */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Perform early serial initialization */
+2 -2
View File
@@ -57,8 +57,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()
+1 -1
View File
@@ -85,7 +85,7 @@
void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = (IMX_SDRAM_VSECTION + CONFIG_RAM_SIZE) - g_idle_topstack;
}
+1 -1
View File
@@ -215,7 +215,7 @@ void up_boot(void)
/* Set up the board-specific LEDs */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
board_led_initialize();
#endif
/* Perform early serial initialization */
+2 -2
View File
@@ -130,7 +130,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the user-space heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)ubase;
*heap_size = usize;
@@ -141,7 +141,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif
+2 -2
View File
@@ -52,8 +52,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()
+2 -2
View File
@@ -57,8 +57,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()
+2 -2
View File
@@ -130,7 +130,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the user-space heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)ubase;
*heap_size = usize;
@@ -141,7 +141,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif
+2 -2
View File
@@ -240,7 +240,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the user-space heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)ubase;
*heap_size = usize;
@@ -251,7 +251,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif
+2 -2
View File
@@ -54,8 +54,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()
+1 -1
View File
@@ -592,7 +592,7 @@ __start:
/* Initialize onboard LEDs */
#ifdef CONFIG_ARCH_LEDS
bl up_ledinit
bl board_led_initialize
#endif
/* Then jump to OS entry */
+1 -1
View File
@@ -192,7 +192,7 @@ __start:
/* Initialize onboard LEDs */
#ifdef CONFIG_ARCH_LEDS
bl up_ledinit
bl board_led_initialize
#endif
/* Then jump to OS entry */
+1 -1
View File
@@ -179,7 +179,7 @@
void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = LPC31_HEAP_VEND - g_idle_topstack;
}
+1 -1
View File
@@ -247,7 +247,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{
/* Start with the first SRAM region */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_RAM_END - g_idle_topstack;
}
+2 -2
View File
@@ -56,8 +56,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()
+2 -2
View File
@@ -57,8 +57,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()
+2 -2
View File
@@ -229,7 +229,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the user-space heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)ubase;
*heap_size = usize;
@@ -240,7 +240,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif
+2 -2
View File
@@ -213,14 +213,14 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the user-space heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)ubase;
*heap_size = usize;
#else
/* Return the heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_RAM_VEND - g_idle_topstack;
#endif
+2 -2
View File
@@ -474,7 +474,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the user-space heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)ubase;
*heap_size = usize;
@@ -489,7 +489,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
/* Return the heap settings */
up_ledon(LED_HEAPALLOCATE);
board_led_on(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack;
*heap_size = SRAM1_END - g_idle_topstack;
+2 -2
View File
@@ -58,8 +58,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()
+3 -3
View File
@@ -90,7 +90,7 @@
void up_decodeirq(uint32_t *regs)
{
#ifdef CONFIG_SUPPRESS_INTERRUPTS
up_ledon(LED_INIRQ);
board_led_on(LED_INIRQ);
lowsyslog("Unexpected IRQ\n");
current_regs = regs;
PANIC();
@@ -101,7 +101,7 @@ void up_decodeirq(uint32_t *regs)
* info from CIC register without the setup).
*/
up_ledon(LED_INIRQ);
board_led_on(LED_INIRQ);
irq = getreg32(STR71X_EIC_IVR);
/* Verify that the resulting IRQ number is valid */
@@ -142,6 +142,6 @@ void up_decodeirq(uint32_t *regs)
PANIC(); /* Normally never happens */
}
#endif
up_ledoff(LED_INIRQ);
board_led_off(LED_INIRQ);
#endif
}
+2 -2
View File
@@ -65,7 +65,7 @@
.globl up_earlyserialinit /* Early initialization of serial driver */
#endif
#ifdef CONFIG_ARCH_LEDS
.globl up_ledinit /* Boot LED setup */
.globl board_led_initialize /* Boot LED setup */
#endif
#ifdef CONFIG_DEBUG
.globl up_lowputc /* Low-level debug output */
@@ -570,7 +570,7 @@ ctor_end:
/* Initialize onboard LEDs */
#ifdef CONFIG_ARCH_LEDS
bl up_ledinit
bl board_led_initialize
#endif
/* Then jump to OS entry */
+1 -1
View File
@@ -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 = stack_size;
up_ledon(LED_STACKCREATED);
board_led_on(LED_STACKCREATED);
return OK;
}
+2 -2
View File
@@ -72,7 +72,7 @@
uint8_t *up_doirq(uint8_t irq, uint8_t *regs)
{
up_ledon(LED_INIRQ);
board_led_on(LED_INIRQ);
#ifdef CONFIG_SUPPRESS_INTERRUPTS
PANIC();
#else
@@ -112,7 +112,7 @@ uint8_t *up_doirq(uint8_t irq, uint8_t *regs)
current_regs = savestate;
#endif
up_ledoff(LED_INIRQ);
board_led_off(LED_INIRQ);
return regs;
}
+2 -2
View File
@@ -91,7 +91,7 @@ void up_sigdeliver(void)
int saved_errno = rtcb->pterrno;
up_ledon(LED_SIGNAL);
board_led_on(LED_SIGNAL);
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
@@ -146,7 +146,7 @@ void up_sigdeliver(void)
* to the size of register save structure size will protect its contents.
*/
up_ledoff(LED_SIGNAL);
board_led_off(LED_SIGNAL);
up_fullcontextrestore(regs);
}

Some files were not shown because too many files have changed in this diff Show More