Changeset 9fec0a5 in multiio


Ignore:
Timestamp:
Jul 21, 2009, 4:21:58 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
69f7221
Parents:
fa08fc7
Message:

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

  • Makefile, README, mio_io.h, pcmmio_commands.h: Add pcmmio_dac command.
  • main_pcmmio_dac.c: New file.
Location:
pcmmio/original
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • pcmmio/original/ChangeLog

    rfa08fc7 r9fec0a5  
     12009-07-21      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile, README, mio_io.h, pcmmio_commands.h: Add pcmmio_dac
     4        command.
     5        * main_pcmmio_dac.c: New file.
     6
    172009-07-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • pcmmio/original/Makefile

    rfa08fc7 r9fec0a5  
    2121SHARED_CSRCS = mio_io.c kbhit.c
    2222SHARED_CSRCS += main_pcmmio_din.c main_pcmmio_dout.c
    23 SHARED_CSRCS += main_pcmmio_adc.c
     23SHARED_CSRCS += main_pcmmio_adc.c main_pcmmio_dac.c
    2424SHARED_CSRCS += mio_io_rtems.c
    2525
  • pcmmio/original/README

    rfa08fc7 r9fec0a5  
    4444           the period is in milliseconds and defaults to 1000
    4545
     46pcmmio_adc - Write Analog Output
     47    pcmmio_dac [-v] dac voltage\n"
     48    Where: dac must be 0-7
     49           voltage must be -10V to +10V
     50
     51
    4652Aliases
    4753  + adc  - alias for pcmmio_adc
  • pcmmio/original/mio_io.h

    rfa08fc7 r9fec0a5  
    159159int wait_dac_ready(int channel);
    160160int set_dac_output(int channel, unsigned short dac_value);
    161 int set_dac_voltage(int channel, float voltage);
    162161int set_dac_voltage(int channel, float voltage);
    163162unsigned char read_dio_byte(int offset);
  • pcmmio/original/pcmmio_commands.h

    rfa08fc7 r9fec0a5  
    2121extern rtems_shell_cmd_t Shell_PCMMIO_DOUT_Command;
    2222extern rtems_shell_cmd_t Shell_PCMMIO_ADC_Command;
     23extern rtems_shell_cmd_t Shell_PCMMIO_DAC_Command;
    2324
    2425#define CONFIGURE_PCMMIO_COMMANDS \
    2526  &Shell_PCMMIO_DIN_Command, \
    2627  &Shell_PCMMIO_DOUT_Command, \
    27   &Shell_PCMMIO_ADC_Command
     28  &Shell_PCMMIO_DAC_Command
    2829
    2930extern rtems_shell_alias_t Shell_PCMMIO_DIN_Alias;
    3031extern rtems_shell_alias_t Shell_PCMMIO_DOUT_Alias;
    3132extern rtems_shell_alias_t Shell_PCMMIO_ADC_Alias;
     33extern rtems_shell_alias_t Shell_PCMMIO_DAC_Alias;
    3234
    3335#define CONFIGURE_PCMMIO_ALIASES \
    3436  &Shell_PCMMIO_DIN_Alias, \
    3537  &Shell_PCMMIO_DOUT_Alias, \
    36   &Shell_PCMMIO_ADC_Alias
     38  &Shell_PCMMIO_ADC_Alias, \
     39  &Shell_PCMMIO_DAC_Alias
    3740 
    3841#endif
Note: See TracChangeset for help on using the changeset viewer.