diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-29 18:39:52 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-29 18:39:52 -0700 |
commit | 333937760305f9c7c8dfb1db95f4821a800ce043 (patch) | |
tree | 31d243a420dbb255a57c265407a1d3545ef411a7 /host/lib/ic_reg_maps/gen_adf4360_regs.py | |
parent | 2bba9ca0831ecc40ac2e02ed66e615778a1bd17f (diff) | |
download | uhd-333937760305f9c7c8dfb1db95f4821a800ce043.tar.gz uhd-333937760305f9c7c8dfb1db95f4821a800ce043.tar.bz2 uhd-333937760305f9c7c8dfb1db95f4821a800ce043.zip |
added ad9522 reg map, minor fixes
Diffstat (limited to 'host/lib/ic_reg_maps/gen_adf4360_regs.py')
-rwxr-xr-x | host/lib/ic_reg_maps/gen_adf4360_regs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/ic_reg_maps/gen_adf4360_regs.py b/host/lib/ic_reg_maps/gen_adf4360_regs.py index 2a88dad8a..3fd8707a7 100755 --- a/host/lib/ic_reg_maps/gen_adf4360_regs.py +++ b/host/lib/ic_reg_maps/gen_adf4360_regs.py @@ -68,7 +68,7 @@ enum addr_t{ boost::uint32_t get_reg(addr_t addr){ boost::uint32_t reg = addr & 0x3; switch(addr){ - #for $addr in (0, 1, 2) + #for $addr in sorted(set(map(lambda r: r.get_addr(), $regs))) case $addr: #for $reg in filter(lambda r: r.get_addr() == addr, $regs) reg |= (boost::uint32_t($reg.get_name()) & $reg.get_mask()) << $reg.get_shift(); |