diff --git a/user_space/cw_disable.sh b/user_space/cw_disable.sh new file mode 100755 index 0000000..2e8f73d --- /dev/null +++ b/user_space/cw_disable.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +home_dir=$(pwd) + +if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then + cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr +else + cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr +fi + +set -x +#set +if [[ -n $1 ]]; then + echo "3$1" > csma_cfg0 +fi + +# show +cat csma_cfg0 +set +x + +cd $home_dir diff --git a/user_space/cw_max_min_cfg.sh b/user_space/cw_max_min_cfg.sh new file mode 100755 index 0000000..f7e3b7d --- /dev/null +++ b/user_space/cw_max_min_cfg.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +home_dir=$(pwd) + +if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then + cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr +else + cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr +fi + +set -x +#set +if [[ -n $1 ]]; then + echo "$1" > cw_max_min_cfg +fi + +# show +cat cw_max_min_cfg +set +x + +cd $home_dir \ No newline at end of file diff --git a/user_space/difs_disable.sh b/user_space/difs_disable.sh new file mode 100755 index 0000000..7d7bf75 --- /dev/null +++ b/user_space/difs_disable.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +home_dir=$(pwd) + +if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then + cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr +else + cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr +fi + +set -x +#set +if [[ -n $1 ]]; then + echo "1$1" > csma_cfg0 +fi + +# show +cat csma_cfg0 +set +x + +cd $home_dir diff --git a/user_space/eifs_disable.sh b/user_space/eifs_disable.sh new file mode 100755 index 0000000..3d7aaf1 --- /dev/null +++ b/user_space/eifs_disable.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +home_dir=$(pwd) + +if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then + cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr +else + cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr +fi + +set -x +#set +if [[ -n $1 ]]; then + echo "2$1" > csma_cfg0 +fi + +# show +cat csma_cfg0 +set +x + +cd $home_dir diff --git a/user_space/nav_disable.sh b/user_space/nav_disable.sh new file mode 100755 index 0000000..f91167c --- /dev/null +++ b/user_space/nav_disable.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +home_dir=$(pwd) + +if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then + cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr +else + cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr +fi + +set -x +#set +if [[ -n $1 ]]; then + echo "0$1" > csma_cfg0 +fi + +# show +cat csma_cfg0 +set +x + +cd $home_dir