Changeset 2a5ffee in multiio


Ignore:
Timestamp:
Mar 18, 2011, 1:27:35 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
68422d4
Parents:
0ecf946
Message:

2011-03-18 Joel Sherrill <joel.sherrill@…>

  • .cvsignore, Makefile, rootfs/set_adc_modes, rootfs/test_adc: Add root filesystem with test scripts.
Location:
pcmmio
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pcmmio/.cvsignore

    r0ecf946 r2a5ffee  
    11o-optimize
     2FilesystemImage
     3FilesystemImage.c
     4FilesystemImage.h
  • pcmmio/ChangeLog

    r0ecf946 r2a5ffee  
     12011-03-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * .cvsignore, Makefile, rootfs/set_adc_modes, rootfs/test_adc: Add root
     4        filesystem with test scripts.
     5
    162011-03-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • pcmmio/Makefile

    r0ecf946 r2a5ffee  
    1414
    1515#DEFINES += -DTESTING
    16 CSRCS = pcmmio_shell.c mio_io.c mio_io_rtems.c multiio_pcmmio.c
     16CSRCS = pcmmio_shell.c mio_io.c mio_io_rtems.c multiio_pcmmio.c \
     17        FilesystemImage.c
    1718COBJS = $(CSRCS:%.c=${ARCH}/%.o)
    1819
    19 # C source names
    20 #IGNORE mio_io_linux.c for RTEMS
    21 
    22 ## Older PCMMIO Specific Commands
    23 ##SHARED_CSRCS += main_pcmmio_din.c main_pcmmio_dout.c
    24 ##SHARED_CSRCS += main_pcmmio_adc.c main_pcmmio_dac.c
    25 ##SHARED_CSRCS += main_pcmmio_irq.c
    26 ##SHARED_CSRCS += main_pcmmio_benchmark.c
    27 ## Helper for Winsystems Mains.
    28 ##SHARED_CSRCS += kbhit.c
    29 
    30 SHARED_COBJS = $(SHARED_CSRCS:%.c=${ARCH}/%.o)
    31 SHARED_CONFIG = ${ARCH}/rtems_config.o
    3220DEFINES += -I../include -I../commands
    3321LD_LIBS += ../commands/${ARCH}/libmiocmds.a
     22
     23CLEAN_ADDITIONS += FilesystemImage FilesystemImage.c FilesystemImage.h
    3424
    3525include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
     
    3929OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)
    4030
    41 all:    ${ARCH} $(OBJS) $(PGM)
     31all:    ${ARCH} FilesystemImage.c FilesystemImage.h $(OBJS) $(PGM)
    4232
    4333${PGM}: $(OBJS)
    4434        $(make-exe)
     35
     36FilesystemImage: rootfs/test_adc rootfs/set_adc_modes
     37        (cd rootfs ; tar cf - --exclude=.svn \
     38          --exclude=CVS --exclude=.cvsignore .) >$(@)
     39
     40FilesystemImage.c FilesystemImage.h: FilesystemImage
     41        $(PROJECT_ROOT)/bin/rtems-bin2c FilesystemImage FilesystemImage
     42
     43FilesystemImage.o: FilesystemImage.c
     44        $(CC) $(CFLAGS) $(CPU_CFLAGS) -c $<
     45
  • pcmmio/rootfs/set_adc_modes

    r0ecf946 r2a5ffee  
    11#! joel
    22echo "Setting all ADCs to +/-10V (bipolar) and single ended"
    3 pcmmio_adc_mode 0 15
     3multiio_adc_mode 0 15
  • pcmmio/rootfs/test_adc

    r0ecf946 r2a5ffee  
    44echo "Cycle from -5v to +5v with one second between on dac 4"
    55
    6 pcmmio_dac 4 -5.0
     6multiio_dac 4 -5.0
    77sleep 1
    8 pcmmio_adc 0
     8multiio_adc 0
    99
    10 pcmmio_dac 4 -4.0
     10multiio_dac 4 -4.0
    1111sleep 1
    12 pcmmio_adc 0
     12multiio_adc 0
    1313
    14 pcmmio_dac 4 -3.0
     14multiio_dac 4 -3.0
    1515sleep 1
    16 pcmmio_adc 0
     16multiio_adc 0
    1717
    18 pcmmio_dac 4 -2.0
     18multiio_dac 4 -2.0
    1919sleep 1
    20 pcmmio_adc 0
     20multiio_adc 0
    2121
    22 pcmmio_dac 4 -1.0
     22multiio_dac 4 -1.0
    2323sleep 1
    24 pcmmio_adc 0
     24multiio_adc 0
    2525
    26 pcmmio_dac 4 0.0
     26multiio_dac 4 0.0
    2727sleep 1
    28 pcmmio_adc 0
     28multiio_adc 0
    2929
    30 pcmmio_dac 4 1.0
     30multiio_dac 4 1.0
    3131sleep 1
    32 pcmmio_adc 0
     32multiio_adc 0
    3333
    34 pcmmio_dac 4 2.0
     34multiio_dac 4 2.0
    3535sleep 1
    36 pcmmio_adc 0
     36multiio_adc 0
    3737
    38 pcmmio_dac 4 3.0
     38multiio_dac 4 3.0
    3939sleep 1
    40 pcmmio_adc 0
     40multiio_adc 0
    4141
    42 pcmmio_dac 4 4.0
     42multiio_dac 4 4.0
    4343sleep 1
    44 pcmmio_adc 0
     44multiio_adc 0
    4545
    46 pcmmio_dac 4 5.0
     46multiio_dac 4 5.0
    4747sleep 1
    48 pcmmio_adc 0
     48multiio_adc 0
    4949
    5050echo "Write 0.0v to dac 4"
    51 pcmmio_dac 4 0.0
     51multiio_dac 4 0.0
    5252sleep 1
    53 pcmmio_adc 0
     53multiio_adc 0
    5454
Note: See TracChangeset for help on using the changeset viewer.