diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-13 15:13:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-13 15:13:37 +0000 |
commit | c37fdc28c2cfdf41a549ba245c1cad85b757e53a (patch) | |
tree | 2812daa6196bae9eb0a4233aa1b28f6eb7902c44 /nuttx/examples/ostest/barrier.c | |
parent | a3933a716fd10ac4c87089ce7fac43ee24b3a2d4 (diff) | |
download | px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.tar.gz px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.tar.bz2 px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.zip |
Eliminate some hcs12 compile errors/warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2329 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest/barrier.c')
-rw-r--r-- | nuttx/examples/ostest/barrier.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/examples/ostest/barrier.c b/nuttx/examples/ostest/barrier.c index 6b33ac0e3..56c0b75b1 100644 --- a/nuttx/examples/ostest/barrier.c +++ b/nuttx/examples/ostest/barrier.c @@ -1,7 +1,7 @@ /**************************************************************************** * examples/ostest/barrier.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -48,6 +48,8 @@ * Definitions ****************************************************************************/ +#define HALF_SECOND 500000L + /**************************************************************************** * Private Data ****************************************************************************/ @@ -69,7 +71,7 @@ static void *barrier_func(void *parameter) printf("barrier_func: Thread %d started\n", id); #ifndef CONFIG_DISABLE_SIGNALS - usleep(500*1000); + usleep(HALF_SECOND); #endif /* Wait at the barrier until all threads are synchronized. */ @@ -96,7 +98,7 @@ static void *barrier_func(void *parameter) } #ifndef CONFIG_DISABLE_SIGNALS - usleep(500*1000); + usleep(HALF_SECOND); #endif printf("barrier_func: Thread %d done\n", id); return NULL; |