Changeset 2728d9cf in rtems


Ignore:
Timestamp:
Dec 2, 2002, 7:16:37 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2e332a9
Parents:
bbad6f0
Message:

2002-12-02 Joel Sherrill <joel@…>

  • include/rtems/score/object.h, include/rtems/score/tod.h: Added casts to eliminate warnings on 16 bit targets like the h8300.
Location:
cpukit/score
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/ChangeLog

    rbbad6f0 r2728d9cf  
     12002-12-02      Joel Sherrill <joel@OARcorp.com>
     2
     3        * include/rtems/score/object.h, include/rtems/score/tod.h:
     4        Added casts to eliminate warnings on 16 bit targets like the h8300.
     5
    162002-11-14      Joel Sherrill <joel@OARcorp.com>
    27
  • cpukit/score/include/rtems/score/object.h

    rbbad6f0 r2728d9cf  
    7575#define OBJECTS_CLASS_START_BIT 27
    7676
    77 #define OBJECTS_INDEX_MASK      0x0000ffff
    78 #define OBJECTS_NODE_MASK       0x00ff0000
    79 #define OBJECTS_API_MASK        0x07000000
    80 #define OBJECTS_CLASS_MASK      0xf8000000
    81 
    82 #define OBJECTS_INDEX_VALID_BITS  0x0000ffff
    83 #define OBJECTS_NODE_VALID_BITS   0x000000ff
    84 #define OBJECTS_API_VALID_BITS    0x00000007
    85 #define OBJECTS_CLASS_VALID_BITS  0x0000001f
     77#define OBJECTS_INDEX_MASK      (Objects_Id)0x0000ffff
     78#define OBJECTS_NODE_MASK       (Objects_Id)0x00ff0000
     79#define OBJECTS_API_MASK        (Objects_Id)0x07000000
     80#define OBJECTS_CLASS_MASK      (Objects_Id)0xf8000000
     81
     82#define OBJECTS_INDEX_VALID_BITS  (Objects_Id)0x0000ffff
     83#define OBJECTS_NODE_VALID_BITS   (Objects_Id)0x000000ff
     84#define OBJECTS_API_VALID_BITS    (Objects_Id)0x00000007
     85#define OBJECTS_CLASS_VALID_BITS  (Objects_Id)0x0000001f
    8686
    8787/*
  • cpukit/score/include/rtems/score/tod.h

    rbbad6f0 r2728d9cf  
    2828 */
    2929
    30 #define TOD_SECONDS_PER_MINUTE 60
    31 #define TOD_MINUTES_PER_HOUR   60
    32 #define TOD_MONTHS_PER_YEAR    12
    33 #define TOD_DAYS_PER_YEAR      365
    34 #define TOD_HOURS_PER_DAY      24
    35 #define TOD_SECONDS_PER_DAY    (TOD_SECONDS_PER_MINUTE * \
     30#define TOD_SECONDS_PER_MINUTE (unsigned32)60
     31#define TOD_MINUTES_PER_HOUR   (unsigned32)60
     32#define TOD_MONTHS_PER_YEAR    (unsigned32)12
     33#define TOD_DAYS_PER_YEAR      (unsigned32)365
     34#define TOD_HOURS_PER_DAY      (unsigned32)24
     35#define TOD_SECONDS_PER_DAY    (unsigned32) (TOD_SECONDS_PER_MINUTE * \
    3636                                TOD_MINUTES_PER_HOUR   * \
    3737                                TOD_HOURS_PER_DAY)
     
    3939#define TOD_SECONDS_PER_NON_LEAP_YEAR (365 * TOD_SECONDS_PER_DAY)
    4040
    41 #define TOD_MILLISECONDS_PER_SECOND     1000
    42 #define TOD_MICROSECONDS_PER_SECOND     1000000
    43 #define TOD_NANOSECONDS_PER_SECOND      1000000000
    44 #define TOD_NANOSECONDS_PER_MICROSECOND 1000
     41#define TOD_MILLISECONDS_PER_SECOND     (unsigned32)1000
     42#define TOD_MICROSECONDS_PER_SECOND     (unsigned32)1000000
     43#define TOD_NANOSECONDS_PER_SECOND      (unsigned32)1000000000
     44#define TOD_NANOSECONDS_PER_MICROSECOND (unsigned32)1000
    4545
    4646/*
Note: See TracChangeset for help on using the changeset viewer.