diff options
author | Johnathan Corgan | 2011-07-08 10:23:31 -0700 |
---|---|---|
committer | Johnathan Corgan | 2011-07-08 10:23:31 -0700 |
commit | 666cd2dd6818fb66e538fa52957f3a23d68e7b94 (patch) | |
tree | 93a5240422a410d380cf11488097a2a871b8a2be /volk/gen/make_config_fixed.py | |
parent | 5938a37512ec66872adf28b260cb1d2bfefa9602 (diff) | |
parent | 9bfe75fd7c6a7069db2d2a98195faabf6ba248e2 (diff) | |
download | gnuradio-666cd2dd6818fb66e538fa52957f3a23d68e7b94.tar.gz gnuradio-666cd2dd6818fb66e538fa52957f3a23d68e7b94.tar.bz2 gnuradio-666cd2dd6818fb66e538fa52957f3a23d68e7b94.zip |
Merged jblum/new_volk into master
Diffstat (limited to 'volk/gen/make_config_fixed.py')
-rw-r--r-- | volk/gen/make_config_fixed.py | 21 |
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; + + + |