diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-19 20:41:40 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-19 20:41:40 +0000 |
commit | 71989f8323da84187bb4b06ef9d4435d037d7a27 (patch) | |
tree | 01227ace93e2d30ac0c4ec5959aa8aaaed769539 /nuttx/arch/c5471/src/up_initialize.c | |
parent | 9de7429aec0c1f6bafcd03824f8b70cff7ee6461 (diff) | |
download | px4-nuttx-71989f8323da84187bb4b06ef9d4435d037d7a27.tar.gz px4-nuttx-71989f8323da84187bb4b06ef9d4435d037d7a27.tar.bz2 px4-nuttx-71989f8323da84187bb4b06ef9d4435d037d7a27.zip |
Progress with C5471 boot
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@8 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/c5471/src/up_initialize.c')
-rw-r--r-- | nuttx/arch/c5471/src/up_initialize.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/arch/c5471/src/up_initialize.c b/nuttx/arch/c5471/src/up_initialize.c index 62fdfd387..8b85ecd71 100644 --- a/nuttx/arch/c5471/src/up_initialize.c +++ b/nuttx/arch/c5471/src/up_initialize.c @@ -41,7 +41,6 @@ #include <sys/types.h> #include <debug.h> #include <nuttx/arch.h> -#include <nuttx/fs.h> #include "up_internal.h" /************************************************************ @@ -86,13 +85,15 @@ void up_initialize(void) up_irqinitialize(); - /* Attach and enable the timer interrupt */ + /* Initialize the system timer interrupt */ - up_disable_irq(C5471_IRQ_SYSTIMER); - irq_attach(C5471_IRQ_SYSTIMER, (xcpt_t)up_timerisr); - up_enable_irq(C5471_IRQ_SYSTIMER); + up_timerinit(); /* Register devices */ devnull_register(); /* Standard /dev/null */ + + /* Initialize the serial device driver */ + + up_serialinit(); } |