rename up_led*() functions to board_led_*()
This commit is contained in:
parent
1d5b2d3d3e
commit
2f837ccd2a
@ -6515,4 +6515,7 @@
|
||||
* Rename up_buttons() to board_buttons() for the same reason (2014-
|
||||
1-14).
|
||||
* Rename up_irqbutton() to board_button_irq() (2014-1-24).
|
||||
* Rename up_ledinit() to board_led_intialize() (2014-1-24).
|
||||
* Rename up_ledon() to board_led_on() and up_ledoff() to board_led_off()
|
||||
(2014-1-24).
|
||||
|
||||
|
@ -2679,13 +2679,13 @@ else
|
||||
/* Defined in board/up_leds.c */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
extern void up_ledinit(void);
|
||||
extern void up_ledon(int led);
|
||||
extern void up_ledoff(int led);
|
||||
extern void board_led_initialize(void);
|
||||
extern void board_led_on(int led);
|
||||
extern void board_led_off(int led);
|
||||
#else
|
||||
# define up_ledinit()
|
||||
# define up_ledon(led)
|
||||
# define up_ledoff(led)
|
||||
# define board_led_initialize()
|
||||
# define board_led_on(led)
|
||||
# define board_led_off(led)
|
||||
#endif
|
||||
</pre></ul>
|
||||
<p>
|
||||
@ -2693,14 +2693,14 @@ extern void up_ledoff(int led);
|
||||
<p>
|
||||
<ul>
|
||||
<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>
|
||||
<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>.
|
||||
</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>.
|
||||
Note that only <code>LED_INIRQ</code>, <code>LED_SIGNAL</code>, <code>LED_ASSERTION</code>, and <code>LED_PANIC</code>
|
||||
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_size = UP_HEAP1_END - UP_HEAP1_BASE;
|
||||
up_ledon(LED_HEAPALLOCATE);
|
||||
board_led_on(LED_HEAPALLOCATE);
|
||||
}
|
||||
|
||||
#if CONFIG_MM_REGIONS > 1
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -139,6 +139,6 @@ void up_initialize(void)
|
||||
up_timerinit();
|
||||
#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 */
|
||||
|
||||
#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 */
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ __start:
|
||||
/* Initialize onboard LEDs */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
bl up_ledinit
|
||||
bl board_led_initialize
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_STACK
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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 ***************************************************************/
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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 */
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,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;
|
||||
|
||||
up_ledon(LED_STACKCREATED);
|
||||
board_led_on(LED_STACKCREATED);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
@ -112,7 +112,7 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
|
||||
|
||||
current_regs = savestate;
|
||||
#endif
|
||||
up_ledoff(LED_INIRQ);
|
||||
board_led_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,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);
|
||||
@ -149,7 +149,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);
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,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 = CONFIG_RAM_END - g_idle_topstack;
|
||||
}
|
||||
|
@ -101,9 +101,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
|
||||
}
|
||||
@ -128,7 +128,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",
|
||||
|
@ -237,6 +237,6 @@ void up_initialize(void)
|
||||
|
||||
up_usbinitialize();
|
||||
|
||||
up_ledon(LED_IRQSENABLED);
|
||||
board_led_on(LED_IRQSENABLED);
|
||||
}
|
||||
|
||||
|
@ -179,11 +179,11 @@ extern void up_timerinit(void);
|
||||
/* Defined in configs/<board-name>/src/up_leds.c */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
void up_ledon(int led);
|
||||
void up_ledoff(int led);
|
||||
void board_led_on(int led);
|
||||
void board_led_off(int led);
|
||||
#else
|
||||
# define up_ledon(led)
|
||||
# define up_ledoff(led)
|
||||
# define board_led_on(led)
|
||||
# define board_led_off(led)
|
||||
#endif
|
||||
|
||||
/* Defined in chip/xxx_ethernet.c */
|
||||
|
@ -80,7 +80,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 = CONFIG_RAM_END - g_idle_topstack;
|
||||
}
|
||||
|
@ -192,7 +192,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;
|
||||
|
||||
up_ledon(LED_STACKCREATED);
|
||||
board_led_on(LED_STACKCREATED);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@
|
||||
|
||||
uint8_t *up_doirq(int irq, uint8_t *regs)
|
||||
{
|
||||
up_ledon(LED_INIRQ);
|
||||
board_led_on(LED_INIRQ);
|
||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||
PANIC();
|
||||
#else
|
||||
@ -112,6 +112,6 @@ uint8_t *up_doirq(int irq, uint8_t *regs)
|
||||
|
||||
current_regs = savestate;
|
||||
#endif
|
||||
up_ledoff(LED_INIRQ);
|
||||
board_led_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
@ -190,5 +190,5 @@ void up_initialize(void)
|
||||
|
||||
up_usbinitialize();
|
||||
|
||||
up_ledon(LED_IRQSENABLED);
|
||||
board_led_on(LED_IRQSENABLED);
|
||||
}
|
||||
|
@ -237,13 +237,13 @@ extern void up_usbuninitialize(void);
|
||||
/* Board-specific functions */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
extern void up_ledinit(void);
|
||||
extern void up_ledon(int led);
|
||||
extern void up_ledoff(int led);
|
||||
extern void board_led_initialize(void);
|
||||
extern void board_led_on(int led);
|
||||
extern void board_led_off(int led);
|
||||
#else
|
||||
# define up_ledinit()
|
||||
# define up_ledon(led)
|
||||
# define up_ledoff(led)
|
||||
# define board_led_initialize()
|
||||
# define board_led_on(led)
|
||||
# define board_led_off(led)
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
@ -258,9 +258,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
|
||||
}
|
||||
@ -285,7 +285,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",
|
||||
|
@ -81,7 +81,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 = CONFIG_RAM_END - g_idle_topstack;
|
||||
}
|
||||
|
@ -213,7 +213,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;
|
||||
|
||||
up_ledon(LED_STACKCREATED);
|
||||
board_led_on(LED_STACKCREATED);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -191,5 +191,5 @@ void up_initialize(void)
|
||||
/* Initialize USB -- device and/or host */
|
||||
|
||||
up_usbinitialize();
|
||||
up_ledon(LED_IRQSENABLED);
|
||||
board_led_on(LED_IRQSENABLED);
|
||||
}
|
||||
|
@ -290,12 +290,12 @@ extern void up_usbuninitialize(void);
|
||||
/* LEDs */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
extern void up_ledon(int led);
|
||||
extern void up_ledoff(int led);
|
||||
extern void board_led_on(int led);
|
||||
extern void board_led_off(int led);
|
||||
#else
|
||||
# define up_ledinit()
|
||||
# define up_ledon(led)
|
||||
# define up_ledoff(led)
|
||||
# define board_led_initialize()
|
||||
# define board_led_on(led)
|
||||
# define board_led_off(led)
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
@ -101,9 +101,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
|
||||
}
|
||||
@ -128,7 +128,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",
|
||||
|
@ -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
|
||||
@ -122,6 +122,6 @@ uint32_t *up_doirq(int irq, uint32_t *regs)
|
||||
|
||||
up_enable_irq(irq);
|
||||
#endif
|
||||
up_ledoff(LED_INIRQ);
|
||||
board_led_off(LED_INIRQ);
|
||||
return regs;
|
||||
}
|
||||
|
@ -93,7 +93,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);
|
||||
@ -135,7 +135,7 @@ void up_sigdeliver(void)
|
||||
* execution.
|
||||
*/
|
||||
|
||||
up_ledoff(LED_SIGNAL);
|
||||
board_led_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
|
||||
/* up_fullcontextrestore() should not return but could if the software
|
||||
|
@ -95,7 +95,7 @@ uint32_t *pic32mx_decodeirq(uint32_t *regs)
|
||||
* processing an interrupt.
|
||||
*/
|
||||
|
||||
up_ledon(LED_INIRQ);
|
||||
board_led_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
|
||||
@ -161,11 +161,11 @@ uint32_t *pic32mx_decodeirq(uint32_t *regs)
|
||||
current_regs = savestate;
|
||||
if (current_regs == NULL)
|
||||
{
|
||||
up_ledoff(LED_INIRQ);
|
||||
board_led_off(LED_INIRQ);
|
||||
}
|
||||
#else
|
||||
current_regs = NULL;
|
||||
up_ledoff(LED_INIRQ);
|
||||
board_led_off(LED_INIRQ);
|
||||
#endif
|
||||
|
||||
return regs;
|
||||
|
@ -94,7 +94,7 @@ uint32_t *pic32mx_exception(uint32_t *regs)
|
||||
* processing an interrupt.
|
||||
*/
|
||||
|
||||
up_ledon(LED_INIRQ);
|
||||
board_led_on(LED_INIRQ);
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
/* Get the cause of the exception from the CAUSE register */
|
||||
|
@ -80,7 +80,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 = CONFIG_RAM_END - g_idle_topstack;
|
||||
}
|
||||
|
@ -87,9 +87,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
|
||||
}
|
||||
@ -114,7 +114,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",
|
||||
|
@ -192,7 +192,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;
|
||||
|
||||
up_ledon(LED_STACKCREATED);
|
||||
board_led_on(LED_STACKCREATED);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,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
|
||||
@ -127,7 +127,7 @@ uint32_t *up_doirq(int irq, uint32_t* regs)
|
||||
up_enable_irq(irq);
|
||||
#endif
|
||||
}
|
||||
up_ledoff(LED_INIRQ);
|
||||
board_led_off(LED_INIRQ);
|
||||
#endif
|
||||
return regs;
|
||||
}
|
||||
|
@ -180,5 +180,5 @@ void up_initialize(void)
|
||||
|
||||
up_usbinitialize();
|
||||
|
||||
up_ledon(LED_IRQSENABLED);
|
||||
board_led_on(LED_IRQSENABLED);
|
||||
}
|
||||
|
@ -219,13 +219,13 @@ extern void up_maskack_irq(int irq);
|
||||
/* Defined in board/up_leds.c */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
extern void up_ledinit(void);
|
||||
extern void up_ledon(int led);
|
||||
extern void up_ledoff(int led);
|
||||
extern void board_led_initialize(void);
|
||||
extern void board_led_on(int led);
|
||||
extern void board_led_off(int led);
|
||||
#else
|
||||
# define up_ledinit()
|
||||
# define up_ledon(led)
|
||||
# define up_ledoff(led)
|
||||
# define board_led_initialize()
|
||||
# define board_led_on(led)
|
||||
# define board_led_off(led)
|
||||
#endif
|
||||
|
||||
/* Defined in board/up_lcd.c */
|
||||
|
@ -260,8 +260,8 @@ __start:
|
||||
/* Initialize onboard LEDs */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
.globl _up_ledinit /* Boot LED setup */
|
||||
jsr.a _up_ledinit /* Call it */
|
||||
.globl _board_led_initialize /* Boot LED setup */
|
||||
jsr.a _board_led_initialize /* Call it */
|
||||
#endif
|
||||
showprogress '\n'
|
||||
|
||||
|
@ -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);
|
||||
@ -135,7 +135,7 @@ void up_sigdeliver(void)
|
||||
* execution.
|
||||
*/
|
||||
|
||||
up_ledoff(LED_SIGNAL);
|
||||
board_led_off(LED_SIGNAL);
|
||||
up_fullcontextrestore(regs);
|
||||
#endif
|
||||
}
|
||||
|
@ -65,7 +65,7 @@
|
||||
.globl _up_earlyconsoleinit /* Early initialization of console 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 */
|
||||
@ -445,7 +445,7 @@ __start0:
|
||||
/* Initialize onboard LEDs */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
mov.l .Lledinit, r0 /* Address of up_ledinit */
|
||||
mov.l .Lledinit, r0 /* Address of board_led_initialize */
|
||||
jsr @r0 /* Call it */
|
||||
or r0, r0 /* Delay slot */
|
||||
#endif
|
||||
@ -492,7 +492,7 @@ __start0:
|
||||
.long _up_lowputc
|
||||
#endif
|
||||
.Lledinit:
|
||||
.long _up_ledinit
|
||||
.long _board_led_initialize
|
||||
.Losstart:
|
||||
.long _os_start
|
||||
.Lsvect:
|
||||
|
@ -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);
|
||||
@ -132,7 +132,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);
|
||||
#endif
|
||||
}
|
||||
|
@ -81,7 +81,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 = CONFIG_RAM_END - g_idle_topstack;
|
||||
}
|
||||
|
@ -220,9 +220,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
|
||||
}
|
||||
@ -247,7 +247,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",
|
||||
|
@ -191,5 +191,5 @@ void up_initialize(void)
|
||||
/* Initialize USB -- device and/or host */
|
||||
|
||||
up_usbinitialize();
|
||||
up_ledon(LED_IRQSENABLED);
|
||||
board_led_on(LED_IRQSENABLED);
|
||||
}
|
||||
|
@ -241,13 +241,13 @@ extern void up_maskack_irq(int irq);
|
||||
/* Defined in board/up_leds.c */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
extern void up_ledinit(void);
|
||||
extern void up_ledon(int led);
|
||||
extern void up_ledoff(int led);
|
||||
extern void board_led_initialize(void);
|
||||
extern void board_led_on(int led);
|
||||
extern void board_led_off(int led);
|
||||
#else
|
||||
# define up_ledinit()
|
||||
# define up_ledon(led)
|
||||
# define up_ledoff(led)
|
||||
# define board_led_initialize()
|
||||
# define board_led_on(led)
|
||||
# define board_led_off(led)
|
||||
#endif
|
||||
|
||||
/* Defined in board/up_network.c */
|
||||
|
@ -192,7 +192,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;
|
||||
|
||||
up_ledon(LED_STACKCREATED);
|
||||
board_led_on(LED_STACKCREATED);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ static uint32_t *common_handler(int irq, uint32_t *regs)
|
||||
{
|
||||
uint32_t *savestate;
|
||||
|
||||
up_ledon(LED_INIRQ);
|
||||
board_led_on(LED_INIRQ);
|
||||
|
||||
/* Nested interrupts are not supported in this implementation. If you want
|
||||
* implemented nested interrupts, you would have to (1) change the way that
|
||||
@ -141,7 +141,7 @@ static uint32_t *common_handler(int irq, uint32_t *regs)
|
||||
uint32_t *isr_handler(uint32_t *regs)
|
||||
{
|
||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||
up_ledon(LED_INIRQ);
|
||||
board_led_on(LED_INIRQ);
|
||||
PANIC(); /* Doesn't return */
|
||||
return regs; /* To keep the compiler happy */
|
||||
#else
|
||||
@ -149,9 +149,9 @@ uint32_t *isr_handler(uint32_t *regs)
|
||||
|
||||
/* Dispatch the interrupt */
|
||||
|
||||
up_ledon(LED_INIRQ);
|
||||
board_led_on(LED_INIRQ);
|
||||
ret = common_handler((int)regs[REG_IRQNO], regs);
|
||||
up_ledoff(LED_INIRQ);
|
||||
board_led_off(LED_INIRQ);
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
@ -167,14 +167,14 @@ uint32_t *isr_handler(uint32_t *regs)
|
||||
uint32_t *irq_handler(uint32_t *regs)
|
||||
{
|
||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||
up_ledon(LED_INIRQ);
|
||||
board_led_on(LED_INIRQ);
|
||||
PANIC(); /* Doesn't return */
|
||||
return regs; /* To keep the compiler happy */
|
||||
#else
|
||||
uint32_t *ret;
|
||||
int irq;
|
||||
|
||||
up_ledon(LED_INIRQ);
|
||||
board_led_on(LED_INIRQ);
|
||||
|
||||
/* Get the IRQ number */
|
||||
|
||||
@ -198,7 +198,7 @@ uint32_t *irq_handler(uint32_t *regs)
|
||||
/* Dispatch the interrupt */
|
||||
|
||||
ret = common_handler(irq, regs);
|
||||
up_ledoff(LED_INIRQ);
|
||||
board_led_off(LED_INIRQ);
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
|
@ -98,7 +98,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;
|
||||
up_ledon(LED_HEAPALLOCATE);
|
||||
board_led_on(LED_HEAPALLOCATE);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -87,9 +87,9 @@ static void _up_assert(int errorcode) /* noreturn_function */
|
||||
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
|
||||
}
|
||||
@ -118,7 +118,7 @@ void up_assert(void)
|
||||
struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head;
|
||||
#endif
|
||||
|
||||
up_ledon(LED_ASSERTION);
|
||||
board_led_on(LED_ASSERTION);
|
||||
|
||||
#ifdef CONFIG_HAVE_FILENAME
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
|
@ -191,7 +191,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;
|
||||
|
||||
up_ledon(LED_STACKCREATED);
|
||||
board_led_on(LED_STACKCREATED);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ FAR chipreg_t *up_doirq(int irq, FAR chipreg_t *regs)
|
||||
{
|
||||
FAR chipreg_t *ret = regs;
|
||||
|
||||
up_ledon(LED_INIRQ);
|
||||
board_led_on(LED_INIRQ);
|
||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||
PANIC();
|
||||
#else
|
||||
@ -130,7 +130,7 @@ FAR chipreg_t *up_doirq(int irq, FAR chipreg_t *regs)
|
||||
up_enable_irq(irq);
|
||||
}
|
||||
|
||||
up_ledoff(LED_INIRQ);
|
||||
board_led_off(LED_INIRQ);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
|
@ -87,11 +87,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
|
||||
|
||||
|
@ -191,5 +191,5 @@ void up_initialize(void)
|
||||
/* Initialize the network */
|
||||
|
||||
up_netinitialize();
|
||||
up_ledon(LED_IRQSENABLED);
|
||||
board_led_on(LED_IRQSENABLED);
|
||||
}
|
||||
|
@ -185,13 +185,13 @@ extern void up_maskack_irq(int irq);
|
||||
/* Defined in board/up_leds.c */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
extern void up_ledinit(void);
|
||||
extern void up_ledon(int led);
|
||||
extern void up_ledoff(int led);
|
||||
extern void board_led_initialize(void);
|
||||
extern void board_led_on(int led);
|
||||
extern void board_led_off(int led);
|
||||
#else
|
||||
# define up_ledinit()
|
||||
# define up_ledon(led)
|
||||
# define up_ledoff(led)
|
||||
# define board_led_initialize()
|
||||
# define board_led_on(led)
|
||||
# define board_led_off(led)
|
||||
#endif
|
||||
|
||||
/* Defined in board/up_network.c */
|
||||
|
@ -93,7 +93,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);
|
||||
@ -136,7 +136,7 @@ void up_sigdeliver(void)
|
||||
|
||||
/* Then restore the correct state for this thread of execution. */
|
||||
|
||||
up_ledoff(LED_SIGNAL);
|
||||
board_led_off(LED_SIGNAL);
|
||||
SIGNAL_RETURN(regs);
|
||||
#endif
|
||||
}
|
||||
|
@ -54,7 +54,7 @@
|
||||
xref _z16f_clkinit:EROM
|
||||
xref _z16f_lowinit:EROM
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
xref _up_ledinit:EROM
|
||||
xref _board_led_initialize:EROM
|
||||
#endif
|
||||
#if defined(USE_LOWUARTINIT)
|
||||
xref _z16f_lowuartinit:EROM
|
||||
@ -158,7 +158,7 @@ _z16f_reset:
|
||||
/* Initialize onboard LEDs */
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
call _up_ledinit
|
||||
call _board_led_initialize
|
||||
#endif
|
||||
/* Perform VERY early UART initialization so that we can use it here */
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user