/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to tests/ipecamera/bench.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-20 20:01:04 UTC
  • Revision ID: csa@suren.me-20150420200104-b5xny65io8lvoz3w
Big redign of model structures

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
function pci {
4
 
    PCILIB_PATH="/root/pcitool"
5
 
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
6
 
}
7
 
 
8
 
size=16
9
 
bytes=`expr $size "*" 4`
10
 
 
11
 
rm -f bench.out 
12
 
pci --stop-dma dma1
13
 
pci --reset
14
 
 
15
 
#pci -w xrawdata_packet_length $bytes
16
 
 
17
 
pci --start-dma dma1
18
 
pci -w control 0x1e5
19
 
sleep 1
20
 
pci -w control 0x1e1
21
 
 
22
 
sleep 1
23
 
pci -w control 0x3e1
24
 
for i in `seq 1 10`; do
25
 
#    pci -w control 0x1e1
26
 
    pci -w dma1 -s $size "*$i"
27
 
#    pci -w control 0x3e1
28
 
    usleep 100000
29
 
    pci -r dma1 -s $size -o bench.out
30
 
done
31
 
 
32
 
pci -w control 0x1e1
33
 
pci --stop-dma dma1
34