Browse Source

gen-device-svd: fix lowercase in register spaced array

pull/1142/head
Yannis Huber 4 years ago
committed by Ron Evans
parent
commit
9b1a19f184
  1. 2
      tools/gen-device-svd/gen-device-svd.go

2
tools/gen-device-svd/gen-device-svd.go

@ -571,7 +571,7 @@ func parseRegister(groupName string, regEl *SVDRegister, baseAddress uint64, bit
for i := uint64(0); i < uint64(reg.dim()); i++ {
regAddress := reg.address() + (i * dimIncrement)
results = append(results, &PeripheralField{
name: strings.Replace(reg.name(), "%s", strconv.FormatUint(i, 10), -1),
name: strings.ToUpper(strings.Replace(reg.name(), "%s", strconv.FormatUint(i, 10), -1)),
address: regAddress,
description: reg.description(),
array: -1,

Loading…
Cancel
Save