Changeset 6955473 in multiio


Ignore:
Timestamp:
Jul 23, 2009, 2:39:20 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
b5c3d20
Parents:
45abed9
Message:

2009-07-23 Joel Sherrill <joel.sherrill@…>

  • main_pcmmio_adc.c, main_pcmmio_dac.c, main_pcmmio_din.c, main_pcmmio_dout.c, main_pcmmio_irq.c: Update checks of return status from rtems_string_to_XXX to reflect change to rtems_status_code.
Location:
pcmmio/original
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • pcmmio/original/ChangeLog

    r45abed9 r6955473  
     12009-07-23      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * main_pcmmio_adc.c, main_pcmmio_dac.c, main_pcmmio_din.c,
     4        main_pcmmio_dout.c, main_pcmmio_irq.c: Update checks of return status
     5        from rtems_string_to_XXX to reflect change to rtems_status_code.
     6
    172009-07-22      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • pcmmio/original/main_pcmmio_adc.c

    r45abed9 r6955473  
    8282      case 'i': /* maximum iterations */
    8383        s = getopt_reent.optarg;
    84         if ( !rtems_string_to_int( s, &maximum, NULL, 0 ) ) {
     84        if ( rtems_string_to_int( s, &maximum, NULL, 0 ) ) {
    8585          printf( "Maximum iterations (%s) is not a number\n", s );
    8686          PRINT_USAGE();
     
    9191      case 'p': /* sampling period */
    9292        s = getopt_reent.optarg;
    93         if ( !rtems_string_to_int( s, &milliseconds, NULL, 0 ) ) {
     93        if ( rtems_string_to_int( s, &milliseconds, NULL, 0 ) ) {
    9494          printf( "Sampling period (%s) is not a number\n", s );
    9595          PRINT_USAGE();
  • pcmmio/original/main_pcmmio_dac.c

    r45abed9 r6955473  
    6767   *  Convert the string arguments into number values
    6868   */
    69   if ( !rtems_string_to_int( argv[1], &dac, NULL, 0 ) ) {
     69  if ( rtems_string_to_int( argv[1], &dac, NULL, 0 ) ) {
    7070    printf( "DAC (%s) is not a number\n", argv[1] );
    7171    fail = true;
    7272  }
    7373
    74   if ( !rtems_string_to_float( argv[2], &low_voltage, NULL ) ) {
     74  if ( rtems_string_to_float( argv[2], &low_voltage, NULL ) ) {
    7575    printf( "Voltage (%s) is not a number\n", argv[2] );
    7676    fail = true;
     
    105105  fail = false;
    106106
    107   if ( !rtems_string_to_float( argv[3], &high_voltage, NULL ) ) {
     107  if ( rtems_string_to_float( argv[3], &high_voltage, NULL ) ) {
    108108    printf( "Voltage (%s) is not a number\n", argv[3] );
    109109    fail = true;
     
    112112  VALIDATE_VOLTAGE( high_voltage );
    113113
    114   if ( !rtems_string_to_float( argv[4], &step_voltage, NULL ) ) {
     114  if ( rtems_string_to_float( argv[4], &step_voltage, NULL ) ) {
    115115    printf( "Step voltage (%s) is not a number\n", argv[4] );
    116116    fail = true;
     
    124124  }
    125125
    126   if ( !rtems_string_to_int( argv[5], &step_time, NULL, 0 ) ) {
     126  if ( rtems_string_to_int( argv[5], &step_time, NULL, 0 ) ) {
    127127    printf( "Step time (%s) is not a number\n", argv[5] );
    128128    fail = true;
    129129  }
    130130
    131   if ( !rtems_string_to_int( argv[6], &maximum_time, NULL, 0 ) ) {
     131  if ( rtems_string_to_int( argv[6], &maximum_time, NULL, 0 ) ) {
    132132    printf( "Maximum time (%s) is not a number\n", argv[6] );
    133133    fail = true;
  • pcmmio/original/main_pcmmio_din.c

    r45abed9 r6955473  
    8585      case 'i': /* maximum iterations */
    8686        s = getopt_reent.optarg;
    87         if ( !rtems_string_to_int( s, &maximum, NULL, 0 ) ) {
     87        if ( rtems_string_to_int( s, &maximum, NULL, 0 ) ) {
    8888          printf( "Maximum iterations (%s) is not a number\n", s );
    8989          PRINT_USAGE();
     
    9494      case 'p': /* sampling period */
    9595        s = getopt_reent.optarg;
    96         if ( !rtems_string_to_int( s, &milliseconds, NULL, 0 ) ) {
     96        if ( rtems_string_to_int( s, &milliseconds, NULL, 0 ) ) {
    9797          printf( "Sampling period (%s) is not a number\n", s );
    9898          PRINT_USAGE();
  • pcmmio/original/main_pcmmio_dout.c

    r45abed9 r6955473  
    4646   *  Convert the string arguments into number values
    4747   */
    48   if ( !rtems_string_to_int( argv[1], &bit, NULL, 0 ) ) {
     48  if ( rtems_string_to_int( argv[1], &bit, NULL, 0 ) ) {
    4949    printf( "Bit (%s) is not a number\n", argv[1] );
    5050    fail = true;
    5151  }
    5252
    53   if ( !rtems_string_to_int(argv[2], &value, NULL, 0) ) {
     53  if ( rtems_string_to_int(argv[2], &value, NULL, 0) ) {
    5454    printf( "Value (%s) is not a number\n", argv[2] );
    5555    fail = true;
  • pcmmio/original/main_pcmmio_irq.c

    r45abed9 r6955473  
    5858      case 'i': /* maximum iterations */
    5959        s = getopt_reent.optarg;
    60         if ( !rtems_string_to_int( s, &maximum, NULL, 0 ) ) {
     60        if ( rtems_string_to_int( s, &maximum, NULL, 0 ) ) {
    6161          printf( "Maximum iterations (%s) is not a number\n", s );
    6262          PRINT_USAGE();
     
    6767      case 'p': /* sampling period */
    6868        s = getopt_reent.optarg;
    69         if ( !rtems_string_to_int( s, &milliseconds, NULL, 0 ) ) {
     69        if ( rtems_string_to_int( s, &milliseconds, NULL, 0 ) ) {
    7070          printf( "Sampling period (%s) is not a number\n", s );
    7171          PRINT_USAGE();
     
    8383      case 'D': /* DAC enable */
    8484        s = getopt_reent.optarg;
    85         if ( !rtems_string_to_int( s, &dac, NULL, 0 ) ) {
     85        if ( rtems_string_to_int( s, &dac, NULL, 0 ) ) {
    8686          printf( "DAC (%s) is not a number\n", s );
    8787          PRINT_USAGE();
     
    9999      case 'a': /* ADC enable */
    100100        s = getopt_reent.optarg;
    101         if ( !rtems_string_to_int( s, &adc, NULL, 0 ) ) {
     101        if ( rtems_string_to_int( s, &adc, NULL, 0 ) ) {
    102102          printf( "ADC (%s) is not a number\n", s );
    103103          PRINT_USAGE();
Note: See TracChangeset for help on using the changeset viewer.