Changeset 8f71a36 in rtems


Ignore:
Timestamp:
Apr 20, 2004, 7:09:31 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c8e8f119
Parents:
d3fdf89f
Message:

Remove stray white spaces.

Files:
80 edited

Legend:

Unmodified
Added
Removed
  • testsuites/automake/compile.am

    rd3fdf89f r8f71a36  
    44
    55## -------------------------------------------------------------------------
    6 ## NOTE: This file is rather immature and has to be considered to be 
     6## NOTE: This file is rather immature and has to be considered to be
    77## almost experimental.
    88##
     
    1313## used in former versions of RTEMS.
    1414
    15 ## 
     15##
    1616## Set up the flags for the toolchains:
    1717##
     
    2525## RTEMS_USE_GCC     .. if we are using GCC
    2626
    27 ## NOTES: 
     27## NOTES:
    2828## * The gcc-2.8 building scheme is the nominal building scheme and
    2929##   is actively supported.
    30 ## * The non-gcc building scheme requires manually setting up environment 
     30## * The non-gcc building scheme requires manually setting up environment
    3131##   variables and is hardly tested at all
    3232
     
    3434## would want the corresponding macros to be set to.
    3535##
    36 ## CFLAGS_OPTIMIZE, CFLAGS_DEBUG are set by the 
     36## CFLAGS_OPTIMIZE, CFLAGS_DEBUG are set by the
    3737## 'VARIANT=<OPTIMIZE|DEBUG>' targets to their _V values.
    3838
    39 ## XCPPFLAGS, XCFLAGS, XCXXFLAGS, XASFLAGS 
     39## XCPPFLAGS, XCFLAGS, XCXXFLAGS, XASFLAGS
    4040## are used to add flags from the shell
    4141## cf. make.info ("Implicit rules/variables" for details)
     
    128128        mv $(DEPEND).tmp $(DEPEND)
    129129
    130 # pull in dependencies if they exist 
     130# pull in dependencies if they exist
    131131ifeq (${DEPEND},$(wildcard ${DEPEND}))
    132132include ${DEPEND}
  • testsuites/automake/host.am

    rd3fdf89f r8f71a36  
    11## $Id$
    22
    3 ## NOTE: This is a temporary work-around to keep 
     3## NOTE: This is a temporary work-around to keep
    44## RTEMS's non automake standard make targets working.
    5 ## Once automake is fully integrated these make targets 
     5## Once automake is fully integrated these make targets
    66## and this file will probably be removed
    77
  • testsuites/automake/leaf.am

    rd3fdf89f r8f71a36  
    1414endef
    1515@ENDIF@
    16 
  • testsuites/automake/subdirs.am

    rd3fdf89f r8f71a36  
    11## $Id$
    22
    3 ## Borrowed from automake-1.4 and adapted to RTEMS 
     3## Borrowed from automake-1.4 and adapted to RTEMS
    44
    5 ## NOTE: This is a temporary work-around to keep 
     5## NOTE: This is a temporary work-around to keep
    66## RTEMS's non automake standard make targets working.
    7 ## Once automake is fully integrated these make targets 
     7## Once automake is fully integrated these make targets
    88## and this file will probably be removed
    99
  • testsuites/libtests/cpuuse/init.c

    rd3fdf89f r8f71a36  
    1 /* 
     1/*
    22 *  This is a clone of sp04 which has been modified to use the cpu monitoring
    33 *  library.
  • testsuites/libtests/cpuuse/system.h

    rd3fdf89f r8f71a36  
    2525  rtems_task_argument argument
    2626);
    27  
     27
    2828rtems_task Task_2(
    2929  rtems_task_argument argument
    3030);
    31  
     31
    3232rtems_task Task_3(
    3333  rtems_task_argument argument
    3434);
    35  
     35
    3636void Task_switch(
    3737  rtems_tcb *unused,
     
    6161TEST_EXTERN rtems_id   Extension_id[ 4 ];
    6262TEST_EXTERN rtems_name Extension_name[ 4 ];  /* array of task names */
    63  
     63
    6464/* array of task run counts */
    65 TEST_EXTERN volatile uint32_t   Run_count[ 4 ]; 
     65TEST_EXTERN volatile uint32_t   Run_count[ 4 ];
    6666
    6767/*
     
    7878volatile extern int testsFinished;
    7979
    80  
     80
    8181/* end of include file */
  • testsuites/libtests/cpuuse/tswitch.c

    rd3fdf89f r8f71a36  
    2727volatile int testsFinished;;
    2828
    29 rtems_extension Task_switch( 
     29rtems_extension Task_switch(
    3030  rtems_tcb *unused,
    3131  rtems_tcb *heir
  • testsuites/libtests/monitor/init.c

    rd3fdf89f r8f71a36  
    22 *  This is a simple test whose only purpose is to start the Monitor
    33 *  task.  The Monitor task can be used to obtain information about
    4  *  a variety of RTEMS objects. 
     4 *  a variety of RTEMS objects.
    55 *
    66 *  COPYRIGHT (c) 1989-1999.
  • testsuites/libtests/monitor/system.h

    rd3fdf89f r8f71a36  
    2727  rtems_task_argument argument
    2828);
    29  
     29
    3030rtems_task Task_1_through_5(
    3131  rtems_task_argument argument
    3232);
    33  
     33
    3434void Get_all_counters( void );
    35  
     35
    3636/* configuration information */
    3737
  • testsuites/libtests/rtems++/System.h

    rd3fdf89f r8f71a36  
    2323
    2424extern "C"
    25 { 
     25{
    2626  rtems_task Init(
    2727    rtems_task_argument argument
     
    3838{
    3939  void print_mode(rtems_mode mode, rtems_mode mask);
    40  
     40
    4141  void screen1(void);
    4242  void screen2(void);
     
    6060  virtual void body(rtems_task_argument argument);
    6161
    62 public: 
     62public:
    6363  Task2(const char* name,
    6464        const rtems_task_priority initial_priority,
     
    7474  virtual void body(rtems_task_argument argument);
    7575
    76 public: 
     76public:
    7777  Task3(const char* name,
    7878        const rtems_task_priority initial_priority,
     
    8686  virtual void body(rtems_task_argument argument);
    8787
    88 public: 
     88public:
    8989  EndTask(const char* name,
    9090          const rtems_task_priority initial_priority,
     
    127127
    128128#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    129 #define CONFIGURE_INIT_TASK_STACK_SIZE      (4 * RTEMS_MINIMUM_STACK_SIZE) 
     129#define CONFIGURE_INIT_TASK_STACK_SIZE      (4 * RTEMS_MINIMUM_STACK_SIZE)
    130130
    131131#define CONFIGURE_EXTRA_TASK_STACKS         (3 * RTEMS_MINIMUM_STACK_SIZE)
  • testsuites/libtests/rtmonuse/system.h

    rd3fdf89f r8f71a36  
    2727  rtems_task_argument argument
    2828);
    29  
     29
    3030rtems_task Task_1_through_5(
    3131  rtems_task_argument argument
    3232);
    33  
     33
    3434void Get_all_counters( void );
    35  
     35
    3636/* configuration information */
    3737
  • testsuites/libtests/termios/init.c

    rd3fdf89f r8f71a36  
    11/*
    22 * RTEMS configuration/initialization
    3  * 
     3 *
    44 * This program may be distributed and used for any purpose.
    55 * I ask only that you:
     
    1212 * Saskatoon, Saskatchewan, CANADA
    1313 * eric@skatter.usask.ca
    14  * 
     14 *
    1515 * Additions:
    1616 * Charles-Antoine Gauthier
     
    104104  if( tp->c_oflag & OPOST )
    105105    printf( "OPOST " );
    106    
     106
    107107  if( tp->c_oflag & OLCUC )
    108108    printf( "OLCUC " );
    109    
     109
    110110  if( tp->c_oflag & ONLCR )
    111111    printf( "ONLCR " );
    112    
     112
    113113  if( tp->c_oflag & OCRNL )
    114114    printf( "OCRNL " );
    115    
     115
    116116  if( tp->c_oflag & ONOCR )
    117117    printf( "ONOCR " );
    118    
     118
    119119  if( tp->c_oflag & ONLRET )
    120120    printf( "ONLRET " );
    121    
     121
    122122  if( tp->c_oflag & OFILL )
    123123    printf( "OFILL " );
    124    
     124
    125125  if( tp->c_oflag & OFDEL )
    126126    printf( "OFDEL " );
     
    130130      printf( "NL0 " );
    131131      break;
    132      
     132
    133133    case NL1:
    134134      printf( "NL1 " );
    135135      break;
    136136  }
    137  
     137
    138138  switch( tp->c_oflag & CRDLY ) {
    139139    case CR0:
    140140      printf( "CR0 " );
    141141      break;
    142      
     142
    143143    case CR1:
    144144      printf( "CR1 " );
    145145      break;
    146      
     146
    147147    case CR2:
    148148      printf( "CR2 " );
    149149      break;
    150      
     150
    151151    case CR3:
    152152      printf( "CR3 " );
    153153      break;
    154154  }
    155  
     155
    156156  switch( tp->c_oflag & TABDLY ) {
    157157    case TAB0:
    158158      printf( "TAB0 " );
    159159      break;
    160      
     160
    161161    case TAB1:
    162162      printf( "TAB1 " );
    163163      break;
    164      
     164
    165165    case TAB2:
    166166      printf( "TAB2 " );
    167167      break;
    168      
     168
    169169    case TAB3:
    170170      printf( "TAB3 " );
    171171      break;
    172172  }
    173  
     173
    174174  switch( tp->c_oflag & BSDLY ) {
    175175    case BS0:
    176176      printf( "BS0 " );
    177177      break;
    178      
     178
    179179    case BS1:
    180180      printf( "BS1 " );
    181181      break;
    182182  }
    183  
     183
    184184  switch( tp->c_oflag & VTDLY ) {
    185185    case VT0:
    186186      printf( "VT0 " );
    187187      break;
    188      
     188
    189189    case VT1:
    190190      printf( "VT1 " );
    191191      break;
    192192  }
    193  
     193
    194194  switch( tp->c_oflag & FFDLY ) {
    195195    case FF0:
    196196      printf( "FF0" );
    197197      break;
    198      
     198
    199199    case FF1:
    200200      printf( "FF1" );
     
    230230    "unknown",     /* 4000000 */
    231231  };
    232  
     232
    233233  printf( "c_lflag = 0x%08x\n\t", tp->c_lflag );
    234234  print_32bits( tp->c_lflag, sizeof( c_lflag_bits )/sizeof( char * ), c_lflag_bits );
     
    240240{
    241241  unsigned int baud;
    242  
     242
    243243  printf( "c_cflag = 0x%08x\n", tp->c_cflag );
    244244
    245245  baud = (tp->c_cflag & CBAUD) ;
    246 #if defined(__sh2__) 
     246#if defined(__sh2__)
    247247  if ( tp->c_cflag & CBAUDEX )
    248248#endif
     
    251251      printf( "\tCBAUD =\tB0\n" );
    252252      break;
    253      
     253
    254254    case B50:
    255255      printf( "\tCBAUD =\tB50\n" );
    256256      break;
    257      
     257
    258258    case B75:
    259259      printf( "\tCBAUD =\tB75\n" );
    260260      break;
    261      
     261
    262262    case B110:
    263263      printf( "\tCBAUD =\tB110\n" );
    264264      break;
    265      
     265
    266266    case B134:
    267267      printf( "\tCBAUD =\tB134\n" );
    268268      break;
    269      
     269
    270270    case B150:
    271271      printf( "\tCBAUD =\tB150\n" );
    272272      break;
    273      
     273
    274274    case B200:
    275275      printf( "\tCBAUD =\tB200\n" );
    276276      break;
    277      
     277
    278278    case B300:
    279279      printf( "\tCBAUD =\tB300\n" );
    280280      break;
    281      
     281
    282282    case B600:
    283283      printf( "\tCBAUD =\tB600\n" );
    284284      break;
    285      
     285
    286286    case B1200:
    287287      printf( "\tCBAUD =\tB1200\n" );
    288288      break;
    289      
     289
    290290    case B1800:
    291291      printf( "\tCBAUD =\tB1800\n" );
    292292      break;
    293      
     293
    294294    case B2400:
    295295      printf( "\tCBAUD =\tB2400\n" );
    296296      break;
    297      
     297
    298298    case B4800:
    299299      printf( "\tCBAUD =\tB4800\n" );
    300300      break;
    301      
     301
    302302    case B9600:
    303303      printf( "\tCBAUD =\tB9600\n" );
    304304      break;
    305      
     305
    306306    case B19200:
    307307      printf( "\tCBAUD =\tB19200\n" );
    308308      break;
    309      
     309
    310310    case B38400:
    311311      printf( "\tCBAUD =\tB38400\n" );
    312312      break;
    313313#if defined(__sh2__)
    314     } 
    315     else 
    316     switch ( baud ) 
     314    }
     315    else
     316    switch ( baud )
    317317    {
    318318#endif
     
    320320      printf( "\tCBAUD =\tB57600\n" );
    321321      break;
    322      
     322
    323323    case B115200:
    324324      printf( "\tCBAUD =\tB115200\n" );
    325325      break;
    326      
     326
    327327    case B230400:
    328328      printf( "\tCBAUD =\tB230400\n" );
    329329      break;
    330      
     330
    331331    case B460800:
    332332      printf( "\tCBAUD =\tB460800\n" );
    333333      break;
    334      
     334
    335335    default:
    336336      printf( "\tCBAUD =\tunknown (0x%08x)\n", baud );
     
    342342      printf( "\tCSIZE =\tCS5\n" );
    343343      break;
    344      
     344
    345345    case CS6:
    346346      printf( "\tCSIZE =\tCS6\n" );
    347347      break;
    348      
     348
    349349    case CS7:
    350350      printf( "\tCSIZE =\tCS7\n" );
    351351      break;
    352      
     352
    353353    case CS8:
    354354      printf( "\tCSIZE =\tCS8\n" );
     
    360360  else
    361361    printf( "\tCSTOPB clear: send 1 stop bit\n" );
    362  
     362
    363363  if( tp->c_cflag & PARENB )
    364364    printf( "\tPARENB set: parity enabled\n" );
    365365  else
    366366    printf( "\tPARENB clear: parity disabled\n" );
    367  
     367
    368368  if( tp->c_cflag & PARODD )
    369369    printf( "\tPARODD set: parity odd\n" );
    370370  else
    371371    printf( "\tPARODD clear: parity even\n" );
    372  
     372
    373373  if( tp->c_cflag & CREAD )
    374374    printf( "\tCREAD set: receiver enabled\n" );
    375375  else
    376376    printf( "\tCREAD clear: treceiver disabled\n" );
    377  
     377
    378378  if( tp->c_cflag & HUPCL )
    379379    printf( "\tHUPCL set: enabled\n" );
    380380  else
    381381    printf( "\tHUPCL clear: disabled\n" );
    382  
     382
    383383  if( tp->c_cflag & CLOCAL )
    384384    printf( "\tCLOCAL set: ignore modem lines\n" );
    385385  else
    386386    printf( "\tCLOCAL clear: don't ignore modem lines\n" );
    387  
     387
    388388#if defined(CBAUDEX)
    389389  if( tp->c_cflag & CBAUDEX )
     
    392392    printf( "\tCBAUDEX clear: What does this do?\n" );
    393393#endif
    394  
     394
    395395  if( tp->c_cflag & CRTSCTS )
    396396    printf( "\tCRTSCTS: harware flow control enabled?\n" );
     
    446446{
    447447  unsigned long baud_rate;
    448  
     448
    449449  while( TRUE ) {
    450450    printf( "Enter the numerical value for the new baud rate.\n" );
     
    486486{
    487487  int parity;
    488  
     488
    489489  while( TRUE ) {
    490490    printf( "Enter the numerical value for the new parity\n" );
     
    524524      case 1:
    525525        return 0;
    526        
     526
    527527      case 2:
    528528        return CSTOPB;
     
    549549      case 5:
    550550        return CS5;
    551        
     551
    552552      case 6:
    553553        return CS6;
    554        
     554
    555555      case 7:
    556556        return CS7;
    557        
     557
    558558      case 8:
    559559        return CS8;
     
    570570{
    571571  unsigned long baud_rate, parity, stop_bits, data_bits, sleep_time;
    572    
     572
    573573  printf( "\nSetting line characteristics\n\n" );
    574  
     574
    575575  baud_rate = get_baud_rate();
    576576  parity = get_parity();
     
    588588
    589589  sleep( sleep_time );
    590  
     590
    591591  tp->c_cflag = CLOCAL | CREAD | parity | stop_bits | data_bits | baud_rate;
    592592  if( tcsetattr( fileno( stdin ), TCSADRAIN, tp ) < 0 ) {
     
    601601{
    602602  char c, first_time = TRUE;
    603    
     603
    604604  printf( "\nTesting canonical input\n\n" );
    605605
    606606  printf( "Setting line to canonical input mode.\n" );
    607   tp->c_lflag = ISIG | ICANON | ECHO | ECHONL | ECHOK | ECHOE | ECHOPRT | ECHOCTL | IEXTEN; 
     607  tp->c_lflag = ISIG | ICANON | ECHO | ECHONL | ECHOK | ECHOE | ECHOPRT | ECHOCTL | IEXTEN;
    608608  tp->c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
    609609  if( tcsetattr( fileno( stdin ), TCSADRAIN, tp ) < 0 ) {
     
    611611    rtems_test_exit( 1 );
    612612  }
    613  
     613
    614614  while ( ( c = getchar () ) != '\n');
    615615  printf( "Testing getchar(). Type some text followed by carriage return\n" );
     
    640640
    641641  printf( "Raw input test with VMIN=%d  VTIME=%d\n", vmin, vtime );
    642  
     642
    643643  rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond );
    644644  if ( tcgetattr( fileno ( stdin ), &old ) < 0 ) {
     
    646646    return;
    647647  }
    648  
     648
    649649  new = old;
    650650  new.c_lflag &= ~( ICANON | ECHO | ECHONL | ECHOK | ECHOE | ECHOPRT | ECHOCTL );
     
    655655    return;
    656656  }
    657  
     657
    658658  do {
    659659    rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then );
     
    673673    printf( "Count:%-10lu  Interval:%3u.%3.3d  Char:",
    674674          count, msec / 1000, msec % 1000 );
    675          
     675
    676676    for( i = 0 ; i < nread ; i++ )
    677677      printf (" 0x%2.2x", cbuf[i]);
    678678    printf ("\n");
    679    
     679
    680680  } while( cbuf[0] != 'q' );
    681  
     681
    682682out:
    683683  if( tcsetattr( fileno( stdin ), TCSADRAIN, &old) < 0 )
    684684    perror("do_raw_input(): tcsetattr() failed: %s\n" );
    685    
     685
    686686  printf ("*** End of Raw input  VMIN=%d  VTIME=%d ***\n", vmin, vtime);
    687687}
     
    697697  do_raw_input( 5, 0 );
    698698  do_raw_input( 5, 20 );
    699  
     699
    700700  printf( "\nRaw input test done.\n" );
    701701}
     
    723723  char c ;
    724724  struct termios orig_termios, test_termios;
    725  
     725
    726726  printf( "\n\n*** TEST OF TERMIOS INPUT CAPABILITIES ***\n" );
    727727
     
    771771      case '\n':
    772772        break;
    773          
     773
    774774      default:
    775775        printf( "\n%c is not a valid choice. Try again\n\n", c );
  • testsuites/mptests/mp01/system.h

    rd3fdf89f r8f71a36  
    2727
    2828/* configuration information */
    29  
     29
    3030#define CONFIGURE_MP_APPLICATION
    31  
     31
    3232#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3333#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    34  
     34
    3535#define CONFIGURE_MAXIMUM_TASKS           4
    3636
  • testsuites/mptests/mp02/system.h

    rd3fdf89f r8f71a36  
    2727
    2828/* configuration information */
    29  
     29
    3030#define CONFIGURE_MP_APPLICATION
    31  
     31
    3232#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3333#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3434
    3535#define CONFIGURE_MAXIMUM_TASKS               2
    36  
     36
    3737#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3838
  • testsuites/mptests/mp03/system.h

    rd3fdf89f r8f71a36  
    3030  void     *ignored_address
    3131);
    32  
     32
    3333/* configuration information */
    34  
     34
    3535#define CONFIGURE_MP_APPLICATION
    36  
     36
    3737#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3838#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    39  
     39
    4040#define CONFIGURE_MAXIMUM_TASKS               2
    4141#define CONFIGURE_MAXIMUM_TIMERS              1
     
    5252TEST_EXTERN rtems_id   Timer_id[ 2 ];    /* array of timer ids */
    5353TEST_EXTERN rtems_name Timer_name[ 2 ];  /* array of timer names */
    54  
     54
    5555TEST_EXTERN uint32_t    remote_node;
    5656TEST_EXTERN rtems_id          remote_tid;
    57  
     57
    5858/* end of include file */
  • testsuites/mptests/mp04/system.h

    rd3fdf89f r8f71a36  
    2727
    2828/* configuration information */
    29  
     29
    3030#define CONFIGURE_MP_APPLICATION
    31  
     31
    3232#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3333#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    34  
     34
    3535#define CONFIGURE_MAXIMUM_TASKS               2
    3636#define CONFIGURE_MAXIMUM_TIMERS              1
  • testsuites/mptests/mp05/system.h

    rd3fdf89f r8f71a36  
    2929
    3030/* configuration information */
    31  
     31
    3232#define CONFIGURE_MP_APPLICATION
    33  
     33
    3434#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3535#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    36  
     36
    3737#define CONFIGURE_MAXIMUM_TASKS               2
    3838#define CONFIGURE_MAXIMUM_TIMERS              1
     
    5151TEST_EXTERN rtems_id   Timer_id[ 2 ];    /* array of timer ids */
    5252TEST_EXTERN rtems_name Timer_name[ 2 ];  /* array of timer names */
    53  
     53
    5454TEST_EXTERN volatile rtems_boolean Stop_Test;
    55  
     55
    5656TEST_EXTERN uint32_t            remote_node;
    5757TEST_EXTERN rtems_id                  remote_tid;
     
    6060TEST_EXTERN volatile uint32_t   signal_count;
    6161TEST_EXTERN volatile uint32_t   signal_caught;
    62  
     62
    6363/* end of include file */
  • testsuites/mptests/mp06/system.h

    rd3fdf89f r8f71a36  
    2727
    2828/* configuration information */
    29  
     29
    3030#define CONFIGURE_MP_APPLICATION
    31  
     31
    3232#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3333#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    34  
     34
    3535#define CONFIGURE_MAXIMUM_TASKS               2
    3636#define CONFIGURE_MAXIMUM_TIMERS              1
     
    4747TEST_EXTERN rtems_id   Timer_id[ 4 ];     /* array of timer ids */
    4848TEST_EXTERN rtems_name Timer_name[ 4 ];   /* array of timer names */
    49  
     49
    5050TEST_EXTERN volatile rtems_boolean Stop_Test;
    5151
  • testsuites/mptests/mp07/system.h

    rd3fdf89f r8f71a36  
    2727
    2828/* configuration information */
    29  
     29
    3030#define CONFIGURE_MP_APPLICATION
    31  
     31
    3232#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3333#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    34  
     34
    3535#define CONFIGURE_MAXIMUM_TASKS               2
    3636#define CONFIGURE_MAXIMUM_TIMERS              1
     
    4747TEST_EXTERN rtems_id   Timer_id[ 4 ];     /* array of timer ids */
    4848TEST_EXTERN rtems_name Timer_name[ 4 ];   /* array of timer names */
    49  
     49
    5050TEST_EXTERN volatile rtems_boolean Stop_Test;
    5151
  • testsuites/mptests/mp08/system.h

    rd3fdf89f r8f71a36  
    2727
    2828/* configuration information */
    29  
     29
    3030#define CONFIGURE_MP_APPLICATION
    31  
     31
    3232#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3333#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    34  
     34
    3535#define CONFIGURE_MAXIMUM_TASKS               2
    3636#define CONFIGURE_MAXIMUM_TIMERS              1
  • testsuites/mptests/mp09/system.h

    rd3fdf89f r8f71a36  
    3131
    3232/* configuration information */
    33  
     33
    3434#define CONFIGURE_MP_APPLICATION
    35  
     35
    3636#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3737#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    38  
     38
    3939#define CONFIGURE_MAXIMUM_TASKS               2
    4040#define CONFIGURE_MAXIMUM_TIMERS              1
     
    5252TEST_EXTERN rtems_id   Queue_id[ 2 ];    /* array of message queue ids */
    5353TEST_EXTERN rtems_name Queue_name[ 2 ];  /* array of message queue names */
    54  
     54
    5555extern char buffer1[16];
    5656extern char buffer2[16];
  • testsuites/mptests/mp10/system.h

    rd3fdf89f r8f71a36  
    2121  rtems_task_argument argument
    2222);
    23  
     23
    2424rtems_task Test_task1(
    2525  rtems_task_argument argument
    2626);
    27  
     27
    2828rtems_task Test_task2(
    2929  rtems_task_argument argument
    3030);
    31  
     31
    3232rtems_task Test_task3(
    3333  rtems_task_argument restart
     
    3535
    3636/* configuration information */
    37  
     37
    3838#define CONFIGURE_MP_APPLICATION
    39  
     39
    4040#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    4141#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    42  
     42
    4343#if ( NODE_NUMBER == 1 )
    4444#define CONFIGURE_MAXIMUM_TASKS               1
  • testsuites/mptests/mp11/system.h

    rd3fdf89f r8f71a36  
    2323
    2424/* configuration information */
    25  
     25
    2626#define CONFIGURE_MP_APPLICATION
    27  
     27
    2828#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    2929#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     
    3131#define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS     0
    3232#define CONFIGURE_MP_MAXIMUM_PROXIES            0
    33  
     33
    3434#define CONFIGURE_MAXIMUM_TASKS               1
    3535#if ( NODE_NUMBER == 1 )
     
    5050TEST_EXTERN rtems_id   Queue_id[ 2 ];       /* array of message queue ids */
    5151TEST_EXTERN rtems_name Queue_name[ 2 ];     /* array of message queue names */
    52  
     52
    5353TEST_EXTERN rtems_id   Semaphore_id[ 2 ];   /* array of semaphore ids */
    5454TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */
  • testsuites/mptests/mp12/system.h

    rd3fdf89f r8f71a36  
    2525
    2626/* configuration information */
    27  
     27
    2828#define CONFIGURE_MP_APPLICATION
    29  
     29
    3030#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3131#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     
    3333#define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS     1
    3434#define CONFIGURE_MP_MAXIMUM_PROXIES            0
    35  
     35
    3636#define CONFIGURE_MAXIMUM_TASKS               1
    3737#if ( NODE_NUMBER == 1 )
  • testsuites/mptests/mp13/system.h

    rd3fdf89f r8f71a36  
    3131
    3232/* configuration information */
    33  
     33
    3434#define CONFIGURE_MP_APPLICATION
    35  
     35
    3636#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3737#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     
    5454TEST_EXTERN rtems_id   Queue_id[ 2 ];       /* array of message queue ids */
    5555TEST_EXTERN rtems_name Queue_name[ 2 ];     /* array of message queue names */
    56  
     56
    5757TEST_EXTERN rtems_id   Semaphore_id[ 2 ];   /* array of semaphore ids */
    5858TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */
  • testsuites/mptests/mp14/exit.c

    rd3fdf89f r8f71a36  
    2828   * when our MPCI shuts down
    2929   */
    30  
     30
    3131  rtems_task_wake_after(20);
    32  
     32
    3333  status = rtems_task_mode( RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
    3434  directive_failed( status, "rtems_task_mode" );
  • testsuites/mptests/mp14/system.h

    rd3fdf89f r8f71a36  
    5050
    5151/* configuration information */
    52  
     52
    5353#define CONFIGURE_MP_APPLICATION
    54  
     54
    5555#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    5656#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    57  
     57
    5858#define CONFIGURE_TICKS_PER_TIMESLICE   1
    5959#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(1)
  • testsuites/samples/base_mp/system.h

    rd3fdf89f r8f71a36  
    2727
    2828/* configuration information */
    29  
     29
    3030#include <bsp.h> /* for device driver prototypes */
    3131
    3232#define CONFIGURE_MP_APPLICATION
    33  
     33
    3434#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3535#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    36  
     36
    3737#define CONFIGURE_MAXIMUM_TASKS           2
    3838
  • testsuites/samples/fileio/init.c

    rd3fdf89f r8f71a36  
    204204      }
    205205    } while (n > 0);
    206    
     206
    207207    rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &curr_tick);
    208    
     208
    209209    printf("\n ******** End of file reached, flen = %d\n",flen);
    210210    close(fd);
    211    
     211
    212212    rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_sec);
    213213    printf("time elapsed for read:  %g seconds\n",
     
    263263  char *bufptr = NULL;
    264264  boolean failed = FALSE;
    265   static const char write_test_string[] = 
     265  static const char write_test_string[] =
    266266    "The quick brown fox jumps over the lazy dog\n";
    267   static const char write_block_string[] = 
     267  static const char write_block_string[] =
    268268    "\n----- end of write buffer ------\n";
    269  
     269
    270270  printf(" =========================\n");
    271271  printf(" WRITE FILE ...           \n");
     
    371371    rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start_tick);
    372372    curr_pos = 0;
    373     do {     
     373    do {
    374374      bytes_to_copy = buf_size;
    375375      do {
     
    423423  char *bufptr = NULL;
    424424  boolean failed = FALSE;
    425  
     425
    426426  printf(" =========================\n");
    427427  printf(" READ FILE ...            \n");
     
    490490    rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start_tick);
    491491    curr_pos = 0;
    492     do {     
     492    do {
    493493      n = read(fd,
    494494               bufptr,
     
    512512             ((double)curr_tick-start_tick)/ticks_per_sec);
    513513      printf("read data rate: %g KBytes/second\n",
    514              (((double)curr_pos) / 1024.0 / 
     514             (((double)curr_pos) / 1024.0 /
    515515              (((double)curr_tick-start_tick)/ticks_per_sec)));
    516516    }
     
    555555    switch (inbuf[0]) {
    556556    case 'l':
    557       fileio_list_file ();                     
     557      fileio_list_file ();
    558558      break;
    559559    case 'r':
    560       fileio_read_file ();                     
     560      fileio_read_file ();
    561561      break;
    562562    case 'w':
    563       fileio_write_file ();                     
     563      fileio_write_file ();
    564564      break;
    565565    case 'p':
    566       fileio_part_table_initialize ();                 
     566      fileio_part_table_initialize ();
    567567      break;
    568568    case 'f':
    569       fileio_fsmount ();                       
     569      fileio_fsmount ();
    570570      break;
    571571#ifdef USE_SHELL
    572572    case 's':
    573       fileio_start_shell ();                   
     573      fileio_start_shell ();
    574574      break;
    575575#endif
     
    578578      break;
    579579    }
    580    
     580
    581581  }
    582582  exit (0);
  • testsuites/samples/fileio/system.h

    rd3fdf89f r8f71a36  
    4545        ,IDE_CONTROLLER_DRIVER_TABLE_ENTRY
    4646        /* important: ATA driver must be after ide drivers */
    47         ,ATA_DRIVER_TABLE_ENTRY 
     47        ,ATA_DRIVER_TABLE_ENTRY
    4848#endif
    4949        };
  • testsuites/samples/ticker/system.h

    rd3fdf89f r8f71a36  
    3030/*
    3131 *  Keep the names and IDs in global variables so another task can use them.
    32  */ 
     32 */
    3333
    3434extern rtems_id   Task_id[ 4 ];         /* array of task ids */
  • testsuites/samples/unlimited/init.c

    rd3fdf89f r8f71a36  
    4141
    4242  /* lower the task priority to allow created tasks to execute */
    43  
     43
    4444  rtems_task_set_priority(RTEMS_SELF, 20, &old_priority);
    4545  rtems_task_mode(RTEMS_PREEMPT,  RTEMS_PREEMPT_MASK, &old_mode);
    46  
     46
    4747  printf( "\n*** UNLIMITED TASK TEST ***\n" );
    4848
     
    5050   * Invalid state if the task id is 0
    5151   */
    52    
     52
    5353  for (task = 0; task < MAX_TASKS; task++)
    5454    task_id[task] = 0;
     
    5757  test2();
    5858  test3();
    59  
     59
    6060  printf( "\n*** END OF UNLIMITED TASK TEST ***\n" );
    6161  exit( 0 );
     
    6767{
    6868  rtems_event_set out;
    69  
     69
    7070  printf( "task %i has started.\n",  my_number);
    7171
    7272  rtems_event_receive(1, RTEMS_WAIT | RTEMS_EVENT_ANY, 0, &out);
    73  
     73
    7474  printf( "task %i ending.\n",  my_number);
    7575
     
    8282{
    8383  uint32_t   task;
    84  
     84
    8585  /*
    8686   *  If the id is not zero, signal the task to delete.
    8787   */
    88  
     88
    8989  for (task = 0; task < MAX_TASKS; task++)
    9090    if (task_id[task])
     
    104104  {
    105105    printf("failure, ");
    106    
     106
    107107    if (status_code == RTEMS_TOO_MANY)
    108108    {
    109       printf("too many.\n");     
     109      printf("too many.\n");
    110110      return TRUE;
    111111    }
    112112    if (status_code == RTEMS_UNSATISFIED)
    113113    {
    114       printf("unsatisfied.\n");     
     114      printf("unsatisfied.\n");
    115115      return TRUE;
    116116    }
  • testsuites/samples/unlimited/test1.c

    rd3fdf89f r8f71a36  
    2929  uint32_t    task_count = 0;
    3030  Objects_Information *the_information;
    31  
     31
    3232  char              c1 = 'a';
    3333  char              c2 = 'a';
    3434  char              c3 = '0';
    3535  char              c4 = '0';
    36    
     36
    3737  printf( "\n TEST1 : auto-extend disabled.\n" );
    3838
     
    4242   */
    4343
    44   the_information = 
     44  the_information =
    4545    _Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS];
    4646  auto_extend = the_information->auto_extend;
    4747  the_information->auto_extend = FALSE;
    48  
     48
    4949  while (task_count < MAX_TASKS)
    5050  {
     
    5252
    5353    printf(" TEST1 : creating task '%c%c%c%c', ", c1, c2, c3, c4);
    54    
     54
    5555    name = rtems_build_name(c1, c2, c3, c4);
    5656
     
    6464    if (status_code_bad(result))
    6565      break;
    66    
     66
    6767    printf("number = %3i, id = %08x, starting, ", task_count, task_id[task_count]);
    68    
     68
    6969    fflush(stdout);
    7070    result = rtems_task_start(task_id[task_count],
    7171                              test_task,
    7272                              (rtems_task_argument) task_count);
    73    
     73
    7474    if (status_code_bad(result))
    7575      break;
    76    
     76
    7777    /*
    7878     *  Update the name.
    7979     */
    80    
     80
    8181    NEXT_TASK_NAME(c1, c2, c3, c4);
    82    
     82
    8383    task_count++;
    8484  }
     
    8686  if (task_count >= MAX_TASKS)
    8787    printf( "\nMAX_TASKS too small for work-space size, please make larger !!\n\n" );
    88    
     88
    8989  if (task_count != (TASK_ALLOCATION_SIZE - 1)) {
    9090    printf( " FAIL1 : the number of tasks does not equal the expected size -\n"
     
    9595
    9696  destory_all_tasks("TEST1");
    97  
     97
    9898  the_information->auto_extend = auto_extend;
    99  
     99
    100100  printf( " TEST1 : completed\n" );
    101101}
  • testsuites/samples/unlimited/test2.c

    rd3fdf89f r8f71a36  
    3333  uint32_t      task_count = 0;
    3434  rtems_id            removed_ids[TASK_ALLOCATION_SIZE * 2];
    35  
     35
    3636  char               c1 = 'a';
    3737  char               c2 = 'a';
    3838  char               c3 = '0';
    3939  char               c4 = '0';
    40  
     40
    4141  printf( "\n TEST2 : re-allocate of index numbers, and a block free'ed and one inactive\n" );
    4242
     
    4545   *  to count the Init task, ie ... - 1.
    4646   */
    47  
     47
    4848  while (task_count < ((TASK_ALLOCATION_SIZE * 5) - TASK_INDEX_OFFSET))
    4949  {
     
    5151
    5252    printf(" TEST2 : creating task '%c%c%c%c', ", c1, c2, c3, c4);
    53    
     53
    5454    name = rtems_build_name(c1, c2, c3, c4);
    5555
     
    6363    if (status_code_bad(result))
    6464      break;
    65    
     65
    6666    printf("number = %3i, id = %08x, starting, ", task_count, task_id[task_count]);
    6767    fflush(stdout);
    68    
     68
    6969    result = rtems_task_start(task_id[task_count],
    7070                              test_task,
    7171                              (rtems_task_argument) task_count);
    72    
     72
    7373    if (status_code_bad(result))
    7474      break;
    75    
     75
    7676    /*
    7777     *  Update the name.
    7878     */
    79    
     79
    8080    NEXT_TASK_NAME(c1, c2, c3, c4);
    81    
     81
    8282    task_count++;
    8383  }
     
    9696
    9797  task = 0;
    98  
     98
    9999  for (block = 1; block < 4; block += 2)
    100100  {
     
    115115       * Save the id's to match them against the reallocated ids
    116116       */
    117      
     117
    118118      removed_ids[task++] = task_id[remove_task];
    119      
     119
    120120      printf(" TEST2 : block %i remove, signal task %08x, ", block, task_id[remove_task]);
    121121      rtems_event_send(task_id[remove_task], 1);
     
    136136      if (!task_id[id_slot])
    137137        break;
    138      
     138
    139139    if (id_slot == MAX_TASKS)
    140140    {
     
    145145
    146146    printf(" TEST2 : creating task '%c%c%c%c', ", c1, c2, c3, c4);
    147    
     147
    148148    name = rtems_build_name(c1, c2, c3, c4);
    149149
     
    154154                               RTEMS_LOCAL,
    155155                               &task_id[id_slot]);
    156    
     156
    157157    if (status_code_bad(result))
    158158    {
     
    163163      exit( 1 );
    164164    }
    165    
     165
    166166    printf("number = %3i, id = %08x, starting, ", task_count, task_id[id_slot]);
    167    
     167
    168168    result = rtems_task_start(task_id[id_slot],
    169169                              test_task,
    170170                              (rtems_task_argument) task_count);
    171    
     171
    172172    if (status_code_bad(result))
    173173    {
     
    178178      exit( 1 );
    179179    }
    180    
     180
    181181    /*
    182182     *  Update the name.
    183183     */
    184    
     184
    185185    NEXT_TASK_NAME(c1, c2, c3, c4);
    186    
     186
    187187    /*
    188188     *  Search the removed ids to see if it existed, clear the removed id when found
    189189     */
    190    
     190
    191191    for (remove_task = 0; remove_task < (TASK_ALLOCATION_SIZE * 2); remove_task++)
    192192      if (removed_ids[remove_task] == task_id[id_slot])
     
    200200     *  already allocated
    201201     */
    202    
     202
    203203    if (remove_task == (TASK_ALLOCATION_SIZE * 2))
    204204    {
    205205      uint32_t   allocated_id;
    206      
     206
    207207      for (allocated_id = 0; allocated_id < MAX_TASKS; allocated_id++)
    208208        if ((task_id[id_slot] == task_id[allocated_id]) && (id_slot != allocated_id))
     
    213213          exit( 1 );
    214214        }
    215      
     215
    216216      printf( " FAIL2 : could not find the task id in the removed table -\n"
    217217              "         task id = %08x\n",
     
    222222    task_count++;
    223223  }
    224  
     224
    225225  destory_all_tasks("TEST2");
    226  
     226
    227227  printf( " TEST2 : completed\n" );
    228228}
  • testsuites/samples/unlimited/test3.c

    rd3fdf89f r8f71a36  
    3131  uint32_t      block;
    3232  uint32_t      task_count = 0;
    33  
     33
    3434  char               c1 = 'a';
    3535  char               c2 = 'a';
    3636  char               c3 = '0';
    3737  char               c4 = '0';
    38  
     38
    3939  printf( "\n TEST3 : free more than 3 x allocation size, but not the same block,\n"
    4040            "         then free a block\n");
     
    4949    exit( 1 );
    5050  }
    51  
     51
    5252   /*
    5353   *  Allocate as many tasks as possible.
    5454   */
    55  
     55
    5656  while (task_count < MAX_TASKS)
    5757  {
     
    5959
    6060    printf(" TEST3 : creating task '%c%c%c%c', ", c1, c2, c3, c4);
    61    
     61
    6262    name = rtems_build_name(c1, c2, c3, c4);
    6363
     
    7171    if (status_code_bad(result))
    7272      break;
    73    
     73
    7474    printf("number = %3i, id = %08x, starting, ", task_count, task_id[task_count]);
    7575    fflush(stdout);
    76    
     76
    7777    result = rtems_task_start(task_id[task_count],
    7878                              test_task,
    7979                              (rtems_task_argument) task_count);
    80    
     80
    8181    if (status_code_bad(result))
    8282      break;
    83    
     83
    8484    /*
    8585     *  Update the name.
    8686     */
    87    
     87
    8888    NEXT_TASK_NAME(c1, c2, c3, c4);
    89    
     89
    9090    task_count++;
    9191  }
     
    128128   *  allocator's free routine
    129129   */
    130    
     130
    131131  for (remove_task = (TASK_ALLOCATION_SIZE - TASK_INDEX_OFFSET);
    132132       remove_task < ((TASK_ALLOCATION_SIZE * 2) - - TASK_INDEX_OFFSET);
     
    140140    }
    141141  }
    142  
     142
    143143  destory_all_tasks("TEST3");
    144  
     144
    145145  printf( " TEST3 : completed\n" );
    146146}
  • testsuites/support/include/buffer_test_io.h

    rd3fdf89f r8f71a36  
    11/*
    22 *  Support for running the test output through a buffer
    3  * 
     3 *
    44 *  $Id$
    55 */
     
    2828#define printf(...) \
    2929  do { \
    30      iprintf( __VA_ARGS__); \ 
     30     iprintf( __VA_ARGS__); \
    3131  } while (0)
    3232#endif
     
    5959  do { \
    6060     char _buffer[128]; \
    61      sprintf( _buffer, __VA_ARGS__); \ 
     61     sprintf( _buffer, __VA_ARGS__); \
    6262     _test_output_append( _buffer ); \
    6363  } while (0)
     
    6767  do { \
    6868     char _buffer[128]; \
    69      sprintf( _buffer, "%s\n", _string ); \ 
     69     sprintf( _buffer, "%s\n", _string ); \
    7070     _test_output_append( _buffer ); \
    7171  } while (0)
     
    9191{
    9292  char *p;
    93  
     93
    9494  for ( p=_buffer ; *p ; p++ ) {
    9595    _test_output_buffer[_test_output_buffer_index++] = *p;
     
    102102    }
    103103#endif
    104     if ( _test_output_buffer_index >= (_TEST_OUTPUT_BUFFER_SIZE - 80) ) 
     104    if ( _test_output_buffer_index >= (_TEST_OUTPUT_BUFFER_SIZE - 80) )
    105105      _test_output_flush();
    106106  }
  • testsuites/support/include/tmacros.h

    rd3fdf89f r8f71a36  
    3232
    3333#ifdef TEST_INIT
    34 #define TEST_EXTERN 
     34#define TEST_EXTERN
    3535#define CONFIGURE_INIT
    3636#else
     
    5454      rtems_test_exit( 1 ); \
    5555    } \
    56   } while ( 0 ) 
     56  } while ( 0 )
    5757
    5858/*
     
    8484    check_dispatch_disable_level( _level ); \
    8585    fatal_directive_check_status_only( _stat, _desired, _msg ); \
    86   } while ( 0 ) 
     86  } while ( 0 )
    8787
    8888/*
  • testsuites/tmitrontests/include/timesys.h

    rd3fdf89f r8f71a36  
    2020 */
    2121
    22 #ifndef OPERATION_COUNT 
     22#ifndef OPERATION_COUNT
    2323#define OPERATION_COUNT 100
    2424#endif
  • testsuites/tmitrontests/tmitronsem01/init.c

    rd3fdf89f r8f71a36  
    5757   */
    5858
    59   Timer_initialize(); 
     59  Timer_initialize();
    6060    (void) del_sem( 1 );
    6161  end_time = Read_timer();
     
    108108   *  time sig_sem (no waiting tasks)
    109109   */
    110  
    111   Timer_initialize(); 
     110
     111  Timer_initialize();
    112112    for ( index = 1 ; index<=OPERATION_COUNT ; index++ )
    113113      (void) sig_sem( 1 );
  • testsuites/tmtests/tm01/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_SEMAPHORES         1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm02/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_SEMAPHORES         1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm03/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_SEMAPHORES         1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm04/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_SEMAPHORES         1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm05/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              (2 + OPERATION_COUNT)
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm06/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              (2 + OPERATION_COUNT)
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm07/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              (2 + OPERATION_COUNT)
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm08/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              3
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm09/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES     1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm10/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES     1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm10/task1.c

    rd3fdf89f r8f71a36  
    119119{
    120120  uint32_t   size;
    121  
     121
    122122  Timer_initialize();
    123123     (void) rtems_message_queue_receive(
     
    135135{
    136136  uint32_t   size;
    137  
     137
    138138  (void) rtems_message_queue_receive(
    139139           Queue_id,
  • testsuites/tmtests/tm11/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES     1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm11/task1.c

    rd3fdf89f r8f71a36  
    133133{
    134134  uint32_t   size;
    135  
     135
    136136  (void) rtems_message_queue_receive(
    137137           Queue_id,
  • testsuites/tmtests/tm12/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES     1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm13/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES     1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm14/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES     1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm15/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              (2 + OPERATION_COUNT)
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm16/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              (3 + OPERATION_COUNT)
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm17/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              (2 + OPERATION_COUNT)
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm18/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              (2 + OPERATION_COUNT)
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm19/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              4
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm20/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3535#define CONFIGURE_MAXIMUM_REGIONS            1
    3636#define CONFIGURE_TICKS_PER_TIMESLICE        0
    37  
     37
    3838#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3939
  • testsuites/tmtests/tm21/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    4040
    4141#define CONFIGURE_TICKS_PER_TIMESLICE        0
    42  
     42
    4343#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4444
  • testsuites/tmtests/tm22/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES     1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm23/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_TIMERS             OPERATION_COUNT
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm24/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              (2 + OPERATION_COUNT)
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm25/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_SEMAPHORES         1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm26/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_SEMAPHORES         1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm26/task1.c

    rd3fdf89f r8f71a36  
    198198    rtems_interrupt_disable( level );
    199199  isr_disable_time = Read_timer();
    200  
     200
    201201  Timer_initialize();
    202202    rtems_interrupt_flash( level );
    203203  isr_flash_time = Read_timer();
    204  
     204
    205205  Timer_initialize();
    206206    rtems_interrupt_enable( level );
    207207  isr_enable_time = Read_timer();
    208  
     208
    209209  Timer_initialize();
    210210    _Thread_Disable_dispatch();
     
    446446    0
    447447  );
    448  
     448
    449449  put_time(
    450450    "_ISR_Enable",
     
    454454    0
    455455  );
    456  
     456
    457457  put_time(
    458458    "_Thread_Disable_dispatch",
  • testsuites/tmtests/tm27/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              3
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tm27/task1.c

    rd3fdf89f r8f71a36  
    1212
    1313/*
    14  *  WARNING!!!!!!!!!   
     14 *  WARNING!!!!!!!!!
    1515 *
    1616 *  THIS TEST USES INTERNAL RTEMS VARIABLES!!!
     
    190190
    191191/*
    192  *  NOTE:  When this task is executing, some of the assumptions made 
     192 *  NOTE:  When this task is executing, some of the assumptions made
    193193 *         regarding the placement of the currently executing task's TCB
    194194 *         on the ready chains have been violated.  At least the assumption
     
    229229
    230230  _Thread_Dispatch_disable_level = 0;
    231  
     231
    232232  _Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[254].first;
    233  
     233
    234234  _Context_Switch_necessary = 1;
    235235
  • testsuites/tmtests/tm28/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_PORTS              1
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737
  • testsuites/tmtests/tm29/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3333#define CONFIGURE_MAXIMUM_PERIODS            OPERATION_COUNT
    3434#define CONFIGURE_TICKS_PER_TIMESLICE        0
    35  
     35
    3636#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3737#define CONFIGURE_INIT_TASK_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
  • testsuites/tmtests/tmck/system.h

    rd3fdf89f r8f71a36  
    2626
    2727/* configuration information */
    28  
     28
    2929#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3030#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    3232#define CONFIGURE_MAXIMUM_TASKS              2
    3333#define CONFIGURE_TICKS_PER_TIMESLICE        0
    34  
     34
    3535#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3636
  • testsuites/tmtests/tmck/task1.c

    rd3fdf89f r8f71a36  
    3636
    3737  /*
    38    *  Tell the Timer Driver what we are doing 
     38   *  Tell the Timer Driver what we are doing
    3939   */
    4040
     
    153153    if ( end_time > MAXIMUM_DISTRIBUTION ) {
    154154      /*
    155        *  Under UNIX a simple process swap takes longer than we 
     155       *  Under UNIX a simple process swap takes longer than we
    156156       *  consider valid for our testing purposes.
    157157       */
    158158      printf( "TOO LONG (%d) at index %d!!!\n", end_time, index );
    159159#if defined(unix)
    160       index--; 
     160      index--;
    161161      continue;
    162162#else
  • testsuites/tmtests/tmoverhd/system.h

    rd3fdf89f r8f71a36  
    2626  rtems_id argument
    2727);
    28  
     28
    2929rtems_asr Isr_handler(
    3030  rtems_signal_set signals
    3131);
    32  
     32
    3333rtems_asr Asr_handler(
    3434  rtems_signal_set signals
    3535);
    36  
     36
    3737rtems_task task_func();
    38  
     38
    3939void null_func();
    40  
     40
    4141rtems_status_code Empty_directive();
    4242
     
    4444
    4545/* configuration information */
    46  
     46
    4747#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    4848#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
     
    5050#define CONFIGURE_MAXIMUM_TASKS              2
    5151#define CONFIGURE_TICKS_PER_TIMESLICE        0
    52  
     52
    5353#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    5454
  • tools/build/binpatch.c

    rd3fdf89f r8f71a36  
    1414static char buf[512];
    1515
    16 static void 
     16static void
    1717usage(void)
    1818{
     
    4141  char  patch[4], *end;
    4242  int   patchLen, tmp, i, off, cnt, patched, len, reloc;
    43  
    44  
     43
     44
    4545  /* parse command line options */
    4646  while ((c = getopt(argc, argv, "h")) >= 0)
     
    9494      patch[i] = tmp;
    9595    }
    96      
     96
    9797  ifp = fopen(argv[2], "r");
    9898  if(ifp == NULL)
     
    138138          patched = 1;
    139139        }
    140          
     140
    141141      fwrite(buf, 1, len, ofp);
    142142
     
    146146  fclose(ifp);
    147147  fclose(ofp);
    148  
     148
    149149  if(!patched)
    150150    {
  • tools/build/packhex.c

    rd3fdf89f r8f71a36  
    494494        length = strlen(inbuff);
    495495        inbuff[length - 1] = '\0';
    496        
     496
    497497    }
    498498
  • tools/build/unhex.c

    rd3fdf89f r8f71a36  
    112112#define stol(p) strtol(p, (char **) NULL, 0)
    113113#endif
    114  
     114
    115115int   unhex(FILE *ifp, char *inm, FILE *ofp, char *onm);
    116116int   convert_Intel_records(FILE *ifp, char *inm, FILE *ofp, char *onm);
  • tools/cpu/sh/sci.c

    rd3fdf89f r8f71a36  
    1313/*
    1414   n .. baudrate generator source 0,1,2,3
    15    
     15
    1616   N .. BRR setting (0..255)
    17    
     17
    1818   Phi .. processor baud rate
    19    
     19
    2020   B .. bitrate
    2121 */
     
    5252static sci_tab_t test_array[4] ;
    5353
    54 static void Compute( 
    55   unsigned int n, 
    56   unsigned int B, 
     54static void Compute(
     55  unsigned int n,
     56  unsigned int B,
    5757  double   Phi,
    5858  struct sci_tab *entry )
    5959{
    6060  int    a = ( 32 << ( 2 * n ) ) * B ;
    61  
     61
    6262  entry->n = n ;
    6363  entry->B = B ;
    6464  entry->N = rint( ( Phi / a ) - 1.0 ) ;
    6565
    66   if ( ( entry->N > 0 ) && ( entry->N < 256 ) ) 
    67     entry->err = 
     66  if ( ( entry->N > 0 ) && ( entry->N < 256 ) )
     67    entry->err =
    6868      ( ( Phi / ( (entry->N + 1) * a ) - 1.0 ) * 100.0 );
    6969  else
     
    7575}
    7676
    77 static sci_tab_t *SelectN( 
     77static sci_tab_t *SelectN(
    7878  unsigned int  B,
    7979  double        Phi )
     
    8181  unsigned int i ;
    8282  struct sci_tab* best = NULL ;
    83    
     83
    8484  for ( i = 0 ; i < 4 ; i++ )
    85   { 
     85  {
    8686    double err ;
    87    
     87
    8888    Compute( i, B, Phi, &test_array[i] );
    8989    err = fabs( test_array[i].err );
     
    9898  }
    9999
    100   return best ; 
     100  return best ;
    101101}
    102102
     
    107107  unsigned int i ;
    108108
    109   fprintf( file, 
     109  fprintf( file,
    110110    "/*\n * Bitrate table for the serial devices (sci) of the SH at %.3f MHz\n"
    111111    " */\n\n", Phi / 1000000.0 );
     
    119119    " */\n\n" );
    120120  fprintf( file, "#include <termios.h>\n\n" );
    121   fprintf( file, 
     121  fprintf( file,
    122122    "static struct sci_bitrate_t {\n"
    123123    "  unsigned char n ;\n"
     
    125125    "} _sci_bitrates[] = {\n"
    126126    "/*  n    N      error */\n" );
    127  
     127
    128128  for ( i = 0 ; i < sizeof(bitrate)/sizeof(int) ; i++ )
    129129  {
     
    144144  fprintf( file, "\n};\n\n" );
    145145
    146   fprintf( file, 
     146  fprintf( file,
    147147    "int _sci_get_brparms( \n"
    148148    "  tcflag_t      cflag,\n"
     
    161161    "  return 0;\n"
    162162    "}\n" );
    163    
     163
    164164  return 0 ;
    165165}
  • tools/cpu/sh/shgen.c

    rd3fdf89f r8f71a36  
    4545static void shgen_header( FILE *file )
    4646{
    47   fprintf( file, 
     47  fprintf( file,
    4848    "/*\n * DO NOT EDIT - this file is automatically generated by shgen %s\n",
    4949    VERSION );
    5050  fprintf( file,
    5151    " * Copyright (c) 1998,1999,2000 Ralf Corsepius (corsepiu@faw.uni-ulm.de)\n */\n" );
    52   fprintf( file, 
     52  fprintf( file,
    5353    "\n/* This file is not copyrighted */\n\n" );
    5454}
     
    5858  double        Phi = 20000000.0 ;
    5959
    60 #if HAVE_GETOPT_LONG 
     60#if HAVE_GETOPT_LONG
    6161  int option_index = 0 ;
    6262  while( ( optopt = getopt_long( argc, argv, "M:K:H:hv",
     
    6969    {
    7070    case 'M' :
    71       sscanf( optarg, "%lf", &Phi ); 
     71      sscanf( optarg, "%lf", &Phi );
    7272      Phi = Phi * 1000000.0;
    7373      break ;
    7474    case 'K' :
    75       sscanf( optarg, "%lf", &Phi ); 
     75      sscanf( optarg, "%lf", &Phi );
    7676      Phi = Phi * 1000.0;
    7777      break ;
     
    9797    exit(1);
    9898  }
    99  
     99
    100100  shgen_header( stdout );
    101      
     101
    102102  if ( strcmp( argv[optind], "sci" ) == 0 )
    103103  {
     
    109109    exit(1);
    110110  }
    111      
     111
    112112  return 0 ;
    113113}
Note: See TracChangeset for help on using the changeset viewer.