diff options
Diffstat (limited to 'nuttx/arch/z16')
-rw-r--r-- | nuttx/arch/z16/src/common/up_allocateheap.c | 2 | ||||
-rw-r--r-- | nuttx/arch/z16/src/common/up_assert.c | 6 | ||||
-rw-r--r-- | nuttx/arch/z16/src/common/up_createstack.c | 2 | ||||
-rw-r--r-- | nuttx/arch/z16/src/common/up_doirq.c | 4 | ||||
-rw-r--r-- | nuttx/arch/z16/src/common/up_idle.c | 4 | ||||
-rw-r--r-- | nuttx/arch/z16/src/common/up_initialize.c | 2 | ||||
-rw-r--r-- | nuttx/arch/z16/src/common/up_internal.h | 12 | ||||
-rw-r--r-- | nuttx/arch/z16/src/common/up_sigdeliver.c | 4 | ||||
-rwxr-xr-x | nuttx/arch/z16/src/z16f/z16f_head.S | 4 |
9 files changed, 20 insertions, 20 deletions
diff --git a/nuttx/arch/z16/src/common/up_allocateheap.c b/nuttx/arch/z16/src/common/up_allocateheap.c index b13740011..af3b06713 100644 --- a/nuttx/arch/z16/src/common/up_allocateheap.c +++ b/nuttx/arch/z16/src/common/up_allocateheap.c @@ -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); } /**************************************************************************** diff --git a/nuttx/arch/z16/src/common/up_assert.c b/nuttx/arch/z16/src/common/up_assert.c index c5efc174a..454df8023 100644 --- a/nuttx/arch/z16/src/common/up_assert.c +++ b/nuttx/arch/z16/src/common/up_assert.c @@ -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 diff --git a/nuttx/arch/z16/src/common/up_createstack.c b/nuttx/arch/z16/src/common/up_createstack.c index 69a413bde..bdb6d2647 100644 --- a/nuttx/arch/z16/src/common/up_createstack.c +++ b/nuttx/arch/z16/src/common/up_createstack.c @@ -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; } diff --git a/nuttx/arch/z16/src/common/up_doirq.c b/nuttx/arch/z16/src/common/up_doirq.c index fea0a86d2..1009814ce 100644 --- a/nuttx/arch/z16/src/common/up_doirq.c +++ b/nuttx/arch/z16/src/common/up_doirq.c @@ -82,7 +82,7 @@ FAR chipreg_t *up_doirq(int irq, FAR chipreg_t *regs) { FAR chipreg_t *ret = regs; - 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; diff --git a/nuttx/arch/z16/src/common/up_idle.c b/nuttx/arch/z16/src/common/up_idle.c index 58cd1afc6..fa636a778 100644 --- a/nuttx/arch/z16/src/common/up_idle.c +++ b/nuttx/arch/z16/src/common/up_idle.c @@ -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 diff --git a/nuttx/arch/z16/src/common/up_initialize.c b/nuttx/arch/z16/src/common/up_initialize.c index 27784101c..0b27aa0cc 100644 --- a/nuttx/arch/z16/src/common/up_initialize.c +++ b/nuttx/arch/z16/src/common/up_initialize.c @@ -191,5 +191,5 @@ void up_initialize(void) /* Initialize the network */ up_netinitialize(); - up_ledon(LED_IRQSENABLED); + board_led_on(LED_IRQSENABLED); } diff --git a/nuttx/arch/z16/src/common/up_internal.h b/nuttx/arch/z16/src/common/up_internal.h index e4dfd1dd5..7822a211b 100644 --- a/nuttx/arch/z16/src/common/up_internal.h +++ b/nuttx/arch/z16/src/common/up_internal.h @@ -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 */ diff --git a/nuttx/arch/z16/src/common/up_sigdeliver.c b/nuttx/arch/z16/src/common/up_sigdeliver.c index 8f5118798..bc72fd56a 100644 --- a/nuttx/arch/z16/src/common/up_sigdeliver.c +++ b/nuttx/arch/z16/src/common/up_sigdeliver.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 } diff --git a/nuttx/arch/z16/src/z16f/z16f_head.S b/nuttx/arch/z16/src/z16f/z16f_head.S index 5c31de8f2..c1a69a18e 100755 --- a/nuttx/arch/z16/src/z16f/z16f_head.S +++ b/nuttx/arch/z16/src/z16f/z16f_head.S @@ -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 */ |