diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-14 03:50:48 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-14 03:50:48 +0100 |
commit | 667c1e8a83b3f5f8e90af824212c8da389f849d2 (patch) | |
tree | b5e3573a8780c533985fee2ccdc5f0718f501419 /tests/stimuli.sh | |
parent | c4c9ad7708ddd3114f78c5f860ebfeb92cfb79c3 (diff) | |
download | ipecamera-667c1e8a83b3f5f8e90af824212c8da389f849d2.tar.gz ipecamera-667c1e8a83b3f5f8e90af824212c8da389f849d2.tar.bz2 ipecamera-667c1e8a83b3f5f8e90af824212c8da389f849d2.tar.xz ipecamera-667c1e8a83b3f5f8e90af824212c8da389f849d2.zip |
few demo scripts
Diffstat (limited to 'tests/stimuli.sh')
-rwxr-xr-x | tests/stimuli.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/stimuli.sh b/tests/stimuli.sh new file mode 100755 index 0000000..33e99e1 --- /dev/null +++ b/tests/stimuli.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +function pci { + PCILIB_PATH="/root/pcitool" + LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $* +} + +rm -f bench.out + +echo "Set FFFF the frame space .." +pci -w 0x9180 fff + +echo "Set the number of frames .." +pci -w reg9170 55 + +pci --start-dma dma1 + +echo "Send frame request ... " +pci -w control 1f1 +usleep 100000 +pci -w control 1e1 + + +echo "Enable Readout ... " +pci -w control 3e1 +pci -r dma1 -o bench.out --multipacket +pci -w control 1e1 + +pci --stop-dma dma1 + |