Changeset c87608f in rtems


Ignore:
Timestamp:
03/30/04 11:15:35 (20 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
6965fc4
Parents:
9919946a
Message:

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

  • sp02/task1.c, sp04/system.h, sp04/task1.c, sp04/tswitch.c, sp05/task1.c, sp06/task1.c, sp09/screen01.c, sp09/screen07.c, sp09/screen12.c, sp09/system.h, sp09/task3.c, sp11/task1.c, sp12/pridrv.c, sp12/pritask.c, sp12/system.h, sp13/task1.c, sp13/task2.c, sp13/task3.c, sp14/system.h, sp15/system.h, sp16/system.h, sp17/system.h, sp19/first.c, sp19/fptask.c, sp19/inttest.h, sp19/system.h, sp19/task1.c, sp20/init.c, sp20/system.h, sp20/task1.c, sp23/system.h, sp24/init.c, sp25/system.h, sp30/init.c, spfatal/fatal.c, spfatal/puterr.c, spfatal/system.h, spsize/size.c: Convert to using c99 fixed size types.
Location:
testsuites/sptests
Files:
39 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r9919946a rc87608f  
     12004-03-30      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * sp02/task1.c, sp04/system.h, sp04/task1.c, sp04/tswitch.c,
     4        sp05/task1.c, sp06/task1.c, sp09/screen01.c, sp09/screen07.c,
     5        sp09/screen12.c, sp09/system.h, sp09/task3.c, sp11/task1.c,
     6        sp12/pridrv.c, sp12/pritask.c, sp12/system.h, sp13/task1.c,
     7        sp13/task2.c, sp13/task3.c, sp14/system.h, sp15/system.h,
     8        sp16/system.h, sp17/system.h, sp19/first.c, sp19/fptask.c,
     9        sp19/inttest.h, sp19/system.h, sp19/task1.c, sp20/init.c,
     10        sp20/system.h, sp20/task1.c, sp23/system.h, sp24/init.c,
     11        sp25/system.h, sp30/init.c, spfatal/fatal.c, spfatal/puterr.c,
     12        spfatal/system.h, spsize/size.c: Convert to using c99 fixed size
     13        types.
     14
    1152004-03-25      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    216
  • testsuites/sptests/sp02/task1.c

    r9919946a rc87608f  
    2828  rtems_status_code status;
    2929  rtems_name        tid2_name;
    30   rtems_unsigned32  previous_priority;
     30  uint32_t    previous_priority;
    3131
    3232  puts( "TA1 - rtems_task_wake_after - sleep 1 second" );
  • testsuites/sptests/sp04/system.h

    r9919946a rc87608f  
    6363 
    6464/* array of task run counts */
    65 TEST_EXTERN volatile rtems_unsigned32 Run_count[ 4 ]; 
     65TEST_EXTERN volatile uint32_t  Run_count[ 4 ]; 
    6666 
    6767/*
  • testsuites/sptests/sp04/task1.c

    r9919946a rc87608f  
    3737)
    3838{
    39   rtems_unsigned32  seconds;
    40   rtems_unsigned32  old_seconds;
     39  uint32_t    seconds;
     40  uint32_t    old_seconds;
    4141  rtems_mode        previous_mode;
    4242  rtems_time_of_day time;
    4343  rtems_status_code status;
    44   rtems_unsigned32  start_time;
    45   rtems_unsigned32  end_time;
     44  uint32_t    start_time;
     45  uint32_t    end_time;
    4646
    4747  puts( "TA1 - rtems_task_suspend - on Task 2" );
  • testsuites/sptests/sp04/tswitch.c

    r9919946a rc87608f  
    3232)
    3333{
    34   rtems_unsigned32  index;
     34  uint32_t    index;
    3535  rtems_time_of_day time;
    3636  rtems_status_code status;
  • testsuites/sptests/sp05/task1.c

    r9919946a rc87608f  
    2929  rtems_id          tid2;
    3030  rtems_id          tid3;
    31   rtems_unsigned32  pass;
     31  uint32_t    pass;
    3232  rtems_status_code status;
    3333
  • testsuites/sptests/sp06/task1.c

    r9919946a rc87608f  
    2222
    2323rtems_task Task_1( argument )
    24 rtems_unsigned32 argument;
     24uint32_t  argument;
    2525{
    26   rtems_unsigned32  pass;
     26  uint32_t    pass;
    2727  rtems_status_code status;
    2828
  • testsuites/sptests/sp09/screen01.c

    r9919946a rc87608f  
    2121void Screen1()
    2222{
    23   rtems_unsigned32    notepad_value;
     23  uint32_t      notepad_value;
    2424  rtems_id            self_id;
    2525  rtems_task_priority previous_priority;
  • testsuites/sptests/sp09/screen07.c

    r9919946a rc87608f  
    2424{
    2525  long              buffer[ 4 ];
    26   rtems_unsigned32  size;
    27   rtems_unsigned32  count;
     26  uint32_t    size;
     27  uint32_t    count;
    2828  rtems_status_code status;
    2929
  • testsuites/sptests/sp09/screen12.c

    r9919946a rc87608f  
    2424  void              *segment_address_2;
    2525  void              *segment_address_3;
    26   rtems_unsigned32   offset;
    27   rtems_unsigned32   good_front_flag;
    28   rtems_unsigned32   good_back_flag;
     26  uint32_t     offset;
     27  uint32_t     good_front_flag;
     28  uint32_t     good_back_flag;
    2929  rtems_status_code  status;
    3030
  • testsuites/sptests/sp09/system.h

    r9919946a rc87608f  
    131131#define External_port_area (void *) 0x00002000
    132132 
    133 TEST_EXTERN rtems_unsigned8 Partition_good_area[256] CPU_STRUCTURE_ALIGNMENT;
     133TEST_EXTERN uint8_t  Partition_good_area[256] CPU_STRUCTURE_ALIGNMENT;
    134134#define Partition_bad_area (void *) 0x00000006
    135135 
    136 TEST_EXTERN rtems_unsigned32 Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
     136TEST_EXTERN uint32_t  Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
    137137#define Region_bad_area    (void *) 0x00000006
    138138#define REGION_START_OFFSET 1024
  • testsuites/sptests/sp09/task3.c

    r9919946a rc87608f  
    2828  rtems_status_code status;
    2929  long              buffer[ 4 ];
    30   rtems_unsigned32  size;
     30  uint32_t    size;
    3131
    3232  puts( "TA3 - rtems_message_queue_receive - Q 1 - RTEMS_WAIT FOREVER" );
  • testsuites/sptests/sp11/task1.c

    r9919946a rc87608f  
    2727  rtems_time_of_day time;
    2828  rtems_status_code status;
    29   rtems_unsigned32  index;
     29  uint32_t    index;
    3030
    3131  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_16 to TA2" );
  • testsuites/sptests/sp12/pridrv.c

    r9919946a rc87608f  
    2525
    2626void Priority_test_driver(
    27   rtems_unsigned32 priority_base
     27  uint32_t  priority_base
    2828)
    2929{
    3030  rtems_task_priority previous_priority;
    31   rtems_unsigned32    index;
     31  uint32_t      index;
    3232  rtems_status_code   status;
    3333
  • testsuites/sptests/sp12/pritask.c

    r9919946a rc87608f  
    2828  rtems_task_priority current_priority;
    2929  rtems_status_code   status;
    30   rtems_unsigned32    index;
     30  uint32_t      index;
    3131
    3232  its_priority = Task_priority[ its_index ];
  • testsuites/sptests/sp12/system.h

    r9919946a rc87608f  
    2323 
    2424void Priority_test_driver(
    25   rtems_unsigned32 priority_base
     25  uint32_t  priority_base
    2626);
    2727 
  • testsuites/sptests/sp13/task1.c

    r9919946a rc87608f  
    3030void dope_buffer(unsigned char *buff,
    3131                 int   buff_size,
    32                  unsigned32 v)
     32                 uint32_t  v)
    3333{
    3434    int i;
     
    5050{
    5151  rtems_id          qid;
    52   rtems_unsigned32  index;
    53   rtems_unsigned32  count;
     52  uint32_t    index;
     53  uint32_t    count;
    5454  rtems_status_code status;
    55   rtems_unsigned32  size;
    56   rtems_unsigned32  queue_size;
     55  uint32_t    size;
     56  uint32_t    queue_size;
    5757  char             *cp;
    5858 
  • testsuites/sptests/sp13/task2.c

    r9919946a rc87608f  
    2828{
    2929  long                buffer[ 4 ];
    30   rtems_unsigned32    size;
     30  uint32_t      size;
    3131  rtems_task_priority previous_priority;
    3232  rtems_status_code   status;
  • testsuites/sptests/sp13/task3.c

    r9919946a rc87608f  
    2626{
    2727  long              buffer[ 4 ];
    28   rtems_unsigned32  size;
    29   rtems_unsigned32  count;
     28  uint32_t    size;
     29  uint32_t    count;
    3030  rtems_status_code status;
    3131
  • testsuites/sptests/sp14/system.h

    r9919946a rc87608f  
    6262TEST_EXTERN rtems_name Timer_name[ 3 ];    /* array of timer names */
    6363
    64 TEST_EXTERN volatile rtems_unsigned32 Signals_sent;
     64TEST_EXTERN volatile uint32_t  Signals_sent;
    6565                                      /* set to TRUE to indicate that a */
    6666                                      /* signal set has been sent from  */
    6767                                      /* an ISR to the executing task   */
    6868
    69 TEST_EXTERN volatile rtems_unsigned32 Asr_fired;
     69TEST_EXTERN volatile uint32_t  Asr_fired;
    7070                                      /* set to TRUE to indicate that the */
    7171                                      /* RTEMS_ASR has executed and was   */
  • testsuites/sptests/sp15/system.h

    r9919946a rc87608f  
    4747TEST_EXTERN rtems_name Partition_name[ 4 ]; /* array of partition names */
    4848 
    49 TEST_EXTERN rtems_unsigned8 Area_1[4096] CPU_STRUCTURE_ALIGNMENT;
    50 TEST_EXTERN rtems_unsigned8 Area_2[274] CPU_STRUCTURE_ALIGNMENT;
     49TEST_EXTERN uint8_t  Area_1[4096] CPU_STRUCTURE_ALIGNMENT;
     50TEST_EXTERN uint8_t  Area_2[274] CPU_STRUCTURE_ALIGNMENT;
    5151 
    5252#define Put_address_from_area_1( _to_be_printed ) \
    5353   printf( "0x%08lx", \
    54      (unsigned long)((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) )
     54     (unsigned long)((uint8_t  *)(_to_be_printed) - Area_1 ) )
    5555 
    5656#define Put_address_from_area_2( _to_be_printed ) \
    5757   printf( "0x%08lx", \
    58      (unsigned long)((rtems_unsigned8 *)(_to_be_printed) - Area_2 ) )
     58     (unsigned long)((uint8_t  *)(_to_be_printed) - Area_2 ) )
    5959 
    6060/* end of include file */
  • testsuites/sptests/sp16/system.h

    r9919946a rc87608f  
    6464TEST_EXTERN rtems_name Region_name[ 5 ];  /* array of region names */
    6565
    66 TEST_EXTERN rtems_unsigned8 Area_1[4096] CPU_STRUCTURE_ALIGNMENT;
    67 TEST_EXTERN rtems_unsigned8 Area_2[4096] CPU_STRUCTURE_ALIGNMENT;
    68 TEST_EXTERN rtems_unsigned8 Area_3[4096] CPU_STRUCTURE_ALIGNMENT;
    69 TEST_EXTERN rtems_unsigned8 Area_4[8192] CPU_STRUCTURE_ALIGNMENT;
     66TEST_EXTERN uint8_t  Area_1[4096] CPU_STRUCTURE_ALIGNMENT;
     67TEST_EXTERN uint8_t  Area_2[4096] CPU_STRUCTURE_ALIGNMENT;
     68TEST_EXTERN uint8_t  Area_3[4096] CPU_STRUCTURE_ALIGNMENT;
     69TEST_EXTERN uint8_t  Area_4[8192] CPU_STRUCTURE_ALIGNMENT;
    7070
    7171#define BASE_PRIORITY 140
     
    7373#define Put_address_from_area_1( _to_be_printed ) \
    7474   printf( "0x%08lx", \
    75      (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) )
     75     (unsigned long) ((uint8_t  *)(_to_be_printed) - Area_1 ) )
    7676
    7777#define Put_address_from_area_2( _to_be_printed ) \
    7878   printf( "0x%08lx", \
    79      (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_2 ) )
     79     (unsigned long) ((uint8_t  *)(_to_be_printed) - Area_2 ) )
    8080
    8181#define Put_address_from_area_3( _to_be_printed ) \
    8282   printf( "0x%08lx", \
    83      (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_3 ) )
     83     (unsigned long) ((uint8_t  *)(_to_be_printed) - Area_3 ) )
    8484
    8585#define Put_address_from_area_4( _to_be_printed ) \
    8686   printf( "0x%08lx", \
    87      (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_4 ) )
     87     (unsigned long) ((uint8_t  *)(_to_be_printed) - Area_4 ) )
    8888
    8989/* end of include file */
  • testsuites/sptests/sp17/system.h

    r9919946a rc87608f  
    5252TEST_EXTERN rtems_name Task_name[ 4 ];       /* array of task names */
    5353
    54 TEST_EXTERN rtems_unsigned32 Task_2_preempted;
     54TEST_EXTERN uint32_t  Task_2_preempted;
    5555
    5656/* end of include file */
  • testsuites/sptests/sp19/first.c

    r9919946a rc87608f  
    3131  rtems_id          tid;
    3232  rtems_time_of_day time;
    33   rtems_unsigned32  task_index;
     33  uint32_t    task_index;
    3434  INTEGER_DECLARE;
    3535  FP_DECLARE;
  • testsuites/sptests/sp19/fptask.c

    r9919946a rc87608f  
    3131  rtems_id          tid;
    3232  rtems_time_of_day time;
    33   rtems_unsigned32  task_index;
    34   rtems_unsigned32  previous_seconds;
     33  uint32_t    task_index;
     34  uint32_t    previous_seconds;
    3535  INTEGER_DECLARE;
    3636  FP_DECLARE;
  • testsuites/sptests/sp19/inttest.h

    r9919946a rc87608f  
    3131
    3232#include <stdio.h>
    33 #define REG_VARIABLE rtems_unsigned32
     33#define REG_VARIABLE uint32_t 
    3434
    3535#define INTEGER_DECLARE \
  • testsuites/sptests/sp19/system.h

    r9919946a rc87608f  
    5555
    5656TEST_EXTERN rtems_double FP_factors[ 10 ];  /* FP "uniqueness" factors */
    57 TEST_EXTERN rtems_unsigned32 INTEGER_factors[ 10 ];  /* INT "uniqueness" factors */
     57TEST_EXTERN uint32_t  INTEGER_factors[ 10 ];  /* INT "uniqueness" factors */
    5858/* end of include file */
  • testsuites/sptests/sp19/task1.c

    r9919946a rc87608f  
    2929  rtems_id          tid;
    3030  rtems_time_of_day time;
    31   rtems_unsigned32  task_index;
     31  uint32_t    task_index;
    3232  INTEGER_DECLARE;
    3333
  • testsuites/sptests/sp20/init.c

    r9919946a rc87608f  
    2929)
    3030{
    31   rtems_unsigned32  index;
     31  uint32_t    index;
    3232  rtems_status_code status;
    3333
  • testsuites/sptests/sp20/system.h

    r9919946a rc87608f  
    1919
    2020struct counters {
    21   rtems_unsigned32 count[7];
     21  uint32_t  count[7];
    2222};
    2323
  • testsuites/sptests/sp20/task1.c

    r9919946a rc87608f  
    2727#define TA6_PERIOD_FACTOR 10
    2828
    29 rtems_unsigned32    Periods[7]    = { 0,   2,   2,   2,   2, 100, 0 };
    30 rtems_unsigned32    Iterations[7] = { 0,  50,  50,  50,  50,   1, TA6_ITERATIONS };
     29uint32_t      Periods[7]    = { 0,   2,   2,   2,   2, 100, 0 };
     30uint32_t      Iterations[7] = { 0,  50,  50,  50,  50,   1, TA6_ITERATIONS };
    3131rtems_task_priority Priorities[7] = { 0,   1,   1,   3,   4,   5, 1 };
    3232
    3333rtems_task Task_1_through_6(
    34   rtems_unsigned32 argument
     34  uint32_t  argument
    3535)
    3636{
    3737  rtems_id          rmid;
    3838  rtems_id          test_rmid;
    39   rtems_unsigned32  index;
    40   rtems_unsigned32  pass;
    41   rtems_unsigned32  failed;
     39  uint32_t    index;
     40  uint32_t    pass;
     41  uint32_t    failed;
    4242  rtems_status_code status;
    4343
     
    121121      /* test changing periods */
    122122      {
    123         unsigned32 time[TA6_ITERATIONS+1];
     123        uint32_t  time[TA6_ITERATIONS+1];
    124124        rtems_interval period;
    125125
  • testsuites/sptests/sp23/system.h

    r9919946a rc87608f  
    4949TEST_EXTERN rtems_name Port_name[ 2 ];   /* array of port names */
    5050 
    51 #define Internal_port_area ((rtems_unsigned8 *) 0x00001000)
    52 #define External_port_area ((rtems_unsigned8 *) 0x00002000)
     51#define Internal_port_area ((uint8_t  *) 0x00001000)
     52#define External_port_area ((uint8_t  *) 0x00002000)
    5353 
    54 #define Below_port_area    ((rtems_unsigned8 *) 0x00000500)
    55 #define Above_port_area    ((rtems_unsigned8 *) 0x00003000)
     54#define Below_port_area    ((uint8_t  *) 0x00000500)
     55#define Above_port_area    ((uint8_t  *) 0x00003000)
    5656
    5757/* end of include file */
  • testsuites/sptests/sp24/init.c

    r9919946a rc87608f  
    3030{
    3131  rtems_time_of_day time;
    32   rtems_unsigned32  index;
     32  uint32_t    index;
    3333  rtems_status_code status;
    3434
  • testsuites/sptests/sp25/system.h

    r9919946a rc87608f  
    4545TEST_EXTERN rtems_name Region_name[ 2 ];  /* array of region names */
    4646 
    47 TEST_EXTERN rtems_unsigned8 Area_1[64000]  CPU_STRUCTURE_ALIGNMENT;
     47TEST_EXTERN uint8_t  Area_1[64000]  CPU_STRUCTURE_ALIGNMENT;
    4848 
    4949#define BASE_PRIORITY 140
     
    5151#define Put_address_from_area_1( _to_be_printed ) \
    5252   printf( "0x%08lx", \
    53      (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) )
     53     (unsigned long) ((uint8_t  *)(_to_be_printed) - Area_1 ) )
    5454 
    5555/* end of include file */
  • testsuites/sptests/sp30/init.c

    r9919946a rc87608f  
    3030{
    3131  rtems_time_of_day time;
    32   rtems_unsigned32  index;
     32  uint32_t    index;
    3333  rtems_status_code status;
    3434
  • testsuites/sptests/spfatal/fatal.c

    r9919946a rc87608f  
    5252 */
    5353
    54 rtems_unsigned32  First_Time_Through;
     54uint32_t    First_Time_Through;
    5555
    5656void Process_case();
    5757
    5858rtems_extension Fatal_extension(
    59   rtems_unsigned32 source,
     59  uint32_t  source,
    6060  boolean          is_internal,
    61   rtems_unsigned32 error
     61  uint32_t  error
    6262)
    6363{
  • testsuites/sptests/spfatal/puterr.c

    r9919946a rc87608f  
    5252
    5353void put_error(
    54   rtems_unsigned32  error,
     54  uint32_t    error,
    5555  rtems_status_code expected
    5656)
  • testsuites/sptests/spfatal/system.h

    r9919946a rc87608f  
    2323 
    2424void put_error(
    25   rtems_unsigned32  error,
     25  uint32_t    error,
    2626  rtems_status_code expected
    2727);
    2828 
    2929rtems_extension Fatal_extension(
    30   rtems_unsigned32 source,
     30  uint32_t  source,
    3131  boolean          is_internal,
    32   rtems_unsigned32 error
     32  uint32_t  error
    3333);
    3434 
  • testsuites/sptests/spsize/size.c

    r9919946a rc87608f  
    129129     MP_SYSTEM_TASKS)
    130130
    131 #define rtems_unsigned32 unsigned32
    132 
    133 rtems_unsigned32 sys_req;
     131uint32_t   sys_req;
    134132
    135133void help_size();
Note: See TracChangeset for help on using the changeset viewer.