Changeset 20f78a3 in rtems


Ignore:
Timestamp:
Mar 23, 2004, 1:13:17 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e1908de
Parents:
39cefdd
Message:

2004-03-23 Ralf Corsepius <ralf_corsepius@…>

  • itron/include/itronsys/mbox.h, itron/include/itronsys/types.h, itron/include/rtems/itron/eventflags.h, itron/include/rtems/itron/fmempool.h, itron/include/rtems/itron/mbox.h, itron/include/rtems/itron/msgbuffer.h, itron/include/rtems/itron/port.h, itron/include/rtems/itron/semaphore.h, itron/include/rtems/itron/task.h, itron/include/rtems/itron/vmempool.h, itron/inline/rtems/itron/semaphore.inl, itron/macros/rtems/itron/semaphore.inl, itron/src/eventflags.c, itron/src/fmempool.c, itron/src/itronsem.c, itron/src/mbox.c, itron/src/msgbuffer.c, itron/src/port.c, itron/src/snd_mbx.c, itron/src/task.c, itron/src/trcv_mbx.c, itron/src/vmempool.c: Convert to using c99 fixed size types.
Location:
cpukit
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r39cefdd r20f78a3  
     12004-03-23      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * itron/include/itronsys/mbox.h, itron/include/itronsys/types.h,
     4        itron/include/rtems/itron/eventflags.h,
     5        itron/include/rtems/itron/fmempool.h,
     6        itron/include/rtems/itron/mbox.h,
     7        itron/include/rtems/itron/msgbuffer.h,
     8        itron/include/rtems/itron/port.h,
     9        itron/include/rtems/itron/semaphore.h,
     10        itron/include/rtems/itron/task.h,
     11        itron/include/rtems/itron/vmempool.h,
     12        itron/inline/rtems/itron/semaphore.inl,
     13        itron/macros/rtems/itron/semaphore.inl, itron/src/eventflags.c,
     14        itron/src/fmempool.c, itron/src/itronsem.c, itron/src/mbox.c,
     15        itron/src/msgbuffer.c, itron/src/port.c, itron/src/snd_mbx.c,
     16        itron/src/task.c, itron/src/trcv_mbx.c, itron/src/vmempool.c:
     17        Convert to using c99 fixed size types.
     18
    1192004-03-23      Ralf Corsepius <ralf_corsepius@rtems.org>
    220
  • cpukit/itron/include/itronsys/mbox.h

    r39cefdd r20f78a3  
    4848  INT       msgpri;   /* priority of each message */
    4949  /* VB   msgcont[];  XXX */
    50   unsigned8 msgcont[1];
     50  uint8_t  msgcont[1];
    5151} T_MSG;
    5252
  • cpukit/itron/include/itronsys/types.h

    r39cefdd r20f78a3  
    2323 */
    2424
    25 typedef signed8      B;       /* signed 8-bit integer */
    26 typedef signed16     H;       /* signed 16-bit integer */
    27 typedef signed32     W;       /* signed 32-bit integer */
    28 typedef unsigned8    UB;      /* unsigned 8-bit integer */
    29 typedef unsigned16   UH;      /* unsigned 16-bit integer */
    30 typedef unsigned32   UW;      /* unsigned 32-bit integer */
     25typedef int8_t        B;       /* signed 8-bit integer */
     26typedef int16_t       H;       /* signed 16-bit integer */
     27typedef int32_t       W;       /* signed 32-bit integer */
     28typedef uint8_t      UB;      /* unsigned 8-bit integer */
     29typedef uint16_t     UH;      /* unsigned 16-bit integer */
     30typedef uint32_t     UW;      /* unsigned 32-bit integer */
    3131
    32 typedef unsigned32   VW;      /* unpredictable data type (32-bit size) */
    33 typedef unsigned16   VH;      /* unpredictable data type (16-bit size) */
    34 typedef unsigned8    VB;      /* unpredictable data type (8-bit size) */
     32typedef uint32_t     VW;      /* unpredictable data type (32-bit size) */
     33typedef uint16_t     VH;      /* unpredictable data type (16-bit size) */
     34typedef uint8_t      VB;      /* unpredictable data type (8-bit size) */
    3535
    3636typedef void        *VP;      /* pointer to an unpredictable data type */
     
    5454 */
    5555
    56 typedef signed32   INT;    /* Signed integer (bit width of processor) */
    57 typedef unsigned32 UINT;   /* Unsigned integer (bit width of processor) */
     56typedef int32_t     INT;    /* Signed integer (bit width of processor) */
     57typedef uint32_t  UINT;   /* Unsigned integer (bit width of processor) */
    5858typedef boolean    BOOL;   /* Boolean value.  TRUE (1) or FALSE (0). */
    59 typedef signed16   FN;     /* Function code. Signed integer. Maximum 2 bytes. */
     59typedef int16_t     FN;     /* Function code. Signed integer. Maximum 2 bytes. */
    6060typedef int        ID;     /* Object ID number (???id) */
    6161                           /*   Value range depends on the system.  Usually */
     
    6464                           /*   connection function is supported. */
    6565
    66 typedef unsigned32 BOOL_ID;/* Boolean value or ID number */
     66typedef uint32_t  BOOL_ID;/* Boolean value or ID number */
    6767
    68 typedef signed32 HNO;      /* Handler number */
    69 typedef signed32 RNO;      /* Rendezvous number */
    70 typedef signed32 NODE;     /* Node Number.  Usually a signed integer. */
    71 typedef signed32 ATR;      /* Object or handler attribute. */
     68typedef int32_t  HNO;      /* Handler number */
     69typedef int32_t  RNO;      /* Rendezvous number */
     70typedef int32_t  NODE;     /* Node Number.  Usually a signed integer. */
     71typedef int32_t  ATR;      /* Object or handler attribute. */
    7272                           /*   An unsigned integer. */
    73 typedef signed32 ER;       /* Error code.  A signed integer. */
    74 typedef unsigned32 PRI;    /* Task priority.  A signed integer. */
    75 typedef signed32 TMO;      /* Timeout value.  A signed integer. */
     73typedef int32_t  ER;       /* Error code.  A signed integer. */
     74typedef uint32_t  PRI;    /* Task priority.  A signed integer. */
     75typedef int32_t  TMO;      /* Timeout value.  A signed integer. */
    7676                           /*   TMO_POL = 0 indicates polling, */
    7777                           /*   while TMO_FEVR = -1 indicates wait forever. */
  • cpukit/itron/include/rtems/itron/eventflags.h

    r39cefdd r20f78a3  
    2525typedef struct {
    2626  ITRON_Objects_Control   Object;
    27   unsigned32              XXX_more_stuff_goes_here;
     27  uint32_t                XXX_more_stuff_goes_here;
    2828}   ITRON_Eventflags_Control;
    2929
     
    4444
    4545void _ITRON_Eventflags_Manager_initialization(
    46   unsigned32 maximum_eventflags
     46  uint32_t  maximum_eventflags
    4747);
    4848
  • cpukit/itron/include/rtems/itron/fmempool.h

    r39cefdd r20f78a3  
    2626typedef struct {
    2727  ITRON_Objects_Control   Object;
    28   unsigned32              XXX_more_stuff_goes_here;
     28  uint32_t                XXX_more_stuff_goes_here;
    2929}   ITRON_Fixed_memory_pool_Control;
    3030
     
    4545
    4646void _ITRON_Fixed_memory_pool_Manager_initialization(
    47   unsigned32 maximum_fixed_memory_pools
     47  uint32_t  maximum_fixed_memory_pools
    4848);
    4949
  • cpukit/itron/include/rtems/itron/mbox.h

    r39cefdd r20f78a3  
    2626typedef struct {
    2727  ITRON_Objects_Control       Object;
    28   unsigned32                  count;
     28  uint32_t                    count;
    2929  boolean                     do_message_priority;
    3030  CORE_message_queue_Control  message_queue;
     
    4747
    4848void _ITRON_Mailbox_Manager_initialization(
    49   unsigned32 maximum_mailboxes
     49  uint32_t  maximum_mailboxes
    5050);
    5151
  • cpukit/itron/include/rtems/itron/msgbuffer.h

    r39cefdd r20f78a3  
    4747
    4848void _ITRON_Message_buffer_Manager_initialization(
    49   unsigned32 maximum_message_buffers
     49  uint32_t  maximum_message_buffers
    5050);
    5151
  • cpukit/itron/include/rtems/itron/port.h

    r39cefdd r20f78a3  
    2525typedef struct {
    2626  ITRON_Objects_Control   Object;
    27   unsigned32              XXX_more_stuff_goes_here;
     27  uint32_t                XXX_more_stuff_goes_here;
    2828}   ITRON_Port_Control;
    2929
     
    4444
    4545void _ITRON_Port_Manager_initialization(
    46   unsigned32 maximum_ports
     46  uint32_t  maximum_ports
    4747);
    4848
  • cpukit/itron/include/rtems/itron/semaphore.h

    r39cefdd r20f78a3  
    4646
    4747void _ITRON_Semaphore_Manager_initialization(
    48   unsigned32 maximum_semaphores
     48  uint32_t  maximum_semaphores
    4949);
    5050
  • cpukit/itron/include/rtems/itron/task.h

    r39cefdd r20f78a3  
    4040
    4141typedef struct {
    42   unsigned32                unused;  /* no use for the API extension */
     42  uint32_t                  unused;  /* no use for the API extension */
    4343                                     /*   structure for ITRON identified yet */
    4444}  ITRON_API_Control;
     
    5757ITRON_EXTERN itron_initialization_tasks_table
    5858               *_ITRON_Task_User_initialization_tasks;
    59 ITRON_EXTERN unsigned32   _ITRON_Task_Number_of_initialization_tasks;
     59ITRON_EXTERN uint32_t     _ITRON_Task_Number_of_initialization_tasks;
    6060
    6161
     
    6767
    6868void _ITRON_Task_Manager_initialization(
    69   unsigned32                        maximum_tasks,
    70   unsigned32                        number_of_initialization_tasks,
     69  uint32_t                          maximum_tasks,
     70  uint32_t                          number_of_initialization_tasks,
    7171  itron_initialization_tasks_table *user_tasks
    7272);
  • cpukit/itron/include/rtems/itron/vmempool.h

    r39cefdd r20f78a3  
    2626typedef struct {
    2727  ITRON_Objects_Control   Object;
    28   unsigned32              XXX_more_stuff_goes_here;
     28  uint32_t                XXX_more_stuff_goes_here;
    2929}   ITRON_Variable_memory_pool_Control;
    3030
     
    4545
    4646void _ITRON_Variable_memory_pool_Manager_initialization(
    47   unsigned32 maximum_variable_memory_pools
     47  uint32_t  maximum_variable_memory_pools
    4848);
    4949
  • cpukit/itron/inline/rtems/itron/semaphore.inl

    r39cefdd r20f78a3  
    154154
    155155RTEMS_INLINE_ROUTINE ER  _ITRON_Semaphore_Translate_core_semaphore_return_code (
    156   unsigned32 the_semaphore_status
     156  uint32_t  the_semaphore_status
    157157)
    158158{
  • cpukit/itron/macros/rtems/itron/semaphore.inl

    r39cefdd r20f78a3  
    7373/* XXX fix me */
    7474static  ER _ITRON_Semaphore_Translate_core_semaphore_return_code (
    75   unsigned32 the_semaphore_status
     75  uint32_t  the_semaphore_status
    7676)
    7777{
  • cpukit/itron/src/eventflags.c

    r39cefdd r20f78a3  
    3030
    3131void _ITRON_Eventflags_Manager_initialization(
    32   unsigned32 maximum_eventflags
     32  uint32_t  maximum_eventflags
    3333)
    3434{
  • cpukit/itron/src/fmempool.c

    r39cefdd r20f78a3  
    3131
    3232void _ITRON_Fixed_memory_pool_Manager_initialization(
    33   unsigned32 maximum_fixed_memory_pools
     33  uint32_t  maximum_fixed_memory_pools
    3434)
    3535{
  • cpukit/itron/src/itronsem.c

    r39cefdd r20f78a3  
    3434
    3535void _ITRON_Semaphore_Manager_initialization(
    36   unsigned32 maximum_semaphores
     36  uint32_t  maximum_semaphores
    3737)
    3838{
  • cpukit/itron/src/mbox.c

    r39cefdd r20f78a3  
    3333
    3434void _ITRON_Mailbox_Manager_initialization(
    35   unsigned32 maximum_mailboxes
     35  uint32_t  maximum_mailboxes
    3636)
    3737{
  • cpukit/itron/src/msgbuffer.c

    r39cefdd r20f78a3  
    3434
    3535void _ITRON_Message_buffer_Manager_initialization(
    36   unsigned32 maximum_message_buffers
     36  uint32_t  maximum_message_buffers
    3737)
    3838{
  • cpukit/itron/src/port.c

    r39cefdd r20f78a3  
    3030
    3131void _ITRON_Port_Manager_initialization(
    32   unsigned32 maximum_ports
     32  uint32_t  maximum_ports
    3333)
    3434{
  • cpukit/itron/src/snd_mbx.c

    r39cefdd r20f78a3  
    3232  register ITRON_Mailbox_Control *the_mailbox;
    3333  Objects_Locations                location;
    34   unsigned32                       message_priority;
     34  uint32_t                         message_priority;
    3535  void                            *message_contents;
    3636  CORE_message_queue_Status        msg_status;
  • cpukit/itron/src/task.c

    r39cefdd r20f78a3  
    8080void _ITRON_Task_Initialize_user_tasks( void )
    8181{
    82   unsigned32                        index;
    83   unsigned32                        maximum;
     82  uint32_t                          index;
     83  uint32_t                          maximum;
    8484  ER                                return_value;
    8585  itron_initialization_tasks_table *user_tasks;
     
    179179
    180180void _ITRON_Task_Manager_initialization(
    181   unsigned32                        maximum_tasks,
    182   unsigned32                        number_of_initialization_tasks,
     181  uint32_t                          maximum_tasks,
     182  uint32_t                          number_of_initialization_tasks,
    183183  itron_initialization_tasks_table *user_tasks
    184184)
  • cpukit/itron/src/trcv_mbx.c

    r39cefdd r20f78a3  
    3535  boolean                         wait;
    3636  Objects_Locations               location;
    37   unsigned32                      size;
     37  uint32_t                        size;
    3838
    3939  if (!ppk_msg)
  • cpukit/itron/src/vmempool.c

    r39cefdd r20f78a3  
    3131
    3232void _ITRON_Variable_memory_pool_Manager_initialization(
    33   unsigned32 maximum_variable_memory_pools
     33  uint32_t  maximum_variable_memory_pools
    3434)
    3535{
Note: See TracChangeset for help on using the changeset viewer.