Changeset 0720ff4 in rtems


Ignore:
Timestamp:
03/28/04 07:20:11 (20 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c50e978
Parents:
02c7c81
Message:

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

  • include/timesys.h, tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c, tm20/task1.c, tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Convert to using c99 fixed size types.
Location:
testsuites/tmtests
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • testsuites/tmtests/ChangeLog

    r02c7c81 r0720ff4  
     12004-03-28      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * include/timesys.h, tm01/task1.c, tm02/task1.c, tm03/task1.c,
     4        tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c,
     5        tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c,
     6        tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c,
     7        tm16/task1.c, tm17/task1.c, tm18/task1.c, tm20/task1.c,
     8        tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c,
     9        tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c,
     10        tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Convert to using
     11        c99 fixed size types.
     12
    1132004-03-25      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    214
  • testsuites/tmtests/include/timesys.h

    r02c7c81 r0720ff4  
    5858/* variables */
    5959
    60 TEST_EXTERN volatile rtems_unsigned32 end_time;   /* ending time variable */
    61 TEST_EXTERN volatile rtems_unsigned32 overhead;   /* loop overhead variable */
     60TEST_EXTERN volatile uint32_t  end_time;   /* ending time variable */
     61TEST_EXTERN volatile uint32_t  overhead;   /* loop overhead variable */
    6262
    6363TEST_EXTERN rtems_id   Task_id[ OPERATION_COUNT+1 ];   /* array of task ids */
  • testsuites/tmtests/tm01/task1.c

    r02c7c81 r0720ff4  
    5454)
    5555{
    56   rtems_unsigned32  semaphore_obtain_time;
    57   rtems_unsigned32  semaphore_release_time;
    58   rtems_unsigned32  semaphore_obtain_no_wait_time;
    59   rtems_unsigned32  semaphore_obtain_loop_time;
    60   rtems_unsigned32  semaphore_release_loop_time;
    61   rtems_unsigned32  index;
    62   rtems_unsigned32  iterations;
     56  uint32_t    semaphore_obtain_time;
     57  uint32_t    semaphore_release_time;
     58  uint32_t    semaphore_obtain_no_wait_time;
     59  uint32_t    semaphore_obtain_loop_time;
     60  uint32_t    semaphore_release_loop_time;
     61  uint32_t    index;
     62  uint32_t    iterations;
    6363  rtems_name        name;
    6464  rtems_id          smid;
  • testsuites/tmtests/tm02/task1.c

    r02c7c81 r0720ff4  
    5252{
    5353  rtems_status_code   status;
    54   rtems_unsigned32    index;
     54  uint32_t      index;
    5555  rtems_task_priority priority;
    5656
  • testsuites/tmtests/tm03/task1.c

    r02c7c81 r0720ff4  
    6060{
    6161  rtems_status_code   status;
    62   rtems_unsigned32    index;
     62  uint32_t      index;
    6363  rtems_id            task_id;
    6464  rtems_task_priority priority;
  • testsuites/tmtests/tm04/task1.c

    r02c7c81 r0720ff4  
    1616rtems_id         Semaphore_id;
    1717rtems_id         Task_id[OPERATION_COUNT+1];
    18 rtems_unsigned32 task_count;
     18uint32_t  task_count;
    1919rtems_id         Highest_id;
    2020
     
    5252{
    5353  rtems_status_code status;
    54   rtems_unsigned32  index;
     54  uint32_t    index;
    5555
    5656  task_count = OPERATION_COUNT;
     
    137137{
    138138  rtems_status_code   status;
    139   rtems_unsigned32    index;
     139  uint32_t      index;
    140140  rtems_name          name;
    141141  rtems_task_priority old_priority;
  • testsuites/tmtests/tm05/task1.c

    r02c7c81 r0720ff4  
    1515
    1616rtems_id         Task_id[OPERATION_COUNT+1];
    17 rtems_unsigned32 Task_index;
     17uint32_t  Task_index;
    1818
    1919rtems_task High_task(
     
    5252  rtems_task_entry    task_entry;
    5353  rtems_task_priority priority;
    54   rtems_unsigned32    index;
     54  uint32_t      index;
    5555
    5656  priority = 250;
  • testsuites/tmtests/tm06/task1.c

    r02c7c81 r0720ff4  
    1616rtems_id Task_id[ OPERATION_COUNT + 1 ];
    1717
    18 rtems_unsigned32 Task_restarted;
     18uint32_t  Task_restarted;
    1919
    2020rtems_task null_task(
     
    7070{
    7171  rtems_status_code status;
    72   rtems_unsigned32  index;
     72  uint32_t    index;
    7373
    7474  if ( Task_restarted == OPERATION_COUNT )
  • testsuites/tmtests/tm07/task1.c

    r02c7c81 r0720ff4  
    5151  rtems_task_priority priority;
    5252  rtems_task_entry    task_entry;
    53   rtems_unsigned32    index;
     53  uint32_t      index;
    5454
    5555  priority = 250;
  • testsuites/tmtests/tm08/task1.c

    r02c7c81 r0720ff4  
    7676{
    7777  rtems_status_code   status;
    78   rtems_unsigned32    index;
     78  uint32_t      index;
    7979  rtems_task_priority old_priority;
    8080  rtems_time_of_day   time;
    81   rtems_unsigned32    old_note;
    82   rtems_unsigned32    old_mode;
     81  uint32_t      old_note;
     82  uint32_t      old_mode;
    8383
    8484  Timer_initialize();
  • testsuites/tmtests/tm09/task1.c

    r02c7c81 r0720ff4  
    9292void queue_test()
    9393{
    94   rtems_unsigned32  send_loop_time;
    95   rtems_unsigned32  urgent_loop_time;
    96   rtems_unsigned32  receive_loop_time;
    97   rtems_unsigned32  send_time;
    98   rtems_unsigned32  urgent_time;
    99   rtems_unsigned32  receive_time;
    100   rtems_unsigned32  empty_flush_time;
    101   rtems_unsigned32  flush_time;
    102   rtems_unsigned32  empty_flush_count;
    103   rtems_unsigned32  flush_count;
    104   rtems_unsigned32  index;
    105   rtems_unsigned32  iterations;
     94  uint32_t    send_loop_time;
     95  uint32_t    urgent_loop_time;
     96  uint32_t    receive_loop_time;
     97  uint32_t    send_time;
     98  uint32_t    urgent_time;
     99  uint32_t    receive_time;
     100  uint32_t    empty_flush_time;
     101  uint32_t    flush_time;
     102  uint32_t    empty_flush_count;
     103  uint32_t    flush_count;
     104  uint32_t    index;
     105  uint32_t    iterations;
    106106  long              buffer[4];
    107107  rtems_status_code status;
    108   rtems_unsigned32  size;
     108  uint32_t    size;
    109109
    110110  send_loop_time    = 0;
  • testsuites/tmtests/tm10/task1.c

    r02c7c81 r0720ff4  
    4949void test_init()
    5050{
    51   rtems_unsigned32    index;
    52   rtems_unsigned32    size;
     51  uint32_t      index;
     52  uint32_t      size;
    5353  rtems_task_entry    task_entry;
    5454  rtems_status_code   status;
     
    118118)
    119119{
    120   rtems_unsigned32 size;
     120  uint32_t  size;
    121121 
    122122  Timer_initialize();
     
    134134)
    135135{
    136   rtems_unsigned32 size;
     136  uint32_t  size;
    137137 
    138138  (void) rtems_message_queue_receive(
  • testsuites/tmtests/tm11/task1.c

    r02c7c81 r0720ff4  
    6565)
    6666{
    67   rtems_unsigned32    index;
     67  uint32_t      index;
    6868  rtems_task_entry    task_entry;
    6969  rtems_task_priority priority;
     
    115115)
    116116{
    117   rtems_unsigned32 size;
     117  uint32_t  size;
    118118
    119119  (void) rtems_message_queue_receive(
     
    132132)
    133133{
    134   rtems_unsigned32 size;
     134  uint32_t  size;
    135135 
    136136  (void) rtems_message_queue_receive(
  • testsuites/tmtests/tm12/task1.c

    r02c7c81 r0720ff4  
    6464)
    6565{
    66   rtems_unsigned32     index;
     66  uint32_t       index;
    6767  rtems_task_entry     task_entry;
    6868  rtems_task_priority  priority;
     
    107107)
    108108{
    109   rtems_unsigned32  index;
     109  uint32_t    index;
    110110
    111111  Timer_initialize();
     
    135135)
    136136{
    137   rtems_unsigned32 size;
     137  uint32_t  size;
    138138
    139139  (void) rtems_message_queue_receive(
  • testsuites/tmtests/tm13/task1.c

    r02c7c81 r0720ff4  
    6464)
    6565{
    66   rtems_unsigned32    index;
     66  uint32_t      index;
    6767  rtems_task_entry    task_entry;
    6868  rtems_task_priority priority;
     
    114114)
    115115{
    116   rtems_unsigned32 size;
     116  uint32_t  size;
    117117
    118118  (void) rtems_message_queue_receive(
     
    131131)
    132132{
    133   rtems_unsigned32 size;
     133  uint32_t  size;
    134134
    135135  (void) rtems_message_queue_receive(
  • testsuites/tmtests/tm14/task1.c

    r02c7c81 r0720ff4  
    6464)
    6565{
    66   rtems_unsigned32     index;
     66  uint32_t       index;
    6767  rtems_task_entry     task_entry;
    6868  rtems_task_priority  priority;
     
    107107)
    108108{
    109   rtems_unsigned32  index;
     109  uint32_t    index;
    110110
    111111  Timer_initialize();
     
    135135)
    136136{
    137   rtems_unsigned32 size;
     137  uint32_t  size;
    138138
    139139  (void) rtems_message_queue_receive(
  • testsuites/tmtests/tm15/task1.c

    r02c7c81 r0720ff4  
    1414#include "system.h"
    1515
    16 rtems_unsigned32 time_set, eventout;
     16uint32_t  time_set, eventout;
    1717
    1818rtems_task High_tasks(
     
    4545{
    4646  rtems_id          id;
    47   rtems_unsigned32  index;
     47  uint32_t    index;
    4848  rtems_event_set   event_out;
    4949  rtems_status_code status;
     
    131131)
    132132{
    133   rtems_unsigned32  index;
     133  uint32_t    index;
    134134  rtems_event_set   event_out;
    135135
  • testsuites/tmtests/tm16/task1.c

    r02c7c81 r0720ff4  
    1414#include "system.h"
    1515
    16 rtems_unsigned32 Task_count;
     16uint32_t  Task_count;
    1717
    1818rtems_task test_init(
     
    6262  rtems_task_priority priority;
    6363  rtems_status_code   status;
    64   rtems_unsigned32    index;
     64  uint32_t      index;
    6565  rtems_task_entry    task_entry;
    6666
  • testsuites/tmtests/tm17/task1.c

    r02c7c81 r0720ff4  
    1414#include "system.h"
    1515
    16 rtems_unsigned32 Task_count;
     16uint32_t  Task_count;
    1717rtems_task_priority Task_priority;
    1818
     
    3434{
    3535  rtems_task_entry  task_entry;
    36   rtems_unsigned32  index;
     36  uint32_t    index;
    3737  rtems_status_code status;
    3838
     
    105105)
    106106{
    107   rtems_unsigned32 index;
     107  uint32_t  index;
    108108
    109109  end_time = Read_timer();
  • testsuites/tmtests/tm18/task1.c

    r02c7c81 r0720ff4  
    1414#include "system.h"
    1515
    16 rtems_unsigned32 taskcount;
     16uint32_t  taskcount;
    1717rtems_task_priority taskpri;
    1818
     
    5252  rtems_id          id;
    5353  rtems_task_entry  task_entry;
    54   rtems_unsigned32  index;
     54  uint32_t    index;
    5555  rtems_status_code status;
    5656
  • testsuites/tmtests/tm20/task1.c

    r02c7c81 r0720ff4  
    1919rtems_id         Region_id;
    2020rtems_name       Region_name;
    21 rtems_unsigned8  Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;
     21uint8_t    Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;
    2222
    2323#define PARTITION_SIZE         2048
     
    2828rtems_id         Partition_id;
    2929rtems_name       Partition_name;
    30 rtems_unsigned8  Partition_area[ PARTITION_SIZE ] CPU_STRUCTURE_ALIGNMENT;
     30uint8_t    Partition_area[ PARTITION_SIZE ] CPU_STRUCTURE_ALIGNMENT;
    3131
    3232void  *Buffer_address_1;
     
    3535void  *Buffer_address_4;
    3636
    37 rtems_unsigned32 buffer_count;
     37uint32_t  buffer_count;
    3838
    3939void  *Buffer_addresses[ PARTITION_BUFFER_POINTERS ];
     
    9191)
    9292{
    93   rtems_unsigned32    index;
     93  uint32_t      index;
    9494  rtems_mode          previous_mode;
    9595  rtems_task_priority previous_priority;
  • testsuites/tmtests/tm21/task1.c

    r02c7c81 r0720ff4  
    1414#include "system.h"
    1515
    16 rtems_unsigned8 Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;
    17 rtems_unsigned8 Partition_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;
     16uint8_t  Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;
     17uint8_t  Partition_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;
    1818
    1919rtems_task Task_1(
     
    5555)
    5656{
    57   rtems_unsigned32  index;
     57  uint32_t    index;
    5858  rtems_id          id;
    5959  rtems_status_code status;
  • testsuites/tmtests/tm22/task1.c

    r02c7c81 r0720ff4  
    8686)
    8787{
    88   rtems_unsigned32  count;
     88  uint32_t    count;
    8989  rtems_status_code status;
    9090
     
    115115{
    116116  rtems_id          id;
    117   rtems_unsigned32  index;
    118   rtems_unsigned32  count;
    119   rtems_unsigned32  size;
     117  uint32_t    index;
     118  uint32_t    count;
     119  uint32_t    size;
    120120  rtems_status_code status;
    121121
     
    188188)
    189189{
    190   rtems_unsigned32  count;
     190  uint32_t    count;
    191191
    192192  Timer_initialize();
  • testsuites/tmtests/tm23/task1.c

    r02c7c81 r0720ff4  
    4242
    4343  rtems_task_priority priority;
    44   rtems_unsigned32    index;
     44  uint32_t      index;
    4545  rtems_id            id;
    4646  rtems_task_entry    task_entry;
     
    9494)
    9595{
    96   rtems_unsigned32  index;
     96  uint32_t    index;
    9797  rtems_status_code status;
    9898  int i;
  • testsuites/tmtests/tm24/task1.c

    r02c7c81 r0720ff4  
    1414#include "system.h"
    1515
    16 rtems_unsigned32 Task_count;
     16uint32_t  Task_count;
    1717
    1818rtems_task Tasks(
     
    2929{
    3030  rtems_id          id;
    31   rtems_unsigned32  index;
     31  uint32_t    index;
    3232  rtems_status_code status;
    3333
     
    7272{
    7373  rtems_status_code status;
    74   rtems_unsigned32  index;
     74  uint32_t    index;
    7575
    7676  Timer_initialize();
  • testsuites/tmtests/tm25/task1.c

    r02c7c81 r0720ff4  
    2929{
    3030  rtems_id          task_id;
    31   rtems_unsigned32  index;
     31  uint32_t    index;
    3232  rtems_status_code status;
    3333
  • testsuites/tmtests/tm26/task1.c

    r02c7c81 r0720ff4  
    3535 */
    3636
    37 rtems_unsigned32 isr_disable_time;
    38 rtems_unsigned32 isr_flash_time;
    39 rtems_unsigned32 isr_enable_time;
    40 rtems_unsigned32 thread_disable_dispatch_time;
    41 rtems_unsigned32 thread_enable_dispatch_time;
    42 rtems_unsigned32 thread_set_state_time;
    43 rtems_unsigned32 thread_dispatch_no_fp_time;
    44 rtems_unsigned32 context_switch_no_fp_time;
    45 rtems_unsigned32 context_switch_self_time;
    46 rtems_unsigned32 context_switch_another_task_time;
    47 rtems_unsigned32 context_switch_restore_1st_fp_time;
    48 rtems_unsigned32 context_switch_save_idle_restore_initted_time;
    49 rtems_unsigned32 context_switch_save_restore_idle_time;
    50 rtems_unsigned32 context_switch_save_restore_initted_time;
    51 rtems_unsigned32 thread_resume_time;
    52 rtems_unsigned32 thread_unblock_time;
    53 rtems_unsigned32 thread_ready_time;
    54 rtems_unsigned32 thread_get_time;
    55 rtems_unsigned32 semaphore_get_time;
    56 rtems_unsigned32 thread_get_invalid_time;
     37uint32_t  isr_disable_time;
     38uint32_t  isr_flash_time;
     39uint32_t  isr_enable_time;
     40uint32_t  thread_disable_dispatch_time;
     41uint32_t  thread_enable_dispatch_time;
     42uint32_t  thread_set_state_time;
     43uint32_t  thread_dispatch_no_fp_time;
     44uint32_t  context_switch_no_fp_time;
     45uint32_t  context_switch_self_time;
     46uint32_t  context_switch_another_task_time;
     47uint32_t  context_switch_restore_1st_fp_time;
     48uint32_t  context_switch_save_idle_restore_initted_time;
     49uint32_t  context_switch_save_restore_idle_time;
     50uint32_t  context_switch_save_restore_initted_time;
     51uint32_t  thread_resume_time;
     52uint32_t  thread_unblock_time;
     53uint32_t  thread_ready_time;
     54uint32_t  thread_get_time;
     55uint32_t  semaphore_get_time;
     56uint32_t  thread_get_invalid_time;
    5757
    5858rtems_task High_task(
     
    8888)
    8989{
    90   rtems_unsigned32  index;
     90  uint32_t    index;
    9191  rtems_id          task_id;
    9292  rtems_status_code status;
     
    377377void complete_test( void )
    378378{
    379   rtems_unsigned32  index;
     379  uint32_t    index;
    380380  rtems_id          task_id;
    381381
  • testsuites/tmtests/tm27/task1.c

    r02c7c81 r0720ff4  
    3131);
    3232
    33 volatile rtems_unsigned32 Interrupt_occurred;
    34 volatile rtems_unsigned32 Interrupt_enter_time, Interrupt_enter_nested_time;
    35 volatile rtems_unsigned32 Interrupt_return_time, Interrupt_return_nested_time;
    36 rtems_unsigned32 Interrupt_nest;
    37 rtems_unsigned32 timer_overhead;
     33volatile uint32_t  Interrupt_occurred;
     34volatile uint32_t  Interrupt_enter_time, Interrupt_enter_nested_time;
     35volatile uint32_t  Interrupt_return_time, Interrupt_return_nested_time;
     36uint32_t  Interrupt_nest;
     37uint32_t  timer_overhead;
    3838
    3939rtems_isr Isr_handler(
  • testsuites/tmtests/tm28/task1.c

    r02c7c81 r0720ff4  
    1616rtems_id Port_id;
    1717
    18 rtems_unsigned8 Internal_area[ 256 ] CPU_STRUCTURE_ALIGNMENT;
    19 rtems_unsigned8 External_area[ 256 ] CPU_STRUCTURE_ALIGNMENT;
     18uint8_t  Internal_area[ 256 ] CPU_STRUCTURE_ALIGNMENT;
     19uint8_t  External_area[ 256 ] CPU_STRUCTURE_ALIGNMENT;
    2020
    2121rtems_task Test_task(
     
    5555{
    5656  rtems_name         name;
    57   rtems_unsigned32   index;
     57  uint32_t     index;
    5858  void              *converted;
    5959
  • testsuites/tmtests/tm29/task1.c

    r02c7c81 r0720ff4  
    2424);
    2525
    26 rtems_unsigned32 Task_count;
     26uint32_t  Task_count;
    2727
    2828rtems_task Init(
     
    3131{
    3232  rtems_id          id;
    33   rtems_unsigned32  index;
     33  uint32_t    index;
    3434  rtems_status_code status;
    3535
     
    185185)
    186186{
    187   rtems_unsigned32 index;
     187  uint32_t  index;
    188188
    189189  end_time = Read_timer();
  • testsuites/tmtests/tmck/task1.c

    r02c7c81 r0720ff4  
    6868)
    6969{
    70   rtems_unsigned32 index;
     70  uint32_t  index;
    7171
    7272  check_read_timer();
     
    142142void check_read_timer()
    143143{
    144   rtems_unsigned32 index;
    145   rtems_unsigned32 time;
     144  uint32_t  index;
     145  uint32_t  time;
    146146
    147147  for ( index = 1 ; index <= MAXIMUM_DISTRIBUTION ; index++ )
  • testsuites/tmtests/tmoverhd/testtask.c

    r02c7c81 r0720ff4  
    1414#include "system.h"
    1515
    16 rtems_unsigned8 Memory_area[ 2048 ];
    17 rtems_unsigned8 Internal_port_area[ 256 ];
    18 rtems_unsigned8 External_port_area[ 256 ];
     16uint8_t  Memory_area[ 2048 ];
     17uint8_t  Internal_port_area[ 256 ];
     18uint8_t  External_port_area[ 256 ];
    1919
    2020rtems_task Task_1(
     
    5959{
    6060  rtems_name                 name;
    61   rtems_unsigned32           index;
     61  uint32_t             index;
    6262  rtems_cpu_table            cpu_table;
    6363  rtems_id                   id;
     
    6767  rtems_mode                 mask;
    6868  rtems_mode                 out_mode;
    69   rtems_unsigned32           note;
     69  uint32_t             note;
    7070  rtems_time_of_day          time;
    7171  rtems_interval             timeout;
     
    7474  rtems_event_set            events;
    7575  long                       buffer[ 4 ];
    76   rtems_unsigned32           count;
     76  uint32_t             count;
    7777  rtems_device_major_number  major;
    7878  rtems_device_minor_number  minor;
    79   rtems_unsigned32           io_result;
    80   rtems_unsigned32           error;
     79  uint32_t             io_result;
     80  uint32_t             error;
    8181  rtems_clock_get_options    options;
    8282
Note: See TracChangeset for help on using the changeset viewer.