source: multiio/pcmmio/original/pcmmio_commands.h @ 6957d53

Last change on this file since 6957d53 was 6957d53, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 17, 2011 at 4:39:38 PM

2011-02-17 Joel Sherrill <joel.sherrill@…>

  • Makefile, main_pcmmio_adc.c, pcmmio_commands.h, pcmmio_shell.c: Add set mode command. Add capability to read a single ADC. Updates from Ada version.
  • rootfs/set_adc_modes, rootfs/test_adc: New files.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2009.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#ifndef __RTEMS_PCMMIO_COMMANDS_h
13#define __RTEMS_PCMMIO_COMMANDS_h
14
15#include <rtems.h>
16#include <rtems/shell.h>
17
18extern int main_pcmmio_din(int argc, char **argv);
19
20extern rtems_shell_cmd_t Shell_PCMMIO_DIN_Command;
21extern rtems_shell_cmd_t Shell_PCMMIO_DOUT_Command;
22extern rtems_shell_cmd_t Shell_PCMMIO_ADC_Mode_Command;
23extern rtems_shell_cmd_t Shell_PCMMIO_ADC_Command;
24extern rtems_shell_cmd_t Shell_PCMMIO_DAC_Command;
25extern rtems_shell_cmd_t Shell_PCMMIO_IRQ_Command;
26extern rtems_shell_cmd_t Shell_PCMMIO_Benchmark_Command;
27
28#define CONFIGURE_PCMMIO_COMMANDS \
29  &Shell_PCMMIO_DIN_Command, \
30  &Shell_PCMMIO_DOUT_Command, \
31  &Shell_PCMMIO_ADC_Command, \
32  &Shell_PCMMIO_ADC_Mode_Command, \
33  &Shell_PCMMIO_DAC_Command, \
34  &Shell_PCMMIO_IRQ_Command, \
35  &Shell_PCMMIO_Benchmark_Command \
36
37extern rtems_shell_alias_t Shell_PCMMIO_DIN_Alias;
38extern rtems_shell_alias_t Shell_PCMMIO_DOUT_Alias;
39extern rtems_shell_alias_t Shell_PCMMIO_ADC_Alias;
40extern rtems_shell_alias_t Shell_PCMMIO_ADC_Mode_Alias;
41extern rtems_shell_alias_t Shell_PCMMIO_DAC_Alias;
42
43#define CONFIGURE_PCMMIO_ALIASES \
44  &Shell_PCMMIO_DIN_Alias, \
45  &Shell_PCMMIO_DOUT_Alias, \
46  &Shell_PCMMIO_ADC_Alias, \
47  &Shell_PCMMIO_ADC_Mode_Alias, \
48  &Shell_PCMMIO_DAC_Alias
49 
50#endif
Note: See TracBrowser for help on using the repository browser.