Added description member to TargetPeripheralDescriptor
This commit is contained in:
@@ -283,7 +283,8 @@ namespace Targets::Microchip::Avr8
|
||||
"cpu_gpr",
|
||||
TargetPeripheralDescriptor{
|
||||
"cpu_gpr",
|
||||
"CPU General Purpose",
|
||||
"GPRs",
|
||||
"CPU General Purpose Registers",
|
||||
{},
|
||||
{}
|
||||
}
|
||||
|
||||
@@ -463,7 +463,8 @@ namespace Targets::RiscV
|
||||
) {
|
||||
auto cpuPeripheralDescriptor = TargetPeripheralDescriptor{
|
||||
"cpu",
|
||||
"RISC-V CPU",
|
||||
"CPU",
|
||||
"RISC-V GPRs and CSRs",
|
||||
{},
|
||||
{}
|
||||
};
|
||||
|
||||
@@ -984,6 +984,7 @@ namespace Targets::TargetDescription
|
||||
auto output = TargetPeripheralDescriptor{
|
||||
peripheral.key,
|
||||
peripheral.name,
|
||||
peripheralModule.description,
|
||||
{},
|
||||
{}
|
||||
};
|
||||
|
||||
@@ -12,12 +12,14 @@ namespace Targets
|
||||
TargetPeripheralDescriptor::TargetPeripheralDescriptor(
|
||||
const std::string& key,
|
||||
const std::string& name,
|
||||
const std::string& description,
|
||||
std::map<std::string, TargetRegisterGroupDescriptor, std::less<void>>&& registerGroupDescriptorsByKey,
|
||||
std::vector<TargetPeripheralSignalDescriptor>&& signalDescriptors
|
||||
)
|
||||
: id(static_cast<TargetPeripheralId>(Services::StringService::generateUniqueInteger(key)))
|
||||
, key(key)
|
||||
, name(name)
|
||||
, description(description)
|
||||
, registerGroupDescriptorsByKey(std::move(registerGroupDescriptorsByKey))
|
||||
, signalDescriptors(std::move(signalDescriptors))
|
||||
{}
|
||||
@@ -68,6 +70,7 @@ namespace Targets
|
||||
auto output = TargetPeripheralDescriptor{
|
||||
this->key,
|
||||
this->name,
|
||||
this->description,
|
||||
{},
|
||||
{}
|
||||
};
|
||||
|
||||
@@ -22,12 +22,14 @@ namespace Targets
|
||||
const TargetPeripheralId id;
|
||||
const std::string key;
|
||||
std::string name;
|
||||
std::string description;
|
||||
std::map<std::string, TargetRegisterGroupDescriptor, std::less<void>> registerGroupDescriptorsByKey;
|
||||
std::vector<TargetPeripheralSignalDescriptor> signalDescriptors;
|
||||
|
||||
TargetPeripheralDescriptor(
|
||||
const std::string& key,
|
||||
const std::string& name,
|
||||
const std::string& description,
|
||||
std::map<std::string, TargetRegisterGroupDescriptor, std::less<void>>&& registerGroupDescriptorsByKey,
|
||||
std::vector<TargetPeripheralSignalDescriptor>&& signalDescriptors
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user