gen-device-svd: fix lowercase cluster name

Этот коммит содержится в:
Yannis Huber 2020-06-08 16:59:13 +02:00 коммит произвёл GitHub
родитель d3f5b51cd8
коммит e2c55e3d26
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -342,6 +342,11 @@ func readSVD(path, sourceURL string) (*Device, error) {
firstAddress := clusterRegisters[0].address
dimIncrement = int(lastAddress - firstAddress)
}
if !unicode.IsUpper(rune(clusterName[0])) && !unicode.IsDigit(rune(clusterName[0])) {
clusterName = strings.ToUpper(clusterName)
}
p.registers = append(p.registers, &PeripheralField{
name: clusterName,
address: baseAddress + clusterOffset,