mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
rename up_led*() functions to board_led_*()
This commit is contained in:
@@ -6515,4 +6515,7 @@
|
|||||||
* Rename up_buttons() to board_buttons() for the same reason (2014-
|
* Rename up_buttons() to board_buttons() for the same reason (2014-
|
||||||
1-14).
|
1-14).
|
||||||
* Rename up_irqbutton() to board_button_irq() (2014-1-24).
|
* 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).
|
||||||
|
|
||||||
|
|||||||
@@ -2679,13 +2679,13 @@ else
|
|||||||
/* Defined in board/up_leds.c */
|
/* Defined in board/up_leds.c */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
extern void up_ledinit(void);
|
extern void board_led_initialize(void);
|
||||||
extern void up_ledon(int led);
|
extern void board_led_on(int led);
|
||||||
extern void up_ledoff(int led);
|
extern void board_led_off(int led);
|
||||||
#else
|
#else
|
||||||
# define up_ledinit()
|
# define board_led_initialize()
|
||||||
# define up_ledon(led)
|
# define board_led_on(led)
|
||||||
# define up_ledoff(led)
|
# define board_led_off(led)
|
||||||
#endif
|
#endif
|
||||||
</pre></ul>
|
</pre></ul>
|
||||||
<p>
|
<p>
|
||||||
@@ -2693,14 +2693,14 @@ extern void up_ledoff(int led);
|
|||||||
<p>
|
<p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<code>void up_ledinit(void)</code> is called early in power-up initialization to initialize the LED hardware.
|
<code>void board_led_initialize(void)</code> is called early in power-up initialization to initialize the LED hardware.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>up_ledon(int led)</code> is called to instantiate the LED presentation of the event.
|
<code>board_led_on(int led)</code> is called to instantiate the LED presentation of the event.
|
||||||
The <code>led</code> argument is one of the definitions provided in <code><i><board-name></i>/include/board.h</code>.
|
The <code>led</code> argument is one of the definitions provided in <code><i><board-name></i>/include/board.h</code>.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>up_ledoff(int led</code>is called to terminate the LED presentation of the event.
|
<code>board_led_off(int led</code>is called to terminate the LED presentation of the event.
|
||||||
The <code>led</code> argument is one of the definitions provided in <code><i><board-name></i>/include/board.h</code>.
|
The <code>led</code> argument is one of the definitions provided in <code><i><board-name></i>/include/board.h</code>.
|
||||||
Note that only <code>LED_INIRQ</code>, <code>LED_SIGNAL</code>, <code>LED_ASSERTION</code>, and <code>LED_PANIC</code>
|
Note that only <code>LED_INIRQ</code>, <code>LED_SIGNAL</code>, <code>LED_ASSERTION</code>, and <code>LED_PANIC</code>
|
||||||
indications are terminated.
|
indications are terminated.
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
{
|
{
|
||||||
*heap_start = (FAR void*)UP_HEAP1_BASE;
|
*heap_start = (FAR void*)UP_HEAP1_BASE;
|
||||||
*heap_size = UP_HEAP1_END - 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
|
#if CONFIG_MM_REGIONS > 1
|
||||||
|
|||||||
@@ -76,9 +76,9 @@ static void _up_assert(int errorcode)
|
|||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
up_ledon(LED_PANIC);
|
board_led_on(LED_PANIC);
|
||||||
up_delay(250);
|
up_delay(250);
|
||||||
up_ledoff(LED_PANIC);
|
board_led_off(LED_PANIC);
|
||||||
up_delay(250);
|
up_delay(250);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -103,7 +103,7 @@ void up_assert(const uint8_t *filename, int lineno)
|
|||||||
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
up_ledon(LED_ASSERTION);
|
board_led_on(LED_ASSERTION);
|
||||||
|
|
||||||
#if CONFIG_TASK_NAME_SIZE > 0
|
#if CONFIG_TASK_NAME_SIZE > 0
|
||||||
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ start:
|
|||||||
mov sp, #(STACK_BASE-1)
|
mov sp, #(STACK_BASE-1)
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
lcall _up_ledinit
|
lcall _board_led_initialize
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ljmp _os_start
|
ljmp _os_start
|
||||||
@@ -251,7 +251,7 @@ _up_timer0join:
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
mov dpl, #LED_INIRQ
|
mov dpl, #LED_INIRQ
|
||||||
lcall _up_ledon
|
lcall _board_led_on
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Save the IRQ number in r2 */
|
/* Save the IRQ number in r2 */
|
||||||
@@ -443,7 +443,7 @@ _up_timer0join:
|
|||||||
push dpl
|
push dpl
|
||||||
push dph
|
push dph
|
||||||
mov dpl, #LED_INIRQ
|
mov dpl, #LED_INIRQ
|
||||||
lcall _up_ledoff
|
lcall _board_led_off
|
||||||
pop dph
|
pop dph
|
||||||
pop dpl
|
pop dpl
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -85,11 +85,11 @@ void up_idle(void)
|
|||||||
g_ledtoggle++;
|
g_ledtoggle++;
|
||||||
if (g_ledtoggle == 0x80)
|
if (g_ledtoggle == 0x80)
|
||||||
{
|
{
|
||||||
up_ledon(LED_IDLE);
|
board_led_on(LED_IDLE);
|
||||||
}
|
}
|
||||||
else if (g_ledtoggle == 0x00)
|
else if (g_ledtoggle == 0x00)
|
||||||
{
|
{
|
||||||
up_ledoff(LED_IDLE);
|
board_led_off(LED_IDLE);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,6 +139,6 @@ void up_initialize(void)
|
|||||||
up_timerinit();
|
up_timerinit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
up_ledon(LED_IRQSENABLED);
|
board_led_on(LED_IRQSENABLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -139,13 +139,13 @@ extern void up_dumpframe(FAR struct xcptcontext *context);
|
|||||||
/* Defined in board/up_leds.c */
|
/* Defined in board/up_leds.c */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
extern void up_ledinit(void);
|
extern void board_led_initialize(void);
|
||||||
extern void up_ledon(uint8_t led);
|
extern void board_led_on(uint8_t led);
|
||||||
extern void up_ledoff(uint8_t led);
|
extern void board_led_off(uint8_t led);
|
||||||
#else
|
#else
|
||||||
# define up_ledinit()
|
# define board_led_initialize()
|
||||||
# define up_ledon(led)
|
# define board_led_on(led)
|
||||||
# define up_ledoff(led)
|
# define board_led_off(led)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY */
|
#endif /* __ASSEMBLY */
|
||||||
|
|||||||
@@ -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:
|
* Description:
|
||||||
* "Fake" LED routines if needed
|
* "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;
|
led;
|
||||||
}
|
}
|
||||||
|
|
||||||
void up_ledoff(uint8_t led)
|
void board_led_off(uint8_t led)
|
||||||
{
|
{
|
||||||
led;
|
led;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -263,9 +263,9 @@ static void _up_assert(int errorcode)
|
|||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
up_ledon(LED_PANIC);
|
board_led_on(LED_PANIC);
|
||||||
up_mdelay(250);
|
up_mdelay(250);
|
||||||
up_ledoff(LED_PANIC);
|
board_led_off(LED_PANIC);
|
||||||
up_mdelay(250);
|
up_mdelay(250);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -290,7 +290,7 @@ void up_assert(const uint8_t *filename, int lineno)
|
|||||||
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
up_ledon(LED_ASSERTION);
|
board_led_on(LED_ASSERTION);
|
||||||
|
|
||||||
#ifdef CONFIG_PRINT_TASKNAME
|
#ifdef CONFIG_PRINT_TASKNAME
|
||||||
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
void up_doirq(int irq, uint32_t *regs)
|
void up_doirq(int irq, uint32_t *regs)
|
||||||
{
|
{
|
||||||
up_ledon(LED_INIRQ);
|
board_led_on(LED_INIRQ);
|
||||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||||
PANIC();
|
PANIC();
|
||||||
#else
|
#else
|
||||||
@@ -112,5 +112,5 @@ void up_doirq(int irq, uint32_t *regs)
|
|||||||
|
|
||||||
up_enable_irq(irq);
|
up_enable_irq(irq);
|
||||||
#endif
|
#endif
|
||||||
up_ledoff(LED_INIRQ);
|
board_led_off(LED_INIRQ);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ __start:
|
|||||||
/* Initialize onboard LEDs */
|
/* Initialize onboard LEDs */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
bl up_ledinit
|
bl board_led_initialize
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_STACK
|
#ifdef CONFIG_DEBUG_STACK
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ void up_sigdeliver(void)
|
|||||||
|
|
||||||
int saved_errno = rtcb->pterrno;
|
int saved_errno = rtcb->pterrno;
|
||||||
|
|
||||||
up_ledon(LED_SIGNAL);
|
board_led_on(LED_SIGNAL);
|
||||||
|
|
||||||
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
||||||
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
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. */
|
/* Then restore the correct state for this thread of execution. */
|
||||||
|
|
||||||
up_ledoff(LED_SIGNAL);
|
board_led_off(LED_SIGNAL);
|
||||||
up_fullcontextrestore(regs);
|
up_fullcontextrestore(regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -279,9 +279,9 @@ static void _up_assert(int errorcode)
|
|||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
up_ledon(LED_PANIC);
|
board_led_on(LED_PANIC);
|
||||||
up_mdelay(250);
|
up_mdelay(250);
|
||||||
up_ledoff(LED_PANIC);
|
board_led_off(LED_PANIC);
|
||||||
up_mdelay(250);
|
up_mdelay(250);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -306,7 +306,7 @@ void up_assert(const uint8_t *filename, int lineno)
|
|||||||
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
up_ledon(LED_ASSERTION);
|
board_led_on(LED_ASSERTION);
|
||||||
|
|
||||||
#ifdef CONFIG_PRINT_TASKNAME
|
#ifdef CONFIG_PRINT_TASKNAME
|
||||||
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
uint32_t *up_doirq(int irq, uint32_t *regs)
|
uint32_t *up_doirq(int irq, uint32_t *regs)
|
||||||
{
|
{
|
||||||
up_ledon(LED_INIRQ);
|
board_led_on(LED_INIRQ);
|
||||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||||
PANIC();
|
PANIC();
|
||||||
#else
|
#else
|
||||||
@@ -116,6 +116,6 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
|
|||||||
|
|
||||||
current_regs = savestate;
|
current_regs = savestate;
|
||||||
#endif
|
#endif
|
||||||
up_ledoff(LED_INIRQ);
|
board_led_off(LED_INIRQ);
|
||||||
return regs;
|
return regs;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ void up_sigdeliver(void)
|
|||||||
|
|
||||||
int saved_errno = rtcb->pterrno;
|
int saved_errno = rtcb->pterrno;
|
||||||
|
|
||||||
up_ledon(LED_SIGNAL);
|
board_led_on(LED_SIGNAL);
|
||||||
|
|
||||||
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
||||||
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
||||||
@@ -139,7 +139,7 @@ void up_sigdeliver(void)
|
|||||||
* execution.
|
* execution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
up_ledoff(LED_SIGNAL);
|
board_led_off(LED_SIGNAL);
|
||||||
up_fullcontextrestore(regs);
|
up_fullcontextrestore(regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -273,9 +273,9 @@ static void _up_assert(int errorcode)
|
|||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
up_ledon(LED_PANIC);
|
board_led_on(LED_PANIC);
|
||||||
up_mdelay(250);
|
up_mdelay(250);
|
||||||
up_ledoff(LED_PANIC);
|
board_led_off(LED_PANIC);
|
||||||
up_mdelay(250);
|
up_mdelay(250);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -299,7 +299,7 @@ void up_assert(const uint8_t *filename, int lineno)
|
|||||||
#ifdef CONFIG_PRINT_TASKNAME
|
#ifdef CONFIG_PRINT_TASKNAME
|
||||||
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
#endif
|
#endif
|
||||||
up_ledon(LED_ASSERTION);
|
board_led_on(LED_ASSERTION);
|
||||||
|
|
||||||
#ifdef CONFIG_PRINT_TASKNAME
|
#ifdef CONFIG_PRINT_TASKNAME
|
||||||
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
uint32_t *arm_doirq(int irq, uint32_t *regs)
|
uint32_t *arm_doirq(int irq, uint32_t *regs)
|
||||||
{
|
{
|
||||||
up_ledon(LED_INIRQ);
|
board_led_on(LED_INIRQ);
|
||||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||||
PANIC();
|
PANIC();
|
||||||
#else
|
#else
|
||||||
@@ -121,6 +121,6 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
|
|||||||
up_enable_irq(irq);
|
up_enable_irq(irq);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
up_ledoff(LED_INIRQ);
|
board_led_off(LED_INIRQ);
|
||||||
return regs;
|
return regs;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ void up_sigdeliver(void)
|
|||||||
|
|
||||||
int saved_errno = rtcb->pterrno;
|
int saved_errno = rtcb->pterrno;
|
||||||
|
|
||||||
up_ledon(LED_SIGNAL);
|
board_led_on(LED_SIGNAL);
|
||||||
|
|
||||||
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
||||||
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
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. */
|
/* Then restore the correct state for this thread of execution. */
|
||||||
|
|
||||||
up_ledoff(LED_SIGNAL);
|
board_led_off(LED_SIGNAL);
|
||||||
up_fullcontextrestore(regs);
|
up_fullcontextrestore(regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -290,9 +290,9 @@ static void _up_assert(int errorcode)
|
|||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
up_ledon(LED_PANIC);
|
board_led_on(LED_PANIC);
|
||||||
up_mdelay(250);
|
up_mdelay(250);
|
||||||
up_ledoff(LED_PANIC);
|
board_led_off(LED_PANIC);
|
||||||
up_mdelay(250);
|
up_mdelay(250);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -317,7 +317,7 @@ void up_assert(const uint8_t *filename, int lineno)
|
|||||||
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
up_ledon(LED_ASSERTION);
|
board_led_on(LED_ASSERTION);
|
||||||
|
|
||||||
#ifdef CONFIG_PRINT_TASKNAME
|
#ifdef CONFIG_PRINT_TASKNAME
|
||||||
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
lldbg("Assertion failed at file:%s line: %d task: %s\n",
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
uint32_t *up_doirq(int irq, uint32_t *regs)
|
uint32_t *up_doirq(int irq, uint32_t *regs)
|
||||||
{
|
{
|
||||||
up_ledon(LED_INIRQ);
|
board_led_on(LED_INIRQ);
|
||||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||||
PANIC();
|
PANIC();
|
||||||
#else
|
#else
|
||||||
@@ -116,6 +116,6 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
|
|||||||
|
|
||||||
current_regs = savestate;
|
current_regs = savestate;
|
||||||
#endif
|
#endif
|
||||||
up_ledoff(LED_INIRQ);
|
board_led_off(LED_INIRQ);
|
||||||
return regs;
|
return regs;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ void up_sigdeliver(void)
|
|||||||
|
|
||||||
int saved_errno = rtcb->pterrno;
|
int saved_errno = rtcb->pterrno;
|
||||||
|
|
||||||
up_ledon(LED_SIGNAL);
|
board_led_on(LED_SIGNAL);
|
||||||
|
|
||||||
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
||||||
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
||||||
@@ -142,7 +142,7 @@ void up_sigdeliver(void)
|
|||||||
* execution.
|
* execution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
up_ledoff(LED_SIGNAL);
|
board_led_off(LED_SIGNAL);
|
||||||
up_fullcontextrestore(regs);
|
up_fullcontextrestore(regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -118,14 +118,14 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the user-space heap settings */
|
/* Return the user-space heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)ubase;
|
*heap_start = (FAR void*)ubase;
|
||||||
*heap_size = usize;
|
*heap_size = usize;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* Return the heap settings */
|
/* Return the heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)g_idle_topstack;
|
*heap_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -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);
|
up_stack_color(tcb->stack_alloc_ptr, tcb->adj_stack_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
up_ledon(LED_STACKCREATED);
|
board_led_on(LED_STACKCREATED);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -207,5 +207,5 @@ void up_initialize(void)
|
|||||||
/* Initialize USB -- device and/or host */
|
/* Initialize USB -- device and/or host */
|
||||||
|
|
||||||
up_usbinitialize();
|
up_usbinitialize();
|
||||||
up_ledon(LED_IRQSENABLED);
|
board_led_on(LED_IRQSENABLED);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -456,13 +456,13 @@ void up_wdtinit(void);
|
|||||||
/* LED interfaces provided by board-level logic *****************************/
|
/* LED interfaces provided by board-level logic *****************************/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
void up_ledinit(void);
|
void board_led_initialize(void);
|
||||||
void up_ledon(int led);
|
void board_led_on(int led);
|
||||||
void up_ledoff(int led);
|
void board_led_off(int led);
|
||||||
#else
|
#else
|
||||||
# define up_ledinit()
|
# define board_led_initialize()
|
||||||
# define up_ledon(led)
|
# define board_led_on(led)
|
||||||
# define up_ledoff(led)
|
# define board_led_off(led)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Networking ***************************************************************/
|
/* Networking ***************************************************************/
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
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_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = (DM320_SDRAM_VADDR + CONFIG_RAM_SIZE) - g_idle_topstack;
|
*heap_size = (DM320_SDRAM_VADDR + CONFIG_RAM_SIZE) - g_idle_topstack;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ void up_boot(void)
|
|||||||
/* Set up the board-specific LEDs */
|
/* Set up the board-specific LEDs */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
up_ledinit();
|
board_led_initialize();
|
||||||
#endif
|
#endif
|
||||||
/* Perform early serial initialization */
|
/* Perform early serial initialization */
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||||
# define BEGIN_IDLE() up_ledon(LED_IDLE)
|
# define BEGIN_IDLE() board_led_on(LED_IDLE)
|
||||||
# define END_IDLE() up_ledoff(LED_IDLE)
|
# define END_IDLE() board_led_off(LED_IDLE)
|
||||||
#else
|
#else
|
||||||
# define BEGIN_IDLE()
|
# define BEGIN_IDLE()
|
||||||
# define END_IDLE()
|
# define END_IDLE()
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
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_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = (IMX_SDRAM_VSECTION + CONFIG_RAM_SIZE) - g_idle_topstack;
|
*heap_size = (IMX_SDRAM_VSECTION + CONFIG_RAM_SIZE) - g_idle_topstack;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ void up_boot(void)
|
|||||||
/* Set up the board-specific LEDs */
|
/* Set up the board-specific LEDs */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
up_ledinit();
|
board_led_initialize();
|
||||||
#endif
|
#endif
|
||||||
/* Perform early serial initialization */
|
/* Perform early serial initialization */
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the user-space heap settings */
|
/* Return the user-space heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)ubase;
|
*heap_start = (FAR void*)ubase;
|
||||||
*heap_size = usize;
|
*heap_size = usize;
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the heap settings */
|
/* Return the heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)g_idle_topstack;
|
*heap_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -52,8 +52,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||||
# define BEGIN_IDLE() up_ledon(LED_IDLE)
|
# define BEGIN_IDLE() board_led_on(LED_IDLE)
|
||||||
# define END_IDLE() up_ledoff(LED_IDLE)
|
# define END_IDLE() board_led_off(LED_IDLE)
|
||||||
#else
|
#else
|
||||||
# define BEGIN_IDLE()
|
# define BEGIN_IDLE()
|
||||||
# define END_IDLE()
|
# define END_IDLE()
|
||||||
|
|||||||
@@ -57,8 +57,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||||
# define BEGIN_IDLE() up_ledon(LED_IDLE)
|
# define BEGIN_IDLE() board_led_on(LED_IDLE)
|
||||||
# define END_IDLE() up_ledoff(LED_IDLE)
|
# define END_IDLE() board_led_off(LED_IDLE)
|
||||||
#else
|
#else
|
||||||
# define BEGIN_IDLE()
|
# define BEGIN_IDLE()
|
||||||
# define END_IDLE()
|
# define END_IDLE()
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the user-space heap settings */
|
/* Return the user-space heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)ubase;
|
*heap_start = (FAR void*)ubase;
|
||||||
*heap_size = usize;
|
*heap_size = usize;
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the heap settings */
|
/* Return the heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)g_idle_topstack;
|
*heap_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the user-space heap settings */
|
/* Return the user-space heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)ubase;
|
*heap_start = (FAR void*)ubase;
|
||||||
*heap_size = usize;
|
*heap_size = usize;
|
||||||
|
|
||||||
@@ -251,7 +251,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the heap settings */
|
/* Return the heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)g_idle_topstack;
|
*heap_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -54,8 +54,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||||
# define BEGIN_IDLE() up_ledon(LED_IDLE)
|
# define BEGIN_IDLE() board_led_on(LED_IDLE)
|
||||||
# define END_IDLE() up_ledoff(LED_IDLE)
|
# define END_IDLE() board_led_off(LED_IDLE)
|
||||||
#else
|
#else
|
||||||
# define BEGIN_IDLE()
|
# define BEGIN_IDLE()
|
||||||
# define END_IDLE()
|
# define END_IDLE()
|
||||||
|
|||||||
@@ -592,7 +592,7 @@ __start:
|
|||||||
/* Initialize onboard LEDs */
|
/* Initialize onboard LEDs */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
bl up_ledinit
|
bl board_led_initialize
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Then jump to OS entry */
|
/* Then jump to OS entry */
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ __start:
|
|||||||
/* Initialize onboard LEDs */
|
/* Initialize onboard LEDs */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
bl up_ledinit
|
bl board_led_initialize
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Then jump to OS entry */
|
/* Then jump to OS entry */
|
||||||
|
|||||||
@@ -179,7 +179,7 @@
|
|||||||
|
|
||||||
void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
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_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = LPC31_HEAP_VEND - g_idle_topstack;
|
*heap_size = LPC31_HEAP_VEND - g_idle_topstack;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
{
|
{
|
||||||
/* Start with the first SRAM region */
|
/* Start with the first SRAM region */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)g_idle_topstack;
|
*heap_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,8 +56,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||||
# define BEGIN_IDLE() up_ledon(LED_IDLE)
|
# define BEGIN_IDLE() board_led_on(LED_IDLE)
|
||||||
# define END_IDLE() up_ledoff(LED_IDLE)
|
# define END_IDLE() board_led_off(LED_IDLE)
|
||||||
#else
|
#else
|
||||||
# define BEGIN_IDLE()
|
# define BEGIN_IDLE()
|
||||||
# define END_IDLE()
|
# define END_IDLE()
|
||||||
|
|||||||
@@ -57,8 +57,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||||
# define BEGIN_IDLE() up_ledon(LED_IDLE)
|
# define BEGIN_IDLE() board_led_on(LED_IDLE)
|
||||||
# define END_IDLE() up_ledoff(LED_IDLE)
|
# define END_IDLE() board_led_off(LED_IDLE)
|
||||||
#else
|
#else
|
||||||
# define BEGIN_IDLE()
|
# define BEGIN_IDLE()
|
||||||
# define END_IDLE()
|
# define END_IDLE()
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the user-space heap settings */
|
/* Return the user-space heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)ubase;
|
*heap_start = (FAR void*)ubase;
|
||||||
*heap_size = usize;
|
*heap_size = usize;
|
||||||
|
|
||||||
@@ -240,7 +240,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the heap settings */
|
/* Return the heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)g_idle_topstack;
|
*heap_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
*heap_size = CONFIG_RAM_END - g_idle_topstack;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -213,14 +213,14 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the user-space heap settings */
|
/* Return the user-space heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)ubase;
|
*heap_start = (FAR void*)ubase;
|
||||||
*heap_size = usize;
|
*heap_size = usize;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* Return the heap settings */
|
/* Return the heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)g_idle_topstack;
|
*heap_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = CONFIG_RAM_VEND - g_idle_topstack;
|
*heap_size = CONFIG_RAM_VEND - g_idle_topstack;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the user-space heap settings */
|
/* Return the user-space heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)ubase;
|
*heap_start = (FAR void*)ubase;
|
||||||
*heap_size = usize;
|
*heap_size = usize;
|
||||||
|
|
||||||
@@ -489,7 +489,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
|||||||
|
|
||||||
/* Return the heap settings */
|
/* Return the heap settings */
|
||||||
|
|
||||||
up_ledon(LED_HEAPALLOCATE);
|
board_led_on(LED_HEAPALLOCATE);
|
||||||
*heap_start = (FAR void*)g_idle_topstack;
|
*heap_start = (FAR void*)g_idle_topstack;
|
||||||
*heap_size = SRAM1_END - g_idle_topstack;
|
*heap_size = SRAM1_END - g_idle_topstack;
|
||||||
|
|
||||||
|
|||||||
@@ -58,8 +58,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
#if defined(CONFIG_ARCH_LEDS) && defined(LED_IDLE)
|
||||||
# define BEGIN_IDLE() up_ledon(LED_IDLE)
|
# define BEGIN_IDLE() board_led_on(LED_IDLE)
|
||||||
# define END_IDLE() up_ledoff(LED_IDLE)
|
# define END_IDLE() board_led_off(LED_IDLE)
|
||||||
#else
|
#else
|
||||||
# define BEGIN_IDLE()
|
# define BEGIN_IDLE()
|
||||||
# define END_IDLE()
|
# define END_IDLE()
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
void up_decodeirq(uint32_t *regs)
|
void up_decodeirq(uint32_t *regs)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||||
up_ledon(LED_INIRQ);
|
board_led_on(LED_INIRQ);
|
||||||
lowsyslog("Unexpected IRQ\n");
|
lowsyslog("Unexpected IRQ\n");
|
||||||
current_regs = regs;
|
current_regs = regs;
|
||||||
PANIC();
|
PANIC();
|
||||||
@@ -101,7 +101,7 @@ void up_decodeirq(uint32_t *regs)
|
|||||||
* info from CIC register without the setup).
|
* info from CIC register without the setup).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
up_ledon(LED_INIRQ);
|
board_led_on(LED_INIRQ);
|
||||||
irq = getreg32(STR71X_EIC_IVR);
|
irq = getreg32(STR71X_EIC_IVR);
|
||||||
|
|
||||||
/* Verify that the resulting IRQ number is valid */
|
/* Verify that the resulting IRQ number is valid */
|
||||||
@@ -142,6 +142,6 @@ void up_decodeirq(uint32_t *regs)
|
|||||||
PANIC(); /* Normally never happens */
|
PANIC(); /* Normally never happens */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
up_ledoff(LED_INIRQ);
|
board_led_off(LED_INIRQ);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
.globl up_earlyserialinit /* Early initialization of serial driver */
|
.globl up_earlyserialinit /* Early initialization of serial driver */
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
.globl up_ledinit /* Boot LED setup */
|
.globl board_led_initialize /* Boot LED setup */
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
.globl up_lowputc /* Low-level debug output */
|
.globl up_lowputc /* Low-level debug output */
|
||||||
@@ -570,7 +570,7 @@ ctor_end:
|
|||||||
/* Initialize onboard LEDs */
|
/* Initialize onboard LEDs */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
bl up_ledinit
|
bl board_led_initialize
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Then jump to OS entry */
|
/* Then jump to OS entry */
|
||||||
|
|||||||
@@ -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_ptr = (FAR void *)top_of_stack;
|
||||||
tcb->adj_stack_size = stack_size;
|
tcb->adj_stack_size = stack_size;
|
||||||
|
|
||||||
up_ledon(LED_STACKCREATED);
|
board_led_on(LED_STACKCREATED);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user