aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/ic_reg_maps/gen_adf4360_regs.py
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-29 18:39:52 -0700
committerJosh Blum <josh@joshknows.com>2010-04-29 18:39:52 -0700
commit333937760305f9c7c8dfb1db95f4821a800ce043 (patch)
tree31d243a420dbb255a57c265407a1d3545ef411a7 /host/lib/ic_reg_maps/gen_adf4360_regs.py
parent2bba9ca0831ecc40ac2e02ed66e615778a1bd17f (diff)
downloaduhd-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-xhost/lib/ic_reg_maps/gen_adf4360_regs.py2
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();