mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
gen-device-svd: fix lowercase in register spaced array
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user