aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/ic_reg_maps/gen_ad5623_regs.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-07-01 13:52:11 -0700
committerMartin Braun <martin.braun@ettus.com>2015-07-14 14:51:32 -0700
commit4b1034b29e57a0b405fc89de4602819a4b8cc970 (patch)
treeabdb2918d100cb2e959165013bffbd461a66b2c4 /host/lib/ic_reg_maps/gen_ad5623_regs.py
parent7c6bc34f625e3945458a0a2a281850513a02ef08 (diff)
downloaduhd-4b1034b29e57a0b405fc89de4602819a4b8cc970.tar.gz
uhd-4b1034b29e57a0b405fc89de4602819a4b8cc970.tar.bz2
uhd-4b1034b29e57a0b405fc89de4602819a4b8cc970.zip
uhd: Replacing Cheetah w/ Mako 0.4.2 (allows Python 3 compat)
Diffstat (limited to 'host/lib/ic_reg_maps/gen_ad5623_regs.py')
-rwxr-xr-xhost/lib/ic_reg_maps/gen_ad5623_regs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/ic_reg_maps/gen_ad5623_regs.py b/host/lib/ic_reg_maps/gen_ad5623_regs.py
index e653921ba..8b70a9f0a 100755
--- a/host/lib/ic_reg_maps/gen_ad5623_regs.py
+++ b/host/lib/ic_reg_maps/gen_ad5623_regs.py
@@ -32,9 +32,9 @@ cmd 0[19:21] 0 wr_input_n, up_dac_n, wr_input_n_up_a
BODY_TMPL="""\
boost::uint32_t get_reg(void){
boost::uint32_t reg = 0;
- #for $reg in filter(lambda r: r.get_addr() == 0, $regs)
- reg |= (boost::uint32_t($reg.get_name()) & $reg.get_mask()) << $reg.get_shift();
- #end for
+ % for reg in filter(lambda r: r.get_addr() == 0, regs):
+ reg |= (boost::uint32_t(${reg.get_name()}) & ${reg.get_mask()}) << ${reg.get_shift()};
+ % endfor
return reg;
}
"""