Changeset 6957d53 in multiio for pcmmio/original/pcmmio_shell.c


Ignore:
Timestamp:
Feb 17, 2011, 4:39:38 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
c531584
Parents:
541e6d8
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcmmio/original/pcmmio_shell.c

    r541e6d8 r6957d53  
    1212#include "pcmmio_commands.h"
    1313
     14#include <stdlib.h>
     15
     16#include <rtems/untar.h>
     17/*
     18 *  The tarfile image is built automatically externally.
     19 */
     20#include "FilesystemImage.h"
     21
    1422rtems_task Init(
    1523  rtems_task_argument ignored
    1624)
    1725{
     26  int status;
     27
    1828  /*
    1929   *  Initialize the PCMMIO module to use IRQ6.  Ours is jumpered for 0x300
     
    2636    for (i=1 ; i<=48 ; i++ )
    2737      dio_enab_bit_int(i, 1);
     38  }
     39
     40  /*
     41   * Untar initial filesystem contents from program image
     42   */
     43  printk("Loading filesystem image\n");
     44  status = Untar_FromMemory( (char *)FilesystemImage, FilesystemImage_size );
     45  if ( status ) {
     46    printf("Unable to untar initial filesystem contents\n");
     47    exit(0);   
    2848  }
    2949
     
    7797#define CONFIGURE_INIT_TASK_ATTRIBUTES      RTEMS_FLOATING_POINT
    7898
     99/* We need the full IMFS to create initial files */
     100#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
     101
    79102#define CONFIGURE_STACK_CHECKER_ENABLED
    80103#define CONFIGURE_MALLOC_STATISTICS
Note: See TracChangeset for help on using the changeset viewer.