From 45a7fe13bc802b2a54b2de8612f92707367cc701 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 24 Jan 2008 23:23:49 +0000 Subject: [PATCH] Add z16f LED logic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@563 42af7a65-404d-4744-a932-0658087f49c3 --- arch/z16/src/z16f/z16f_head.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/z16/src/z16f/z16f_head.S b/arch/z16/src/z16f/z16f_head.S index ca69b5ddd2..300ff98df6 100755 --- a/arch/z16/src/z16f/z16f_head.S +++ b/arch/z16/src/z16f/z16f_head.S @@ -46,6 +46,9 @@ **************************************************************************/ xref _z16f_lowinit:EROM +#ifdef CONFIG_ARCH_LEDS + xref _up_ledinit:EROM +#endif #if defined(CONFIG_ARCH_LOWPUTC) || defined(CONFIG_ARCH_LOWGETC) xref _z16f_lowuartinit:EROM #endif @@ -164,6 +167,11 @@ _reset: ld sp, #(_near_stack+1) /* Set Stack Pointer to the top of internal RAM */ clr fp + /* Initialize onboard LEDs */ + +#ifdef CONFIG_ARCH_LEDS + bl _up_ledinit +#endif /* Perform VERY early UART initialization so that we can use it here */ #if defined(CONFIG_ARCH_LOWPUTC) || defined(CONFIG_ARCH_LOWGETC)