X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cfg%2Fcompiler.h;h=ed81d346384fc7f07bb74e4d2cb98f515e439ce9;hb=9ba9dcf2a59a952609e19154e11de3e2478cbf42;hp=3e2b1ab313b5cc275afd5ed5dd4e33898447bee7;hpb=522a88e7e200f90c9819d011bb790d4cb99367a7;p=bertos.git diff --git a/cfg/compiler.h b/cfg/compiler.h old mode 100755 new mode 100644 index 3e2b1ab3..ed81d346 --- a/cfg/compiler.h +++ b/cfg/compiler.h @@ -1,9 +1,34 @@ /** * \file * * * \brief Additional support macros for compiler independance @@ -14,6 +39,9 @@ /*#* *#* $Log$ + *#* Revision 1.24 2007/01/09 08:58:14 bernie + *#* Avoid dependency on cfg/compiler.h + *#* *#* Revision 1.23 2006/09/13 18:28:38 bernie *#* Reformat. *#* @@ -422,11 +450,16 @@ #define MTIME_INFINITE 0x7FFFL #else typedef int32_t ticks_t; /**< Type for time expressed in ticks. */ - typedef int32_t mtime_t; /**< Type for time expressed in milliseconds. */ + typedef int32_t utime_t; /**< Type for time expressed in microseconds. */ - #define SIZEOF_MTIME_T (32 / CPU_BITS_PER_CHAR) #define SIZEOF_UTIME_T (32 / CPU_BITS_PER_CHAR) - #define MTIME_INFINITE 0x7FFFFFFFL + + #ifndef DEVLIB_MTIME_DEFINED + #define DEVLIB_MTIME_DEFINED 1 /* Resolve conflict with */ + typedef int32_t mtime_t; /**< Type for time expressed in milliseconds. */ + #define SIZEOF_MTIME_T (32 / CPU_BITS_PER_CHAR) + #define MTIME_INFINITE 0x7FFFFFFFL + #endif #endif /** Bulk storage large enough for both pointers or integers. */