summaryrefslogtreecommitdiff
path: root/volk/gen/make_config_fixed.py
diff options
context:
space:
mode:
authorJohnathan Corgan2011-07-08 18:36:32 -0700
committerJohnathan Corgan2011-07-08 18:36:32 -0700
commit2cad94708515537d889bc0e1444472db81ee8ba5 (patch)
tree14e989409403b50c529b859e4a50cfcf164244a2 /volk/gen/make_config_fixed.py
parent6c9de15d04721c9c77b2c8bf5e6202461eeb1c29 (diff)
parent1aeb7d085556edd23fbab0584603354895b9af6d (diff)
downloadgnuradio-2cad94708515537d889bc0e1444472db81ee8ba5.tar.gz
gnuradio-2cad94708515537d889bc0e1444472db81ee8ba5.tar.bz2
gnuradio-2cad94708515537d889bc0e1444472db81ee8ba5.zip
Merge branch 'master' into next
Diffstat (limited to 'volk/gen/make_config_fixed.py')
-rw-r--r--volk/gen/make_config_fixed.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/volk/gen/make_config_fixed.py b/volk/gen/make_config_fixed.py
new file mode 100644
index 000000000..3fd1bdf0a
--- /dev/null
+++ b/volk/gen/make_config_fixed.py
@@ -0,0 +1,21 @@
+from xml.dom import minidom
+
+def make_config_fixed(dom) :
+ tempstring = "";
+ tempstring = tempstring +'/*this file is auto generated by volk_register.py*/';
+ tempstring = tempstring + '\n#ifndef INCLUDED_VOLK_CONFIG_FIXED_H';
+ tempstring = tempstring + '\n#define INCLUDED_VOLK_CONFIG_FIXED_H';
+ tempstring = tempstring + '\n\n';
+ enum_counter = 0;
+ for domarch in dom:
+ arch = str(domarch.attributes["name"].value);
+ tempstring = tempstring + '#define LV_' + arch.swapcase() + " " + str(enum_counter) + '\n';
+ enum_counter = enum_counter + 1;
+ tempstring = tempstring + '\n\n';
+
+ tempstring = tempstring + "#endif /*INCLUDED_VOLK_CONFIG_FIXED*/\n"
+
+ return tempstring;
+
+
+