Changeset fa08fc7 in multiio


Ignore:
Timestamp:
Jul 20, 2009, 7:50:28 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
9fec0a5
Parents:
e2b6666
Message:

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

  • Makefile, README, main_pcmmio_din.c, main_pcmmio_dout.c, pcmmio_commands.h: Add initial command to monitor analog inputs. Clean up help and usage.
  • main_pcmmio_adc.c: New file.
Location:
pcmmio/original
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • pcmmio/original/ChangeLog

    re2b6666 rfa08fc7  
     12009-07-20      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile, README, main_pcmmio_din.c, main_pcmmio_dout.c,
     4        pcmmio_commands.h: Add initial command to monitor analog inputs.
     5        Clean up help and usage.
     6        * main_pcmmio_adc.c: New file.
     7
    182009-07-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • pcmmio/original/Makefile

    re2b6666 rfa08fc7  
    1818
    1919# C source names
    20 SHARED_CSRCS = mio_io.c kbhit.c main_pcmmio_din.c main_pcmmio_dout.c
    2120#SHARED_CSRCS += mio_io_linux.c
     21SHARED_CSRCS = mio_io.c kbhit.c
     22SHARED_CSRCS += main_pcmmio_din.c main_pcmmio_dout.c
     23SHARED_CSRCS += main_pcmmio_adc.c
    2224SHARED_CSRCS += mio_io_rtems.c
    2325
  • pcmmio/original/README

    re2b6666 rfa08fc7  
    2929  CONFIGURE_PCMMIO_COMMANDS
    3030
    31 pcmmio_din - Discrete Input
    32     Usage: din [-i iterations] [-p period] [-v]
     31pcmmio_din - Read Discrete Inputs
     32    pcmmio_din [-i iterations] [-p period] [-v]
    3333    Where: maximum iterations defaults to 1
    34            the period is in milliseconds and defaults to 1000
     34           the period is in milliseconds and defaults to 1000
    3535
    36 pcmmio_dout - Discrete Output
     36pcmmio_dout - Write a Discrete Output
    3737    pcmmio_dout [-v] bit value
    3838    Where: bit must be 0-47
    3939           value must be 0 or 1
    4040
    41 din - alias for pcmmio_din
    42 dout - alias for pcmmio_dout
     41pcmmio_adc - Read Analog Inputs
     42    pcmmio_adc [-i iterations] [-p period] [-v]
     43    Where: maximum iterations defaults to 1
     44           the period is in milliseconds and defaults to 1000
     45
     46Aliases
     47  + adc  - alias for pcmmio_adc
     48  + din  - alias for pcmmio_din
     49  + dout - alias for pcmmio_dout
  • pcmmio/original/main_pcmmio_din.c

    re2b6666 rfa08fc7  
    130130rtems_shell_cmd_t Shell_PCMMIO_DIN_Command = {
    131131  "pcmmio_din",                                    /* name */
    132   pcmmio_din_usage,                                /* usage */
     132  "Read PCMMIO Discrete Inputs",                   /* usage */
    133133  "pcmmio",                                        /* topic */
    134134  main_pcmmio_din,                                 /* command */
  • pcmmio/original/main_pcmmio_dout.c

    re2b6666 rfa08fc7  
    9494rtems_shell_cmd_t Shell_PCMMIO_DOUT_Command = {
    9595  "pcmmio_dout",                                   /* name */
    96   pcmmio_dout_usage,                               /* usage */
     96  "Write PCMMIO Discrete Outputs",                 /* usage */
    9797  "pcmmio",                                        /* topic */
    9898  main_pcmmio_dout,                                /* command */
  • pcmmio/original/pcmmio_commands.h

    re2b6666 rfa08fc7  
    2020extern rtems_shell_cmd_t Shell_PCMMIO_DIN_Command;
    2121extern rtems_shell_cmd_t Shell_PCMMIO_DOUT_Command;
     22extern rtems_shell_cmd_t Shell_PCMMIO_ADC_Command;
    2223
    2324#define CONFIGURE_PCMMIO_COMMANDS \
    2425  &Shell_PCMMIO_DIN_Command, \
    25   &Shell_PCMMIO_DOUT_Command
     26  &Shell_PCMMIO_DOUT_Command, \
     27  &Shell_PCMMIO_ADC_Command
    2628
    2729extern rtems_shell_alias_t Shell_PCMMIO_DIN_Alias;
    2830extern rtems_shell_alias_t Shell_PCMMIO_DOUT_Alias;
     31extern rtems_shell_alias_t Shell_PCMMIO_ADC_Alias;
    2932
    3033#define CONFIGURE_PCMMIO_ALIASES \
    3134  &Shell_PCMMIO_DIN_Alias, \
    32   &Shell_PCMMIO_DOUT_Alias
     35  &Shell_PCMMIO_DOUT_Alias, \
     36  &Shell_PCMMIO_ADC_Alias
    3337 
    3438#endif
Note: See TracChangeset for help on using the changeset viewer.