Commit dee5d9d1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8b644147
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
rf_driver: { rf_driver: {
name: "sdr", name: "sdr",
XXX move to ru/sdr ?
args: "dev0=/dev/sdr3,dev1=/dev/sdr4,dev2=/dev/sdr2@0,dev3=/dev/sdr2@1", args: "dev0=/dev/sdr3,dev1=/dev/sdr4,dev2=/dev/sdr2@0,dev3=/dev/sdr2@1",
rx_antenna:"tx_rx", XXX -> ru/sdr ? rx_antenna:"tx_rx", XXX -> ru/sdr ?
tdd_tx_mod: 1, tdd_tx_mod: 1,
......
...@@ -157,9 +157,9 @@ ...@@ -157,9 +157,9 @@
{%- else %} {%- else %}
name: "sdr", name: "sdr",
{%- endif %} {%- endif %}
{% if slapparameter_dict.get('gps_sync', False) %} {%- if slapparameter_dict.get('gps_sync', False) %}
sync: "gps", sync: "gps",
{% endif %} {%- endif %}
{%- set dev_argv = [] %} {%- set dev_argv = [] %}
{%- set ru_sdr_dict = {} %} {# dev -> ru for ru with ru_type = sdr #} {%- set ru_sdr_dict = {} %} {# dev -> ru for ru with ru_type = sdr #}
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
{%- do ru.update({'.rf_port': rf_port}) %} {%- do ru.update({'.rf_port': rf_port}) %}
{%- if ru['ru_type'] == 'sdr' %} {%- if ru['ru_type'] == 'sdr' %}
{%- do ru_sdr_dict.update({len(dev_argv): ru}) %} {%- do ru_sdr_dict.update({len(dev_argv): ru}) %}
XXX move to ru/sdr ? {#- XXX move to ru/sdr ? #}
{%- for n in ru['sdr_dev_list'] %} {%- for n in ru['sdr_dev_list'] %}
{%- do dev_argv.append("dev%d=/dev/sdr%d" % (len(dev_argv), n)) %} {%- do dev_argv.append("dev%d=/dev/sdr%d" % (len(dev_argv), n)) %}
{%- endfor %} {%- endfor %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment