mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +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++ {
|
for i := uint64(0); i < uint64(reg.dim()); i++ {
|
||||||
regAddress := reg.address() + (i * dimIncrement)
|
regAddress := reg.address() + (i * dimIncrement)
|
||||||
results = append(results, &PeripheralField{
|
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,
|
address: regAddress,
|
||||||
description: reg.description(),
|
description: reg.description(),
|
||||||
array: -1,
|
array: -1,
|
||||||
|
|||||||
Reference in New Issue
Block a user