blob: 5e72c6c52daff9081e4d184472a535e114027930 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#!/bin/bash
TESTS_PATH="`dirname \"$0\"`"
TESTS_PATH="`( cd \"$TESTS_PATH\" && pwd )`"
function pci {
PCILIB_PATH=$TESTS_PATH/../..
LD_LIBRARY_PATH="$PCILIB_PATH/pcilib" $PCILIB_PATH/pcitool/pci -m ipedma $*
}
rm bench.out
pci --stop-dma dma0r
#pci --reset
echo "Set packet size 1024 .. "
#pci -w cmosis_number_lines 1088
#pci -w xrawdata_packet_length 4096
pci --start-dma dma0r
usleep 1000
pci -w 0x90a8 0x0a
pci -w 0x90a0 0x0a
echo "Send frame request ... "
# Single frame
pci -w 0x9040 80000209
# Stimuli
#pci -w 0x9040 800002f1
# Streaming
#pci -w 0x9040 80000a01
usleep 100000
pci -w 0x9040 80000201
usleep 100000
echo "Enable Readout ... "
#pci -w control 3e1
pci -w 0x4 0x1
usleep 100000
pci -r dma0 -o bench.out --multipacket
pci -w 0x9040 80000001
pci --stop-dma dma0r
|