diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-23 13:07:29 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-23 13:07:29 +0000 |
commit | 39cefdda936dcd1e6336391efb85776dd7b86ef9 (patch) | |
tree | 48a1fd769bad2226ef47df632fd9faadb3de47bf /cpukit/posix/include/rtems/posix/timer.h | |
parent | 2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-39cefdda936dcd1e6336391efb85776dd7b86ef9.tar.bz2 |
2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>
* posix/include/rtems/posix/cond.h,
posix/include/rtems/posix/intr.h, posix/include/rtems/posix/key.h,
posix/include/rtems/posix/mqueue.h,
posix/include/rtems/posix/mutex.h,
posix/include/rtems/posix/pthread.h,
posix/include/rtems/posix/semaphore.h,
posix/include/rtems/posix/threadsup.h,
posix/include/rtems/posix/timer.h, posix/src/cond.c,
posix/src/intr.c, posix/src/key.c, posix/src/keycreate.c,
posix/src/keydelete.c, posix/src/keygetspecific.c,
posix/src/keyrundestructors.c, posix/src/keysetspecific.c,
posix/src/killinfo.c, posix/src/mqueue.c,
posix/src/mqueuerecvsupp.c, posix/src/mqueuesendsupp.c,
posix/src/mqueuetranslatereturncode.c, posix/src/mutex.c,
posix/src/posixintervaltotimespec.c,
posix/src/posixtimespecsubtract.c, posix/src/psignal.c,
posix/src/pthread.c, posix/src/ptimer1.c, posix/src/semaphore.c,
posix/src/sysconf.c: Convert to using c99 fixed size types.
Diffstat (limited to 'cpukit/posix/include/rtems/posix/timer.h')
-rw-r--r-- | cpukit/posix/include/rtems/posix/timer.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/posix/include/rtems/posix/timer.h b/cpukit/posix/include/rtems/posix/timer.h index 5726c270f5..607ac1d824 100644 --- a/cpukit/posix/include/rtems/posix/timer.h +++ b/cpukit/posix/include/rtems/posix/timer.h @@ -14,22 +14,22 @@ #define STATE_CREATE_RUN_C 0x03 /* Created timer and running */ #define STATE_CREATE_STOP_C 0x04 /* Created, ran and stopped timer */ /* Maximum number of nsec allowed */ -#define MAX_NSEC_C (unsigned32)1000000000 +#define MAX_NSEC_C (uint32_t )1000000000 #define MIN_NSEC_C 0 /* Minimum number of nsec allowew */ #define TIMER_RELATIVE_C 0 /* Indicates that the fire time is * relative to the current one */ #define SEC_TO_TICKS_C _TOD_Ticks_per_second /* Number of ticks in a second*/ /* Nanoseconds in a second */ -#define NSEC_PER_SEC_C (unsigned32)1000000000 +#define NSEC_PER_SEC_C (uint32_t )1000000000 #define NO_MORE_TIMERS_C 11 /* There is not available timers */ #define BAD_TIMER_C 11 /* The timer does not exist in the table */ -#define SECONDS_PER_YEAR_C (unsigned32)(360 * 24) * (unsigned32)(60 * 60) -#define SECONDS_PER_MONTH_C (unsigned32)( 30 * 24) * (unsigned32)(60 * 60) -#define SECONDS_PER_DAY_C (unsigned32)( 24 * 60) * (unsigned32)(60) -#define SECONDS_PER_HOUR_C (unsigned32)( 60 * 60 ) -#define SECONDS_PER_MINUTE_C (unsigned32)( 60 ) +#define SECONDS_PER_YEAR_C (uint32_t )(360 * 24) * (uint32_t )(60 * 60) +#define SECONDS_PER_MONTH_C (uint32_t )( 30 * 24) * (uint32_t )(60 * 60) +#define SECONDS_PER_DAY_C (uint32_t )( 24 * 60) * (uint32_t )(60) +#define SECONDS_PER_HOUR_C (uint32_t )( 60 * 60 ) +#define SECONDS_PER_MINUTE_C (uint32_t )( 60 ) /* @@ -45,8 +45,8 @@ typedef struct { struct sigevent inf; /* Information associated to the timer */ timer_t timer_id; /* Created timer identifier */ struct itimerspec timer_data; /* Timing data of the timer */ - unsigned32 ticks; /* Number of ticks of the initialization */ - unsigned32 overrun; /* Number of expirations of the timer */ + uint32_t ticks; /* Number of ticks of the initialization */ + uint32_t overrun; /* Number of expirations of the timer */ rtems_time_of_day time; /* Time in which the timer was started */ } POSIX_Timer_Control; |