Changeset e2b6666 in multiio


Ignore:
Timestamp:
Jul 20, 2009, 5:53:35 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
fa08fc7
Parents:
6749071
Message:

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

  • README: Add description of commands.
  • main_pcmmio_din.c, main_pcmmio_dout.c: Fix usage.
Location:
pcmmio/original
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pcmmio/original/ChangeLog

    r6749071 re2b6666  
     12009-07-20      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * README: Add description of commands.
     4        * main_pcmmio_din.c, main_pcmmio_dout.c: Fix usage.
     5
    162009-07-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • pcmmio/original/README

    r6749071 re2b6666  
    1111The driver uses 4 Classic API Barriers.
    1212
    13 
    1413--joel sherrill
    1514
     
    2019  This design flaw is carried over into the RTEMS version.
    2120
    22 + We want to timestamp samples and the current code does not do that.
     21+ We want to timestamp samples and the initial code did not do that.  I
     22  added this.
    2323
    24 + Need an RTEMS configuration.
     24RTEMS Shell Commands
     25====================
     26The following RTEMS Shell configuration aids are defined to assist in
     27adding PCMMIO related commands to your shell.
     28  CONFIGURE_PCMMIO_ALIASES
     29  CONFIGURE_PCMMIO_COMMANDS
     30
     31pcmmio_din - Discrete Input
     32    Usage: din [-i iterations] [-p period] [-v]
     33    Where: maximum iterations defaults to 1
     34           the period is in milliseconds and defaults to 1000
     35
     36pcmmio_dout - Discrete Output
     37    pcmmio_dout [-v] bit value
     38    Where: bit must be 0-47
     39           value must be 0 or 1
     40
     41din - alias for pcmmio_din
     42dout - alias for pcmmio_dout
  • pcmmio/original/main_pcmmio_din.c

    r6749071 re2b6666  
    5353char pcmmio_din_usage[] =
    5454  "Usage: %s [-i iterations] [-p period] [-v]\n"
    55   " Where: maximum iterations defaults to 1\n"
    56   "        the period is in milliseconds and defaults to 1000\n";
     55  "Where: maximum iterations defaults to 1\n"
     56  "       the period is in milliseconds and defaults to 1000\n";
    5757
    5858int main_pcmmio_din(int argc, char **argv)
     
    8888        break;
    8989      default:
    90         printf(
    91           "%s%s",
    92           pcmmio_din_usage,
    93           argv[0]
    94         );
     90        printf( pcmmio_din_usage, argv[0] );
    9591        return -1;
    9692    }
  • pcmmio/original/main_pcmmio_dout.c

    r6749071 re2b6666  
    2424char pcmmio_dout_usage[] =
    2525  "Usage: %s [-v] bit value\n"
    26   " Where: bit must be 0-47\n"
    27   "        value must be 0 or 1\n";
     26  "Where: bit must be 0-47\n"
     27  "       value must be 0 or 1\n";
    2828
    2929#define PRINT_USAGE() \
    30    printf( "%s%s", pcmmio_dout_usage, argv[0] );
     30   printf( pcmmio_dout_usage, argv[0] );
    3131
    3232int main_pcmmio_dout(int argc, char **argv)
Note: See TracChangeset for help on using the changeset viewer.