@@ -530,14 +530,14 @@ def derive_peripheral(self, pname, pmod):
530
530
if ptag is None :
531
531
ptag = ET .SubElement (parent , "register" )
532
532
ET .SubElement (ptag , "name" ).text = pname
533
- ET .SubElement (ptag , "addressOffset" ).text = base_address
533
+ ET .SubElement (ptag , "addressOffset" ).text = hex ( base_address )
534
534
else :
535
535
for value in list (ptag ):
536
536
if value .tag in ("name" , "baseAddress" , "interrupt" , "description" ):
537
537
continue
538
538
ptag .remove (value )
539
539
if base_address :
540
- ptag .find ("baseAddress" ).text = base_address
540
+ ptag .find ("baseAddress" ).text = hex ( base_address )
541
541
if description :
542
542
ptag .find ("description" ).text = description
543
543
for value in ptag :
@@ -862,14 +862,14 @@ def derive_register(self, rname, rmod):
862
862
if rtag is None :
863
863
rtag = ET .SubElement (parent , "register" )
864
864
ET .SubElement (rtag , "name" ).text = rname
865
- ET .SubElement (rtag , "addressOffset" ).text = address_offset
865
+ ET .SubElement (rtag , "addressOffset" ).text = hex ( address_offset )
866
866
else :
867
867
for value in list (rtag ):
868
868
if value .tag in ("name" , "addressOffset" , "description" ):
869
869
continue
870
870
rtag .remove (value )
871
871
if address_offset :
872
- rtag .find ("addressOffset" ).text = address_offset
872
+ rtag .find ("addressOffset" ).text = hex ( address_offset )
873
873
if description :
874
874
rtag .find ("description" ).text = description
875
875
for value in rtag :
0 commit comments