From 99c2730bc9db270560671f2d7d173768465ed51f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 31 Oct 2016 14:30:52 -0700 Subject: Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types) - Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be , but not all of our compilers support that). --- host/lib/ic_reg_maps/gen_ad9522_regs.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'host/lib/ic_reg_maps/gen_ad9522_regs.py') diff --git a/host/lib/ic_reg_maps/gen_ad9522_regs.py b/host/lib/ic_reg_maps/gen_ad9522_regs.py index cc906b76c..eeda5e799 100755 --- a/host/lib/ic_reg_maps/gen_ad9522_regs.py +++ b/host/lib/ic_reg_maps/gen_ad9522_regs.py @@ -141,13 +141,13 @@ reg2eeprom 0xB03[0] 0 # Template for methods in the body of the struct ######################################################################## BODY_TMPL="""\ -boost::uint32_t get_reg(boost::uint16_t addr){ - boost::uint32_t reg = 0; +uint32_t get_reg(uint16_t addr){ + uint32_t reg = 0; switch(addr){ % 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::uint8_t(${reg.get_name()}) & ${reg.get_mask()}) << ${reg.get_shift()}; + reg |= (uint8_t(${reg.get_name()}) & ${reg.get_mask()}) << ${reg.get_shift()}; % endfor break; % endfor @@ -161,7 +161,7 @@ boost::uint32_t get_reg(boost::uint16_t addr){ return reg; } -void set_reg(boost::uint16_t addr, boost::uint32_t reg){ +void set_reg(uint16_t addr, uint32_t reg){ switch(addr){ % for addr in sorted(set(map(lambda r: r.get_addr(), regs))): case ${addr}: @@ -173,12 +173,12 @@ void set_reg(boost::uint16_t addr, boost::uint32_t reg){ } } -boost::uint32_t get_write_reg(boost::uint16_t addr){ - return (boost::uint32_t(addr) << 8) | get_reg(addr); +uint32_t get_write_reg(uint16_t addr){ + return (uint32_t(addr) << 8) | get_reg(addr); } -boost::uint32_t get_read_reg(boost::uint16_t addr){ - return (boost::uint32_t(addr) << 8) | (1 << 23); +uint32_t get_read_reg(uint16_t addr){ + return (uint32_t(addr) << 8) | (1 << 23); } """ -- cgit v1.2.3