Changeset 6749071 in multiio


Ignore:
Timestamp:
Jul 20, 2009, 5:46:11 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
e2b6666
Parents:
1fe1ea1
Message:

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

  • Makefile, main_pcmmio_din.c, pcmmio_commands.h, pcmmio_shell.c: Add dout command.
  • main_pcmmio_dout.c: New file.
Location:
pcmmio/original
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • pcmmio/original/ChangeLog

    r1fe1ea1 r6749071  
     12009-07-20      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile, main_pcmmio_din.c, pcmmio_commands.h, pcmmio_shell.c: Add
     4        dout command.
     5        * main_pcmmio_dout.c: New file.
     6
    172009-07-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • pcmmio/original/Makefile

    r1fe1ea1 r6749071  
    1515# optional managers required
    1616MANAGERS=all
     17DEFINES += -DTESTING
    1718
    1819# C source names
    19 SHARED_CSRCS = mio_io.c kbhit.c main_pcmmio_din.c
     20SHARED_CSRCS = mio_io.c kbhit.c main_pcmmio_din.c main_pcmmio_dout.c
    2021#SHARED_CSRCS += mio_io_linux.c
    2122SHARED_CSRCS += mio_io_rtems.c
  • pcmmio/original/main_pcmmio_din.c

    r1fe1ea1 r6749071  
    11/*
     2 *  pcmmio_din command
     3 *
    24 *  COPYRIGHT (c) 1989-2009.
    35 *  On-Line Applications Research Corporation (OAR).
     
    1517#include <getopt.h>
    1618
    17 #define dio_read_bit(_x) (_x & 1)
     19#if defined(TESTING)
     20  #define dio_read_bit(_x) (_x & 1)
     21#endif
    1822
    1923void pcmmio_dio_read(
     
    137141};
    138142
     143rtems_shell_alias_t Shell_PCMMIO_DIN_Alias = {
     144  "pcmmio_din",          /* command */
     145  "din"                  /* alias */
     146};
     147
  • pcmmio/original/pcmmio_commands.h

    r1fe1ea1 r6749071  
    1919
    2020extern rtems_shell_cmd_t Shell_PCMMIO_DIN_Command;
     21extern rtems_shell_cmd_t Shell_PCMMIO_DOUT_Command;
    2122
    2223#define CONFIGURE_PCMMIO_COMMANDS \
    23   &Shell_PCMMIO_DIN_Command
     24  &Shell_PCMMIO_DIN_Command, \
     25  &Shell_PCMMIO_DOUT_Command
    2426
     27extern rtems_shell_alias_t Shell_PCMMIO_DIN_Alias;
     28extern rtems_shell_alias_t Shell_PCMMIO_DOUT_Alias;
     29
     30#define CONFIGURE_PCMMIO_ALIASES \
     31  &Shell_PCMMIO_DIN_Alias, \
     32  &Shell_PCMMIO_DOUT_Alias
     33 
    2534#endif
  • pcmmio/original/pcmmio_shell.c

    r1fe1ea1 r6749071  
    5959#define CONFIGURE_SHELL_USER_COMMANDS \
    6060  CONFIGURE_PCMMIO_COMMANDS
     61#define CONFIGURE_SHELL_USER_ALIASES \
     62  CONFIGURE_PCMMIO_ALIASES
    6163
    6264#define CONFIGURE_SHELL_COMMANDS_INIT
Note: See TracChangeset for help on using the changeset viewer.