Sha256: 2aa74b8ce2a704fe459a8d68769e522f91d7f44dae47dd13c9273bd47efe25f0
Contents?: true
Size: 999 Bytes
Versions: 12
Compression:
Stored size: 999 Bytes
Contents
% full_name = cr_try(:full_name, :ip_name, :name, :pdm_part_name) || self.class.to_s //--------------------------------------------------------------------------------------------- // <%= full_name %> Registers Memory Map //--------------------------------------------------------------------------------------------- % regs.each do |name, reg| #define <%= name.to_s.upcase.ljust(30) %> (REG<%= reg.size %>(0x<%= reg.address.to_s(16).upcase %>)) % end //--------------------------------------------------------------------------------------------- // <%= full_name %> Registers Bit Definition //--------------------------------------------------------------------------------------------- % regs.each do |reg_name, reg| // <%= reg_name.to_s.upcase %> % reg.named_bits do |name, bits| #define <%= "#{reg_name}_#{name}".upcase.ljust(30) %> (<%= bits.sort_by{ |bit| bit.position }.reverse.map{ |bit| "BIT#{bit.position}"}.join(" + ") %>) % end % end
Version data entries
12 entries across 12 versions & 1 rubygems