diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-01 22:19:20 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-01 22:19:20 +0000 |
commit | 51f96a502ea130e3d83eff679b560608a8246a75 (patch) | |
tree | e369db19378fc1244ded2d76e0c5e86765305eeb /nuttx/examples/pashello | |
parent | 5551ed84bf3a90972b46c67808d8ed24e6ca07d8 (diff) | |
download | px4-nuttx-51f96a502ea130e3d83eff679b560608a8246a75.tar.gz px4-nuttx-51f96a502ea130e3d83eff679b560608a8246a75.tar.bz2 px4-nuttx-51f96a502ea130e3d83eff679b560608a8246a75.zip |
Added lseek()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@612 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/pashello')
-rw-r--r-- | nuttx/examples/pashello/pashello.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/examples/pashello/pashello.c b/nuttx/examples/pashello/pashello.c index 2aff2d961..4cd7f4921 100644 --- a/nuttx/examples/pashello/pashello.c +++ b/nuttx/examples/pashello/pashello.c @@ -100,12 +100,11 @@ static void prun(FAR struct pexec_s *st) * user_initialize ****************************************************************************/ +#ifndef CONFIG_HAVE_WEAKFUNCTIONS void user_initialize(void) { - /* Register the /dev/hello driver */ - - hello_register(); } +#endif /**************************************************************************** * user_start @@ -115,6 +114,10 @@ int user_start(int argc, FAR char *argv[]) { FAR struct pexec_s *st; + /* Register the /dev/hello driver */ + + hello_register(); + /* Load the POFF file */ st = pload("/dev/hello", CONFIG_PASHELLO_VARSTACKSIZE, CONFIG_PASHELLO_STRSTACKSIZE); |