This commit is contained in:
Nav
2023-12-12 23:25:29 +00:00
parent ec51a21846
commit 41a6e0bbbd
4 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ $xmlFiles = TargetDescriptionFiles\Factory::findXmlFiles(TDF_DIR_PATH);
print count($xmlFiles) . ' target descriptions files found in ' . TDF_DIR_PATH . PHP_EOL . PHP_EOL;
$targetFamiliesByArch = [
TargetDescriptionFile::ARCHITECTURE_AVR8 => 'TargetFamily::AVR8',
TargetDescriptionFile::ARCHITECTURE_AVR8 => 'TargetFamily::AVR_8',
];
const MAP_ENTRY_TEMPLATE = '{"@CONFIG_VALUE@", {"@TARGET_NAME@", "@CONFIG_VALUE@", @TARGET_FAMILY@, "@TDF_PATH@"}}';

View File

@@ -43,7 +43,7 @@ namespace DebugServer
{
"avr-gdb-rsp",
[this] () -> std::unique_ptr<ServerInterface> {
if (this->targetDescriptor.family != Targets::TargetFamily::AVR8) {
if (this->targetDescriptor.family != Targets::TargetFamily::AVR_8) {
throw Exceptions::Exception("The AVR GDB RSP server is only compatible with AVR8 targets.");
}

View File

@@ -268,7 +268,7 @@ namespace Targets::Microchip::Avr::Avr8Bit
TargetDescriptor Avr8::getDescriptor() {
auto descriptor = TargetDescriptor(
this->signature.toHex(),
TargetFamily::AVR8,
TargetFamily::AVR_8,
this->name,
"Microchip",
this->targetMemoryDescriptorsByType,

View File

@@ -6,7 +6,7 @@ namespace Targets
{
enum class TargetFamily: std::uint8_t
{
AVR8,
AVR_8,
RISC_V,
};
}