diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-24 23:23:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-24 23:23:49 +0000 |
commit | c93c3e4c38b095e65cfc374f1cfee094e141f0fb (patch) | |
tree | af39c91a06c1e25974256502a83ae8a00c23da4d /nuttx/arch/z16/src/z16f/z16f_head.S | |
parent | b146fd97783dd3b0784d2af61dedc541a53b1140 (diff) | |
download | px4-nuttx-c93c3e4c38b095e65cfc374f1cfee094e141f0fb.tar.gz px4-nuttx-c93c3e4c38b095e65cfc374f1cfee094e141f0fb.tar.bz2 px4-nuttx-c93c3e4c38b095e65cfc374f1cfee094e141f0fb.zip |
Add z16f LED logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@563 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z16/src/z16f/z16f_head.S')
-rwxr-xr-x | nuttx/arch/z16/src/z16f/z16f_head.S | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/arch/z16/src/z16f/z16f_head.S b/nuttx/arch/z16/src/z16f/z16f_head.S index ca69b5ddd..300ff98df 100755 --- a/nuttx/arch/z16/src/z16f/z16f_head.S +++ b/nuttx/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)
|