mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
tools/gen-device-svd: fix bug in previous commit
There was a bug in the generated Go code: padding member numbers would not increase their count leading to multiple struct members with the same name.
This commit is contained in:
@@ -296,6 +296,7 @@ const (
|
||||
regType += '\t\t_padding{padNumber} RegValue\n'.format(padNumber=padNumber)
|
||||
else:
|
||||
regType += '\t\t_padding{padNumber} [{num}]RegValue\n'.format(padNumber=padNumber, num=numSkip)
|
||||
padNumber += 1
|
||||
if subregister['array'] is not None:
|
||||
subaddress += subregister['elementsize'] * subregister['array']
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user