diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-23 01:43:25 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-23 01:43:25 +0000 |
commit | 2ff1a854669a0fe5c8029f0c013e38faade6b826 (patch) | |
tree | f563530c90d20fbd29cb2caf81f3eca7016dd3bc /host/lib/ic_reg_maps/common.py | |
parent | e6aed138b08100fe81355771fc62d4ff2f7556d0 (diff) | |
download | uhd-2ff1a854669a0fe5c8029f0c013e38faade6b826.tar.gz uhd-2ff1a854669a0fe5c8029f0c013e38faade6b826.tar.bz2 uhd-2ff1a854669a0fe5c8029f0c013e38faade6b826.zip |
usrp-e: clock control constants to easily change dividers and counters, tweaks to ic reg maps common
Diffstat (limited to 'host/lib/ic_reg_maps/common.py')
-rw-r--r-- | host/lib/ic_reg_maps/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/ic_reg_maps/common.py b/host/lib/ic_reg_maps/common.py index 173186eb1..47325a7e3 100644 --- a/host/lib/ic_reg_maps/common.py +++ b/host/lib/ic_reg_maps/common.py @@ -59,7 +59,7 @@ public: delete _state; } -$body + $body void save_state(void){ if (_state == NULL) _state = new $(name)_t(); @@ -181,7 +181,7 @@ def generate(name, regs_tmpl, body_tmpl='', file=__file__): else: regs.append(reg(entry)) #evaluate the body template with the list of registers - body = parse_tmpl(body_tmpl, regs=regs).replace('\n', '\n ').strip() + body = '\n '.join(parse_tmpl(body_tmpl, regs=regs).splitlines()) #evaluate the code template with the parsed registers and arguments code = parse_tmpl(COMMON_TMPL, |