aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp2/top/impactor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fpga/usrp2/top/impactor.sh')
-rwxr-xr-xfpga/usrp2/top/impactor.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/fpga/usrp2/top/impactor.sh b/fpga/usrp2/top/impactor.sh
new file mode 100755
index 000000000..c6699424d
--- /dev/null
+++ b/fpga/usrp2/top/impactor.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+echo "loading $1 into FPGA..."
+
+CMD_PATH=/tmp/impact.cmd
+
+echo "generating ${CMD_PATH}..."
+
+echo "setmode -bscan" > ${CMD_PATH}
+echo "setcable -p auto" >> ${CMD_PATH}
+echo "addDevice -p 1 -file $1" >> ${CMD_PATH}
+echo "program -p 1" >> ${CMD_PATH}
+echo "quit" >> ${CMD_PATH}
+
+impact -batch ${CMD_PATH}
+
+echo "done!"